|
@@ -700,20 +700,45 @@ uint64 EnchantgradeDatabase::parseBodyNode( const ryml::NodeRef& node ){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if( this->nodeExists( gradeNode, "Announce" ) ){
|
|
|
|
|
|
+ if( this->nodeExists( gradeNode, "AnnounceSuccess" ) ){
|
|
bool announce;
|
|
bool announce;
|
|
|
|
|
|
- if( !this->asBool( gradeNode, "Announce", announce ) ){
|
|
|
|
|
|
+ if( !this->asBool( gradeNode, "AnnounceSuccess", announce ) ){
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- grade->announce = announce;
|
|
|
|
|
|
+ grade->announceSuccess = announce;
|
|
}else{
|
|
}else{
|
|
if( !gradeExists ){
|
|
if( !gradeExists ){
|
|
- grade->announce = true;
|
|
|
|
|
|
+ grade->announceSuccess = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if( this->nodeExists( gradeNode, "AnnounceFail" ) ){
|
|
|
|
+ bool announce;
|
|
|
|
+
|
|
|
|
+ if( !this->asBool( gradeNode, "AnnounceFail", announce) ){
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ grade->announceFail = announce;
|
|
|
|
+ }else{
|
|
|
|
+ if( !gradeExists ){
|
|
|
|
+ grade->announceFail = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if( this->nodeExists( gradeNode, "Announce" ) ){
|
|
|
|
+ bool announce;
|
|
|
|
+
|
|
|
|
+ if( !this->asBool( gradeNode, "Announce", announce ) ){
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ grade->announceSuccess = announce;
|
|
|
|
+ grade->announceFail = announce;
|
|
|
|
+ }
|
|
|
|
+
|
|
if( this->nodeExists( gradeNode, "Catalyst") ){
|
|
if( this->nodeExists( gradeNode, "Catalyst") ){
|
|
const ryml::NodeRef& catalystNode = gradeNode["Catalyst"];
|
|
const ryml::NodeRef& catalystNode = gradeNode["Catalyst"];
|
|
|
|
|