public void AddPartyLoss(PartySupplyTypes supplyType, int amountLost) { if (PartyLosses == null) { PartyLosses = new Dictionary <PartySupplyTypes, int>(); } if (!PartyLosses.ContainsKey(supplyType)) { PartyLosses.Add(supplyType, amountLost); } else { PartyLosses[supplyType] += amountLost; } }
public void AddPartyGain(PartySupplyTypes supplyType, int amountGained) { if (PartyGains == null) { PartyGains = new Dictionary <PartySupplyTypes, int>(); } if (!PartyGains.ContainsKey(supplyType)) { PartyGains.Add(supplyType, amountGained); } else { PartyGains[supplyType] += amountGained; } }
public string BuildPartyLossTextItem(int value, PartySupplyTypes lossType) { return($"Lost {value} {GlobalHelper.GetEnumDescription(lossType)}!"); }
public string BuildPartyRewardTextItem(int value, PartySupplyTypes gainType) { return($"Gained {value} {GlobalHelper.GetEnumDescription(gainType)}!"); }