private bool IsBetterThanEquiped(WeaponItemData weapon) { switch (weapon.weaponType) { case WeaponItemData.WEAPON_TYPE.WEAPON: return(weapon.IsBetterThan(playerEquipment.RightWeapon)); case WeaponItemData.WEAPON_TYPE.SHIELD: return(weapon.IsBetterThan(playerEquipment.LeftWeapon)); } return(false); }