Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update mutations.json #37883

Merged
merged 2 commits into from
Feb 13, 2020
Merged

update mutations.json #37883

merged 2 commits into from
Feb 13, 2020

Conversation

wingbrother
Copy link
Contributor

Summary

SUMMARY: Bugfixes "change bad and good memory traits to match the new skill rust system"

Describe the solution

In new skill rust system increasing skillrust rate increase time between skill rusting. Old good memory traits decrease time (accelerate skillrusting instead of slowing down) in new system. Inversing skill_rust_multiplier between FORGETFUL and GOODMEMORY traits.

Change good and bad memory traits have changed to match the new skill rust system
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies labels Feb 10, 2020
@ZhilkinSerg
Copy link
Contributor

GOODMEMORY trait had multiplier of 0.66 and FORGETFUL trait had multiplier of 1.33 for skill_rust_multiplier both before and after it was jsonized in #32337. I don't remember anything changed regarding skill rust system recently that need to swap multiplier values between traits.

@wingbrother
Copy link
Contributor Author

wingbrother commented Feb 10, 2020

in
bool SkillLevel::rust
if( to_turns( skill_rate ) * char_rate <= 0 || delta <= 0_turns ||
delta % ( skill_rate * char_rate ) != 0_turns ) {
return false;
}

in
int Character::rust_rate() const
*ret = mutation_value( "skill_rust_multiplier" );

I highlighted those parts due to which skill ratе need swaping

@ZhilkinSerg
Copy link
Contributor

That is not something new then - it was always % operator at least back to 0.A.

bool SkillLevel::rust(const calendar& turn, bool charged_bio_mem)
{
    if (_level > 0 && turn > _lastPracticed &&
       (turn - _lastPracticed) % rustRate(_level) == 0)

@wingbrother
Copy link
Contributor Author

wingbrother commented Feb 10, 2020

earlier skill_rust_multiplier used to change the probability of a decrease in skills; now it affects the time between skill losses.

int ret = ( ( get_optionstd::string( "SKILL_RUST" ) == "vanilla" ||
get_optionstd::string( "SKILL_RUST" ) == "capped" ) ? 100 : 100 + 10 * ( intel - 8 ) );

high intellect increase rust_rate

sorry for my bad english.

@Fris0uman
Copy link
Contributor

Yep this #37281 changed what the rate means, sorry for not catching the mutation thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants