Esempio n. 1
0
    internal void CharacterSettingApplyResearch(Research research, int level)
    {
        if (research == null)
        {
            return;
        }
        float value = research.CalculateValue(level) - research.CalculateValue(level - 1);

        _userDatabase.AddCharacterResearch(research, level);
        AddCharacterSetting(research.Target, value);
        CharacterResearching.Level = 0;
        _userDatabase.SaveCharacterResearching();
    }
Esempio n. 2
0
    internal void CharacterSettingApplyFullResearch(Research research, int level)
    {
        if (research == null)
        {
            return;
        }
        float value = research.CalculateValue(level);

        AddCharacterSetting(research.Target, value, false);
    }