Exemple #1
0
 private BattleCharacter Build(BattleSide loyalty, StartingStats stats)
 {
     return(BattleCharacter.Create(loyalty,
                                   _builder.WithName(Guid.NewGuid().ToString().Substring(0, 7))
                                   .WithStats(stats)
                                   .Build()));
 }
Exemple #2
0
    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;
    }
Exemple #3
0
    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>();
    }
Exemple #4
0
    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();
    }
Exemple #5
0
 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>();
 }
Exemple #7
0
 private BattleCharacter CreateHero(StartingStats stats)
 {
     return(Build(BattleSide.Gamer, stats));
 }
Exemple #8
0
 private BattleCharacter CreateEnemy(StartingStats stats)
 {
     return(Build(BattleSide.Enemy, stats));
 }