Skip to content

Treat death gold settings above one as flat fees - #947

Open
absol89 wants to merge 1 commit into
tiltedphoques:devfrom
absol89:codex/fix-death-gold-penalty
Open

absol89 wants to merge 1 commit into
tiltedphoques:devfrom
absol89:codex/fix-death-gold-penalty

Conversation

@absol89

@absol89 absol89 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Keep fractional penalties through 1.0, cap deductions at available gold, and reject invalid settings. Preserve decimal notation for floating-point INI defaults and cover the calculation with unit tests. Tested ingame, flat fee may be less buggy than what people have reported happening before where the fraction did unexpected things.

Keep fractional penalties through 1.0, cap deductions at available gold, and reject invalid settings. Preserve decimal notation for floating-point INI defaults and cover the calculation with unit tests.
@miredirex

miredirex commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

what does this mean in simple gameplay terms? Nevermind, reading the code turned out to be simpler than PR's description

@absol89

absol89 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Before, players could only lose a server set fraction of their held gold, and values above >=1.0 took all their gold.

The new systems still allows all fractions to be usable, but also flat fee when people just put ints without reading.

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.

2 participants