Esempio n. 1
0
    void PayForInfo(int rupeeTriggerID)
    {
        int payAmount = 0;

        switch (rupeeTriggerID)
        {
        case 0: payAmount = GrottoSpawnPoint.saleItemPriceA; break;

        case 1: payAmount = GrottoSpawnPoint.saleItemPriceB; break;

        case 2: payAmount = GrottoSpawnPoint.saleItemPriceC; break;

        default: break;
        }

        Inventory inv = Inventory.Instance;

        if (!inv.TrySpendRupees(payAmount))
        {
            return;
        }

        ShowTheGoods(false);

        string info = GrottoSpawnPoint.payForInfoText[rupeeTriggerID];

        Grotto.DisplayMessage(true, info);

        _hasMadePurchase = true;
    }
Esempio n. 2
0
    override public void ShowTheGoods(bool doShow = true)
    {
        Inventory.Instance.TrySpendRupees(-GiftAmount);

        ShowRupeeDeduction(doShow);

        Grotto.DisplayMessage(doShow);
    }
Esempio n. 3
0
    override public void ShowTheGoods(bool doShow = true)
    {
        ShowGift(doShow);

        Grotto.DisplayMessage(doShow);
    }
Esempio n. 4
0
 virtual public void ShowTheGoods(bool doShow = true)
 {
     Grotto.DisplayMessage(doShow);
 }
Esempio n. 5
0
    override public void ShowTheGoods(bool doShow = true)
    {
        ShowPayForInfoChoices(doShow);

        Grotto.DisplayMessage(doShow);
    }
Esempio n. 6
0
    override public void ShowTheGoods(bool doShow = true)
    {
        ShowTheShopItems(doShow);

        Grotto.DisplayMessage(!IsSoldOut);
    }