Beispiel #1
0
        public Gear CreateGear(Constants.Slot slot)
        {
            if (modifiers == null)
            {
                LoadModifiers();
            }
            if (gear == null)
            {
                LoadGear();
            }
            List <Modifier> chosenMods = new List <Modifier>();
            int             level      = gameManager.Level;
            Gear            newGear    = gear.FindLast(x => x.RLvl <= level && x.Slot == slot).Copy();

            for (int i = 0; i < newGear.Affixes; i++)
            {
                Modifier newMod = PickMod();
                chosenMods.Add(newMod);
            }
            chosenMods   = CombineMods(chosenMods, level);
            newGear.mods = chosenMods;
            return(newGear);
        }
Beispiel #2
0
 public void AddGear(Constants.Slot slot, Gear newGear)
 {
     gear[(int)slot] = newGear;
     UpdateGearPanels();
     UpdateGearStats();
 }