Esempio n. 1
0
    public override void RemoveItem(int amount = 1)
    {
        CollectionsHelper.RemoveItemFromCollection(this, User.Instance.Ingots, amount);

        if (amount != 0)
        {
            (Application.Current.MainWindow as GameWindow).CreateFloatingTextUtility($"-{amount}", ColorsHelper.GetRarityColor(Rarity), FloatingTextHelper.GetIngotRarityPosition(Rarity));
        }

        InterfaceHelper.RefreshSpecificEquipmentPanelTabOnCurrentPage(typeof(Ingot));
    }
Esempio n. 2
0
    public override void AddItem(int amount = 1, bool displayFloatingText = true)
    {
        CollectionsHelper.AddItemToCollection(this, User.Instance.Ingots, amount);

        if (amount != 0)
        {
            (Application.Current.MainWindow as GameWindow)?.CreateFloatingTextUtility($"+{amount}", ColorsHelper.GetRarityColor(Rarity), FloatingTextHelper.GetIngotRarityPosition(Rarity));
        }

        AddAchievementProgress();
        InterfaceHelper.RefreshSpecificEquipmentPanelTabOnCurrentPage(typeof(Ingot));
    }