Exemplo n.º 1
0
 public override double GetWeaponCost()
 {
     if (weaponItem.IsMasterwork())
     {
         return(weaponItem.GetCost());
     }
     return(weaponItem.GetCost() + MasterworkCost);
 }
 public override double GetCost()
 {
     if (component.Name == "Cold Iron ")
     {
         return((weapon.GetCost() * component.CostModifier) + component.MasterworkCost);
     }
     return(weapon.GetCost() + component.MasterworkCost + component.CostModifier);
 }
Exemplo n.º 3
0
        public static string FullMagicalDisplay(WeaponItemWeaver magicWeapon)
        {
            var sb = new StringBuilder();

            sb.AppendLine(string.Format("{0}:\t'{1} gp'\t('+{2} value'){12}To Hit: '+{3}'{12}Damage: '{4}{5}{6}' {7}{12}Hardness: '{8}'{12}Hit Points: '{9}'{12}Weight: '{10} pound(s)'{12}{11}",
                                        magicWeapon.GetName(),
                                        magicWeapon.GetCost(),
                                        magicWeapon.GetEnhancementBonusForCost(),
                                        magicWeapon.GetEnhancementBonus(),
                                        magicWeapon.GetDamage(),
                                        magicWeapon.GetThreat(),
                                        magicWeapon.GetEnchantmentCriticalDamage(),
                                        magicWeapon.GetDamageType(),
                                        magicWeapon.GetModifiedHardness(),
                                        magicWeapon.GetModifiedHitPoints(),
                                        magicWeapon.GetWeight(),
                                        magicWeapon.GetDescription(),
                                        Environment.NewLine));
            sb.Append(string.Format("{5}Creator Caster Level: '{0}'{5}Time to Create: '{1} Days'{5}Creation XP Cost: '{2}'{5}Creation Raw Material Cost: '{3}'{5}{4}",
                                    magicWeapon.GetMinimumCasterLevel(),
                                    magicWeapon.GetDaysToCreate(),
                                    magicWeapon.GetCreationXpCost(),
                                    magicWeapon.GetCreationRawMaterialCost(),
                                    magicWeapon.GetCreationRequirements(),
                                    Environment.NewLine));

            return(sb.ToString());
        }
Exemplo n.º 4
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));
        }
Exemplo n.º 5
0
 public static string BasicMagicalDisplay(WeaponItemWeaver weapon)
 {
     return(string.Format("{0}:\t'{1} gp'\t('+{2} value'){9}Weight: '{3} pound(s)'{9}To Hit: '+{4}'{9}Damage: '{5}'{9}Hardness: '{6}'{9}Hit Points: '{7}'{9}{8}",
                          weapon.GetName(),
                          weapon.GetCost(),
                          weapon.GetEnhancementBonusForCost(),
                          weapon.GetWeight(),
                          weapon.GetEnhancementBonus(),
                          weapon.GetDamage(),
                          weapon.GetModifiedHardness(),
                          weapon.GetModifiedHitPoints(),
                          weapon.GetDescription(),
                          Environment.NewLine));
 }