private PartyTemplateStack processStacks(PartyTemplateStack partyStack, float minMultiplier, float maxMultiplier) { int newMin = this.getNewFloatValue(partyStack.MinValue, minMultiplier); int newMax = this.getNewFloatValue(partyStack.MaxValue, maxMultiplier); bool flag = newMax < newMin; if (flag) { newMax = newMin; } partyStack.MinValue = newMin; partyStack.MaxValue = newMax; return(partyStack); }
public void processBanditBoss(float minMultiplier, float maxMultiplier) { bool flag = this._partyTemplate != null; if (flag) { for (int i = 0; i < this._partyTemplate.Stacks.Count; i++) { PartyTemplateStack item = this._partyTemplate.Stacks[i]; bool flag2 = !item.Character.StringId.Contains("boss"); if (flag2) { this._partyTemplate.Stacks[i] = this.processStacks(this._partyTemplate.Stacks[i], minMultiplier, maxMultiplier); } } } else { Ux.ShowMessageError("Kaoses Parties processBanditBoss invalid Party template"); } }