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

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

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

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

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