Пример #1
0
        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;
            }
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
 public string BuildPartyLossTextItem(int value, PartySupplyTypes lossType)
 {
     return($"Lost {value} {GlobalHelper.GetEnumDescription(lossType)}!");
 }
Пример #4
0
 public string BuildPartyRewardTextItem(int value, PartySupplyTypes gainType)
 {
     return($"Gained {value} {GlobalHelper.GetEnumDescription(gainType)}!");
 }