コード例 #1
0
 private BattleCharacter Build(BattleSide loyalty, StartingStats stats)
 {
     return(BattleCharacter.Create(loyalty,
                                   _builder.WithName(Guid.NewGuid().ToString().Substring(0, 7))
                                   .WithStats(stats)
                                   .Build()));
 }
コード例 #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;
    }
コード例 #3
0
ファイル: SEA.cs プロジェクト: andrewdownie/SEAPENSv2
    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>();
    }
コード例 #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();
    }
コード例 #5
0
ファイル: BaseStats.cs プロジェクト: andrewdownie/SEAPENSv2
 protected override void GatherRefs()
 {
     startingStats  = GetComponent <StartingStats>();
     purchasedStats = GetComponent <PurchasedStats>();
     baseAtts       = GetComponent <BaseAttributes>();
 }
コード例 #6
0
 protected override void GatherRefs()
 {
     actualAttributes = GetComponent <ActualAttributes>();
     purchasedStats   = GetComponent <PurchasedStats>();
     startingStats    = GetComponent <StartingStats>();
 }
コード例 #7
0
 private BattleCharacter CreateHero(StartingStats stats)
 {
     return(Build(BattleSide.Gamer, stats));
 }
コード例 #8
0
 private BattleCharacter CreateEnemy(StartingStats stats)
 {
     return(Build(BattleSide.Enemy, stats));
 }