Skip to content

random.Next -> random.NextDouble in CultistCircle#745

Merged
ArchangelWTF merged 1 commit intosp-tarkov:4.1.x-devfrom
acidphantasm:CC-Fix
Apr 5, 2026
Merged

random.Next -> random.NextDouble in CultistCircle#745
ArchangelWTF merged 1 commit intosp-tarkov:4.1.x-devfrom
acidphantasm:CC-Fix

Conversation

@acidphantasm
Copy link
Copy Markdown
Contributor

random.Next(0,1) will always return 0 because the maxValue is exclusive

BonusChanceMultiplier is a double (default 0.25)

random.NextDouble will return 0.0 (inclusive) - 1.0 (exclusive) which will properly check the BonusChanceMultiplier instead of always being true

@ArchangelWTF ArchangelWTF merged commit 085f589 into sp-tarkov:4.1.x-dev Apr 5, 2026
2 of 5 checks passed
ArchangelWTF pushed a commit that referenced this pull request Apr 10, 2026
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.

3 participants