Exemplo n.º 1
0
    private int HandleDiseasedItem(Item diseasedItem)
    {
        string itemName = diseasedItem.ItemNameKey;

        if (itemQuantity.ContainsKey(itemName))
        {
            int quantity = itemQuantity[itemName];
            itemQuantity.Remove(itemName);

            int diseasedGoldLoss = diseaseModifier * quantity;
            GoldManager.GetGoldSendWithModifier(diseasedGoldLoss);
            return(diseasedGoldLoss);
        }

        return(0);
    }
 private void LoseGoldFromExpiredOffering()
 {
     GoldManager.GetGoldSendWithModifier(-failedOfferingPenalty);
 }