void FromInventoryToEquip() { if (AccEq != null) { if (AccEq.AddItemToEquipmentInventory(this))//If the player can add this item to Equipment inventory { DestroyItem(); } } }
void FromInventoryToEquip() { if (AccEq != null) { if (AccEq.AddItemToEquipmentInventory(this))//If the player can add this item to Equipment inventory { if (this.MyItem.mainStat.TheStat == 0) { Global.equipment_attack = this.MyItem.mainStat.TheValue; } if ((int)this.MyItem.mainStat.TheStat == 1) { Global.attackSPD_modifier = this.MyItem.mainStat.TheValue * 0.01f; } if ((int)this.MyItem.mainStat.TheStat == 2) { Global.equipment_health = this.MyItem.mainStat.TheValue; } DestroyItem(); } } }