示例#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)}!");
 }