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 void SetProfession(int professionIndex) { ProfessionTypes profession = (ProfessionTypes)professionIndex; gameData.SaveFile.profession = profession; gameData.SaveFile.attributes.SetToProfessionTemplate(profession); unspentStatPoints = MaxUnspentStatPoints; attributesUI.UpdateDisplay(gameData.SaveFile); attributesUI.SetUnspentPoints(unspentStatPoints); }
public void SetToProfessionTemplate(ProfessionTypes profession) { switch (profession) { case ProfessionTypes.Warrior: Strength = 9; Intelligence = 1; Endurance = 4; Agility = 3; Willpower = 1; Luck = 2; break; case ProfessionTypes.Knight: Strength = 6; Intelligence = 2; Endurance = 8; Agility = 2; Willpower = 1; Luck = 1; break; case ProfessionTypes.Priest: Strength = 1; Intelligence = 5; Endurance = 2; Agility = 2; Willpower = 7; Luck = 3; break; case ProfessionTypes.Mage: Strength = 1; Intelligence = 8; Endurance = 2; Agility = 2; Willpower = 4; Luck = 3; break; case ProfessionTypes.Archer: Strength = 1; Intelligence = 1; Endurance = 2; Agility = 7; Willpower = 4; Luck = 5; break; case ProfessionTypes.Assassin: default: Strength = 5; Intelligence = 1; Endurance = 2; Agility = 4; Willpower = 2; Luck = 6; break; } }
public PlayerAttribute(ProfessionTypes profession = ProfessionTypes.Warrior) { SetToProfessionTemplate(profession); }