Esempio n. 1
0
    public void OptionOneSelected()
    {
        switch (_gameData.CurrentEvent.OptionOneType1)
        {
        case ModifierType.Subs:
            _playerManager.AddSubs((int)_gameData.CurrentEvent.OptionOneAmount1);
            break;

        case ModifierType.Stress:
            _playerManager.AddStress(_gameData.CurrentEvent.OptionOneAmount1);
            break;

        case ModifierType.Passion:
            _playerManager.AddPassion(_gameData.CurrentEvent.OptionOneAmount1);
            break;

        case ModifierType.PositiveComments:
            _chatManager.AddPositiveChance((int)_gameData.CurrentEvent.OptionOneAmount1);
            break;

        case ModifierType.NegativeComments:
            _chatManager.AddNegativeChance((int)_gameData.CurrentEvent.OptionOneAmount1);
            break;

        case ModifierType.HatefullComments:
            _chatManager.AddHatefullChance((int)_gameData.CurrentEvent.OptionOneAmount1);
            break;
        }

        switch (_gameData.CurrentEvent.OptionOneType2)
        {
        case ModifierType.Subs:
            _playerManager.AddSubs((int)_gameData.CurrentEvent.OptionOneAmount2);
            break;

        case ModifierType.Stress:
            _playerManager.AddStress(_gameData.CurrentEvent.OptionOneAmount2);
            break;

        case ModifierType.Passion:
            _playerManager.AddPassion(_gameData.CurrentEvent.OptionOneAmount2);
            break;

        case ModifierType.PositiveComments:
            _chatManager.AddPositiveChance((int)_gameData.CurrentEvent.OptionOneAmount2);
            break;

        case ModifierType.NegativeComments:
            _chatManager.AddNegativeChance((int)_gameData.CurrentEvent.OptionOneAmount2);
            break;

        case ModifierType.HatefullComments:
            _chatManager.AddHatefullChance((int)_gameData.CurrentEvent.OptionOneAmount2);
            break;
        }

        _gameManager.EventCompleted();
    }
Esempio n. 2
0
    void HandleTick()
    {
        switch (_actionsManager.CurrentAction)
        {
        case ActionType.Streaming:
            AddSubs(PlayerLevel() + 3);
            _chatManager.AddHatefullChance(0.06f);
            break;

        case ActionType.Friends:
            AddPassion(-0.8f);
            AddStress(-2.8f);
            AddSubs(-(PlayerLevel() / 2));
            break;

        case ActionType.Walking:
            AddPassion(-2.0f);
            AddStress(-4.0f);
            AddSubs(-(PlayerLevel() / 2));
            break;

        case ActionType.Watching:
            AddPassion(0.2f);
            AddStress(-1.0f);
            AddSubs(-(PlayerLevel() / 4));
            break;

        case ActionType.Responding:
            AddPassion(1f);
            AddStress(1f);
            _chatManager.AddHatefullChance(-0.3f);
            AddSubs(PlayerLevel());
            break;
        }
        ;
    }