Esempio n. 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;
            }
        }
Esempio n. 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;
            }
        }
Esempio n. 3
0
 public string BuildPartyLossTextItem(int value, PartySupplyTypes lossType)
 {
     return($"Lost {value} {GlobalHelper.GetEnumDescription(lossType)}!");
 }
Esempio n. 4
0
 public string BuildPartyRewardTextItem(int value, PartySupplyTypes gainType)
 {
     return($"Gained {value} {GlobalHelper.GetEnumDescription(gainType)}!");
 }