public void InitalizeToDefault() { playerName = "Please pass me"; //Level gameLevelIndex = CurrentSceneIndex; spawnPointIndex = 0; //Stats level = 1; profession = ProfessionTypes.Warrior; race = RacialTypes.FireBirds; attributes = new PlayerAttribute(profession); stats = new PlayerStats(attributes); abilityLoadout = new PlayerAbilityLoadout(race); bagItems = new ItemSaveFile[BagSlots]; consumableBarItems = new ItemSaveFile[ConsumableBarSlots]; equipmentItems = new ItemSaveFile[EquipmentSlots]; ArrayPopulate(bagItems, BagSlots); ArrayPopulate(consumableBarItems, ConsumableBarSlots); ArrayPopulate(equipmentItems, EquipmentSlots); hp = stats.HPMax; mp = stats.MPMax; ap = stats.APMax; money = 5000; hairColor = Color.red; eyeColor = Color.yellow; headColor = Color.white; bodyColor = Color.blue; }
public PlayerAbilityLoadout(RacialTypes race) { abilities[0] = AbilityTypes.Slash; abilities[1] = AbilityTypes.Whirl; SetRace(race); }
public void SetRace(RacialTypes race) { switch (race) { case RacialTypes.FireBirds: abilities[2] = AbilityTypes.FireLob; break; case RacialTypes.IceFrogs: abilities[2] = AbilityTypes.IcyBlast; break; } }