コード例 #1
0
        /****/
        public static bool IsAmmo(this ItemSpec item)
        {
            if (item.IsWeapon())
            {
                return(false);
            }

            return(item.GetAmmoType() != null);
        }
コード例 #2
0
 public static bool IsHealthPack(this ItemSpec item)
 {
     return(item.GetHealAmount() > 0 &&
            item.IsWeapon() == false);
 }