Skip to content

Comments

Revamp Trait Description Generation System for Easier Maintenance#1554

Open
g4nd41ph wants to merge 1 commit intopmotschmann:masterfrom
g4nd41ph:description
Open

Revamp Trait Description Generation System for Easier Maintenance#1554
g4nd41ph wants to merge 1 commit intopmotschmann:masterfrom
g4nd41ph:description

Conversation

@g4nd41ph
Copy link

@g4nd41ph g4nd41ph commented Feb 3, 2026

Small refactor of handling for exceptions to trait values in descriptions are handled. Moved them into a new optional desc_function() in each trait that takes a set of the values that are to be displayed and modifies them as required before returning the values.

Regression testing was performed and looks good as far as I can tell.

Also fixes incorrect values displayed in descriptions for Blurry, Chameleon, and Elusive:

Blurry previously said that surveyor death chance is reduced by X, which is incorrect, as X was the divisor modifier, and not the change in surveyor death chance. Used new desc_function setup to show that the change in surveyor death rates is actually X/(1+X).

Chameleon and Elusive both have the same incorrect description: their descriptions state that ambushes are X% less likely, but actually, the ambush chance divisor is increased by X%. This leads to nonsense like ambushes still happening when they are displayed as 100% less likely at rank 3 in both traits. Used the new desc_function setup to show that the change in ambush chance is (1 - (30 / (X + 30))).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant