//UPDATE CURRENT STATS private void UpdateStats() { EquipmentProperties hand = equipment.GetHand(); if (hand == null) { hand = new EquipmentProperties(); } EquipmentProperties head = equipment.GetHead(); if (head == null) { head = new EquipmentProperties(); } EquipmentProperties neck = equipment.GetNeck(); if (neck == null) { neck = new EquipmentProperties(); } effective_stats[(int)Stat.ATK] = player.GetATK() + hand.ATK + head.ATK + neck.ATK; effective_stats[(int)Stat.DEF] = player.GetDEF() + hand.DEF + head.DEF + neck.DEF; effective_stats[(int)Stat.SATK] = player.GetSATK() + hand.SATK + head.SATK + neck.SATK; effective_stats[(int)Stat.SDEF] = player.GetSDEF() + hand.SDEF + head.SDEF + neck.SDEF; effective_stats[(int)Stat.SPD] = player.GetSPD() + hand.SPD + head.SPD + neck.SPD; }