1
1

ChampionOrigin.ts 1.2 KB

12345678910111213141516171819
  1. /// <reference path="../CharacterOrigin.ts" />
  2. module CharacterCreation {
  3. export let ChampionOrigin = new CharacterOrigin("Champion");
  4. ChampionOrigin.name = "Champion";
  5. ChampionOrigin.description= "You were born in the small village of Southwood in the post-Tower world. Chosen by the village elder, you were trained relentlessly as soon as you became able to walk. Your mission: get to the Tower and find a way to destroy it. Unbeknownst to you, this is little more than a sacrifice ritual and you are just it's latest victim. The village doesn't actually expect you to succeed, you are merely a gift to the Tower, so that it will not destroy Southwood.";
  6. ChampionOrigin.bonusStats = "This origin grants a +1 Bonus to every attribute, but you will be stuck with some perks gained through your training.";
  7. // Give +1 to all stats if picked
  8. ChampionOrigin.confirmPicked = () => {
  9. let player = WorldState.player;
  10. function increaseStat (attr : Attribute) {
  11. player.setStat(attr, player.getStat(attr) + 1);
  12. }
  13. increaseStat(Attributes.Strength);
  14. increaseStat(Attributes.Charm);
  15. increaseStat(Attributes.Agility);
  16. increaseStat(Attributes.Intelligence);
  17. }
  18. }