Example #1
0
        public Weapon(ILocation location, Point position, WeaponType type, WeaponModifier modifier)
        {
            if (location != null)
            {
                Place(location, position);
            }

            Type       = type;
            Modifier   = modifier;
            Durability = MaxDurability;
        }
Example #2
0
 public Weapon(ILocation location, Point position, WeaponType type, WeaponModifier modifier)
 {
     if (location != null)
     {
         Place(location, position);
     }
     if (type != null)
     {
         Type = type;
     }
     else
     {
         throw new ArgumentNullException();
     }
     Modifier   = modifier;
     Durability = MaxDurability;
 }
Example #3
0
        public Generator()
        {
            MonsterType slime    = new MonsterType("slime", 's', 6, 2, 5, 3);
            MonsterType pest     = new MonsterType("pest", 'p', 10, 3, 5, 10);
            MonsterType ghoul    = new MonsterType("ghoul", 'g', 22, 4, 3, 15);
            MonsterType troll    = new MonsterType("troll", 't', 28, 4, 5, 20);
            MonsterType harpy    = new MonsterType("harpy", 'h', 35, 5, 8, 25);
            MonsterType minotaur = new MonsterType("minotaur", 'm', 38, 6, 5, 40);
            MonsterType cyclops  = new MonsterType("cyclops", 'm', 40, 7, 5, 65);
            MonsterType werewolf = new MonsterType("werewolf", 'w', 45, 8, 8, 75);
            MonsterType drake    = new MonsterType("drake", 'd', 55, 10, 8, 100);

            monsterTypes = new List <MonsterType>()
            {
                slime, pest, ghoul, troll, harpy, minotaur, cyclops,
                werewolf, drake
            };

            MonsterModifier feeble    = new MonsterModifier("feeble", 0.5, 0.7, 1, 0.6);
            MonsterModifier weak      = new MonsterModifier("weak", 0.7, 0.7, 1, 0.9);
            MonsterModifier tough     = new MonsterModifier("tough", 1.3, 1, 1, 1.2);
            MonsterModifier noxious   = new MonsterModifier("noxious", 1.1, 1.2, 1, 1.3);
            MonsterModifier monstrous = new MonsterModifier("monstrous", 1.3, 1.2, 1, 1.5);
            MonsterModifier ancient   = new MonsterModifier("ancient", 1.5, 1.1, 1, 1.7);
            MonsterModifier undying   = new MonsterModifier("undying", 2.5, 0.5, 1, 1.8);
            MonsterModifier vicious   = new MonsterModifier("vicious", 0.7, 1.8, 1.3, 1.8);
            MonsterModifier allseeing = new MonsterModifier("allseeing", 1, 1, 3, 1.4);
            MonsterModifier murderous = new MonsterModifier("murderous", 1, 2.2, 1.5, 2.1);

            monsterModifiers = new List <MonsterModifier>()
            {
                feeble, weak, tough, noxious, monstrous, ancient,
                undying, vicious, allseeing, murderous
            };

            WeaponType knife    = new WeaponType("knife", 'K', 2, 1, 20);
            WeaponType bludgeon = new WeaponType("bludgeon", 'B', 4, 3, 25);
            WeaponType mace     = new WeaponType("mace", 'M', 5, 6, 40);
            WeaponType axe      = new WeaponType("axe", 'A', 6, 6, 30);
            WeaponType claymore = new WeaponType("claymore", 'C', 10, 8, 30);
            WeaponType trident  = new WeaponType("trident", 'T', 8, 6, 25);
            WeaponType flail    = new WeaponType("flail", 'F', 8, 6, 35);

            weaponTypes = new List <WeaponType>()
            {
                knife, bludgeon, mace, axe, claymore, trident, flail
            };

            WeaponModifier stinging     = new WeaponModifier("stinging", 1.3, 1, 1);
            WeaponModifier bloodthirsty = new WeaponModifier("bloodthirsty", 1.6, 1, 1);
            WeaponModifier sturdy       = new WeaponModifier("sturdy", 1, 1.2, 1.7);
            WeaponModifier unbreakable  = new WeaponModifier("unbreakable", 1, 1.5, 2.5);
            WeaponModifier quality      = new WeaponModifier("quality", 1.3, 1, 1.3);
            WeaponModifier masterful    = new WeaponModifier("masterful", 1.6, 1, 1.6);
            WeaponModifier worn         = new WeaponModifier("worn", 0.8, 1, 0.9);
            WeaponModifier tattered     = new WeaponModifier("tattered", 0.6, 1, 0.7);
            WeaponModifier crystal      = new WeaponModifier("crystal", 1.7, 0.5, 0.4);
            WeaponModifier spirit       = new WeaponModifier("spirit", 2.5, 0.2, 0.2);
            WeaponModifier light        = new WeaponModifier("light", 0.8, 0.8, 1);
            WeaponModifier heavy        = new WeaponModifier("heavy", 1.5, 1.5, 1);

            weaponModifiers = new List <WeaponModifier>()
            {
                stinging, bloodthirsty, sturdy, unbreakable,
                quality, masterful, worn, tattered, crystal, spirit, light, heavy
            };
        }
Example #4
0
        public Generator()
        {
            SpecialMonsterChance = 25;
            SpecialWeaponChance  = 25;

            Slime        = new MonsterType("slime", 's', 6, 2, 5, 3);
            Pest         = new MonsterType("pest", 'p', 10, 3, 5, 10);
            Ghoul        = new MonsterType("ghoul", 'g', 22, 4, 3, 15);
            Troll        = new MonsterType("troll", 't', 28, 4, 5, 20);
            Harpy        = new MonsterType("harpy", 'h', 35, 5, 8, 25);
            Minotaur     = new MonsterType("minotaur", 'm', 38, 6, 5, 40);
            Cyclops      = new MonsterType("cyclops", 'm', 40, 7, 5, 65);
            Werewolf     = new MonsterType("werewolf", 'w', 45, 8, 8, 75);
            Drake        = new MonsterType("drake", 'd', 55, 10, 8, 100);
            MonsterTypes = new List <MonsterType>()
            {
                Slime, Pest, Ghoul, Troll, Harpy, Minotaur, Cyclops,
                Werewolf, Drake
            };

            Feeble           = new MonsterModifier("feeble", 0.5, 0.7, 1, 0.6);
            Weak             = new MonsterModifier("weak", 0.7, 0.7, 1, 0.9);
            Tough            = new MonsterModifier("tough", 1.3, 1, 1, 1.2);
            Noxious          = new MonsterModifier("noxious", 1.1, 1.2, 1, 1.3);
            Monstrous        = new MonsterModifier("monstrous", 1.3, 1.2, 1, 1.5);
            Ancient          = new MonsterModifier("ancient", 1.5, 1.1, 1, 1.7);
            Undying          = new MonsterModifier("undying", 2.5, 0.5, 1, 1.8);
            Vicious          = new MonsterModifier("vicious", 0.7, 1.8, 1.3, 1.8);
            Allseeing        = new MonsterModifier("allseeing", 1, 1, 3, 1.4);
            Murderous        = new MonsterModifier("murderous", 1, 2.2, 1.5, 2.1);
            MonsterModifiers = new List <MonsterModifier>()
            {
                Feeble, Weak, Tough, Noxious, Monstrous, Ancient,
                Undying, Vicious, Allseeing, Murderous
            };

            Knife       = new WeaponType("knife", 'K', 2, 1, 20);
            Bludgeon    = new WeaponType("bludgeon", 'B', 4, 3, 25);
            Mace        = new WeaponType("mace", 'M', 5, 6, 40);
            Axe         = new WeaponType("axe", 'A', 6, 6, 30);
            Claymore    = new WeaponType("claymore", 'C', 10, 8, 30);
            Trident     = new WeaponType("trident", 'T', 8, 6, 25);
            Flail       = new WeaponType("flail", 'F', 8, 6, 35);
            WeaponTypes = new List <WeaponType>()
            {
                Knife, Bludgeon, Mace, Axe, Claymore, Trident, Flail
            };

            Stinging        = new WeaponModifier("stinging", 1.3, 1, 1);
            Bloodthirsty    = new WeaponModifier("bloodthirsty", 1.6, 1, 1);
            Sturdy          = new WeaponModifier("sturdy", 1, 1.2, 1.7);
            Unbreakable     = new WeaponModifier("unbreakable", 1, 1.5, 2.5);
            Quality         = new WeaponModifier("quality", 1.3, 1, 1.3);
            Masterful       = new WeaponModifier("masterful", 1.6, 1, 1.6);
            Worn            = new WeaponModifier("worn", 0.8, 1, 0.9);
            Tattered        = new WeaponModifier("tattered", 0.6, 1, 0.7);
            Crystal         = new WeaponModifier("crystal", 1.7, 0.5, 0.4);
            Spirit          = new WeaponModifier("spirit", 2.5, 0.2, 0.2);
            Light           = new WeaponModifier("light", 0.8, 0.8, 1);
            Heavy           = new WeaponModifier("heavy", 1.5, 1.5, 1);
            WeaponModifiers = new List <WeaponModifier>()
            {
                Stinging, Bloodthirsty, Sturdy, Unbreakable,
                Quality, Masterful, Worn, Tattered, Crystal, Spirit, Light, Heavy
            };
        }