private BattleCharacter Build(BattleSide loyalty, StartingStats stats) { return(BattleCharacter.Create(loyalty, _builder.WithName(Guid.NewGuid().ToString().Substring(0, 7)) .WithStats(stats) .Build())); }
public static void SetStart() { startStats = GameObject.FindObjectOfType <StatSystem>().startingStats; allowInteractionsI = allowInteractions; isGameOverI = isGameOver; fileOpenI = fileOpen; notepadOpenI = notepadOpen; keysFoundI = keysFound; locationsFoundI = locationsFound; hintsFoundI = hintsFound; censorTextI = censorText; }
void GatherRefs() { effects = GetComponent <Effects>(); startingAtts = GetComponent <StartingAttributes>(); purchasedAtts = GetComponent <PurchasedAttributes>(); baseAtts = GetComponent <BaseAttributes>(); actualAtts = GetComponent <ActualAttributes>(); baseStats = GetComponent <BaseStats>(); purchasedStats = GetComponent <PurchasedStats>(); startingStats = GetComponent <StartingStats>(); startingActualStats = GetComponent <StartingActualStats>(); actualStats = GetComponent <ActualStats>(); }
public Stats(Unit owner, StartingStats sstats) { this.owner = owner; this.maxHitPoints = sstats.maxHitPoints; this.maxMagicka = sstats.maxMagicka; this.maxStamina = sstats.maxStamina; archery = new Skill("archery", sstats.archery); oneHanded = new Skill("one-handed", sstats.oneHanded); twoHanded = new Skill("two-handed", sstats.twoHanded); block = new Skill("block", sstats.block); heavyArmor = new Skill("heavy armor", sstats.heavyArmor); lightArmor = new Skill("light armor", sstats.lightArmor); alteration = new Skill("alteration", sstats.alteration); conjuration = new Skill("conjuration", sstats.conjuration); destruction = new Skill("destruction", sstats.destruction); illusion = new Skill("illusion", sstats.illusion); restoration = new Skill("restoration", sstats.restoration); lockpicking = new Skill("lock-picking", sstats.lockpicking); pickpocket = new Skill("pickpocket", sstats.pickpocket); sneak = new Skill("sneak", sstats.sneak); smithing = new Skill("smithing", sstats.smithing); enchanting = new Skill("enchanting", sstats.enchanting); alchemy = new Skill("alchemy", sstats.alchemy); cooking = new Skill("cooking", sstats.cooking); search = new Skill("search", sstats.search); speech = new Skill("speech", sstats.speech); hunting = new Skill("hunting", sstats.hunting); addLevelUpListeners(); }
protected override void GatherRefs() { startingStats = GetComponent <StartingStats>(); purchasedStats = GetComponent <PurchasedStats>(); baseAtts = GetComponent <BaseAttributes>(); }
protected override void GatherRefs() { actualAttributes = GetComponent <ActualAttributes>(); purchasedStats = GetComponent <PurchasedStats>(); startingStats = GetComponent <StartingStats>(); }
private BattleCharacter CreateHero(StartingStats stats) { return(Build(BattleSide.Gamer, stats)); }
private BattleCharacter CreateEnemy(StartingStats stats) { return(Build(BattleSide.Enemy, stats)); }