예제 #1
0
        public static string BasicDisplay(WeaponItemWeaver weapon)
        {
            string damageMod;

            if (weapon.GetDamageModifier() == 0)
            {
                damageMod = "";
            }
            else
            {
                damageMod = string.Format(" {0}", weapon.GetDamageModifier());
            }

            return(string.Format("{0}:\t'{1} gp'{9}Weight: '{2} pound(s)'{9}To Hit: '{3}'{9}Damage: '{4}{5}'{9}Hardness: '{6}'{9}Hit Points: '{7}'{9}{8}",
                                 weapon.GetName(),
                                 weapon.GetCost(),
                                 weapon.GetWeight(),
                                 weapon.GetToHit(),
                                 weapon.GetDamage(),
                                 damageMod,
                                 weapon.GetHardness(),
                                 weapon.GetHitPoints(),
                                 weapon.GetDescription(),
                                 Environment.NewLine));
        }