@@ -53,6 +53,7 @@ class Boost
5353 public string displayName ;
5454 public string description ;
5555 public string shortHelp ;
56+ public string slotRequires ;
5657 public List < BoostType > aspects ;
5758 public List < string > salvage ;
5859 }
@@ -124,7 +125,7 @@ public string GetDropRecipe(List<int> craftingCost, List<Salvage> salvageList)
124125 {
125126 s += "DetailRecipe " + boost . name + "_" + level + Environment . NewLine ;
126127 s += "{" + Environment . NewLine ;
127- s += "\t DisplayName \" " + PString ( displayName + ": " + boost . displayName ) + "\" " + Environment . NewLine ;
128+ s += "\t DisplayName \" " + PString ( displayName + ": " + boost . displayName + " (Recipe)" ) + "\" " + Environment . NewLine ;
128129 s += "\t DisplayHelp \" " + PString ( "This recipe builds the " + displayName + ": " + boost . displayName + " Enhancement" ) + "\" " + Environment . NewLine ;
129130 s += "\t DisplayTabName \" P1273912828\" " + Environment . NewLine ;
130131 s += "\t Type Drop" + Environment . NewLine ;
@@ -353,12 +354,13 @@ public string GetPowers(Boost boost, bool attuned, string prefix, string catalyz
353354 s += "\t Radius 0" + Environment . NewLine ;
354355 s += "\t Arc 0" + Environment . NewLine ;
355356 s += "\t BoostsAllowed kScience_Boost, kTechnology_Boost, kMagic_Boost, kMutation_Boost, kNatural_Boost" + ( String . IsNullOrEmpty ( boostsAllowed ) ? String . Empty : ", " + boostsAllowed ) + Environment . NewLine ;
356- if ( ! String . IsNullOrEmpty ( catalyzed ) ) s += "\t BoostCatalystConversion Boosts." + catalyzed + boost . name + "." + catalyzed + boost . name + Environment . NewLine ;
357- s += "\t " + ( attuned ? "BoostUsePlayerLevel " : "BoostBoostable " ) + "True" + Environment . NewLine ;
357+ if ( ! String . IsNullOrEmpty ( catalyzed ) ) s += "\t BoostCatalystConversion Boosts." + catalyzed + boost . name + "." + catalyzed + boost . name + Environment . NewLine ;
358+ s += "\t " + ( attuned ? "BoostUsePlayerLevel " : "BoostBoostable " ) + "True" + Environment . NewLine ;
358359 s += "\t BoostIgnoreEffectiveness True" + Environment . NewLine ;
359360 s += "\t BoostCombinable False" + Environment . NewLine ;
360361 s += "\t MinSlotLevel " + ( minSlotLevel - 1 ) + Environment . NewLine ;
361- s += "\t BoostAlwaysCountForSet True" + Environment . NewLine ;
362+ if ( ! String . IsNullOrEmpty ( boost . slotRequires ) ) s += "\t SlotRequires " + boost . slotRequires + Environment . NewLine ;
363+ s += "\t BoostAlwaysCountForSet True" + Environment . NewLine ;
362364 if ( attuned ) s += "\t BoostLicenseLevel 0" + Environment . NewLine ;
363365 s += "\t DisplayShortHelp \" " + PString ( boost . shortHelp ) + "\" " + Environment . NewLine ;
364366 s += "\t DisplayHelp \" " + PString ( boost . description ) + "\" " + Environment . NewLine ;
@@ -387,7 +389,7 @@ public string GetPowers(Boost boost, bool attuned, string prefix, string catalyz
387389 s += "\t \t Chance 1" + Environment . NewLine ;
388390 s += "\t \t NearGround kFalse" + Environment . NewLine ;
389391 s += "\t \t CancelOnMiss kFalse" + Environment . NewLine ;
390- s += "\t \t BoostTemplate kTrue" + Environment . NewLine ;
392+ s += "\t \t BoostTemplate " + ( attrib . attrib == "kNull" ? "kFalse" : " kTrue") + Environment . NewLine ;
391393 s += "\t \t StackType kReplace" + Environment . NewLine ;
392394 if ( ! String . IsNullOrEmpty ( attrib . reward ) ) s += "\t \t Reward " + attrib . reward + Environment . NewLine ;
393395 s += "\t }" + Environment . NewLine ;
0 commit comments