Пример #1
0
    public void OnInitialStatsComplete()
    {
        Debug.Assert(state == State.InitialStats);

        playerStatus.InitialiseFull(gameBalance, playerStats, playerHealth);

        NextEncounter();
    }
Пример #2
0
    private void InitialiseOpponentStatus()
    {
        // initialise full first
        opponentStatus.InitialiseFull(owner.gameBalance, opponentStats, descriptor.enemyHealth);

        // then apply modifiers
        if (!descriptor.enemyModifiers.CanFlee)
        {
            opponentStatus.fuel = 0;
        }
        opponentStatus.ammo = (descriptor.enemyModifiers.CanMissle ? descriptor.enemyMissles : 0);
        // todo: other encounter modifiers
    }