Exemple #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();
    }