//////////////////////////To DO//////////////////////
        // Fix Showing Item properties (not null)
        // Fix properties
        /////////////////////////To DO///////////////////////
        public Item ArmorRollForStat()
        {
            Randomizers    statRandomizer = new Randomizers();
            ArmorItem      armor          = new ArmorItem();
            NameGenerator  name           = new NameGenerator();
            GearItemChoose type;

            armor.Hp         = statRandomizer.Random5();
            armor.Kp         = statRandomizer.Random5();
            armor.ItemLvl    = statRandomizer.RandomLvl();
            armor.Type       = GearRandomMethod();
            type             = armor.Type;
            armor.ArmorName  = name.ArmorNameGenerator(type);
            armor.Dmg        = 0;
            armor.CritChance = 0;


            return(armor);
        }
Beispiel #2
0
        public Item WeaponRollForStat()
        {
            Randomizers       statRandomizer = new Randomizers();
            WeaponItem        weapon         = new WeaponItem();
            NameGenerator     nameGenerator  = new NameGenerator();
            WeaponsItemChoose type;


            weapon.Dmg        = statRandomizer.Random5();
            weapon.CritChance = statRandomizer.Random5();
            weapon.ItemLvl    = statRandomizer.RandomLvl();
            weapon.Type       = WeaponRandomMethod();
            type = weapon.Type;
            weapon.WeaponName = nameGenerator.WeaponNameGenerator(type);
            weapon.Hp         = 0;
            weapon.Kp         = 0;


            return(weapon);
        }