Skip to content

context.modify_final_cashout#1197

Open
the-Astra wants to merge 6 commits intoSteamodded:mainfrom
the-Astra:feature/modify_final_cashout
Open

context.modify_final_cashout#1197
the-Astra wants to merge 6 commits intoSteamodded:mainfrom
the-Astra:feature/modify_final_cashout

Conversation

@the-Astra
Copy link
Copy Markdown
Contributor

@the-Astra the-Astra commented Feb 6, 2026

Adds context.modify_final_cashout which is a context that triggers after calc_dollar_bonus calls that allow for manipulation of the final cashout reward. Has context.dollars to represent the final cashout value at time of trigger. Returning cashout_mod = value in a return will modify the cashout value by the returned value and automatically add a row to the cashout report. context.dollars is updated accordingly after a trigger

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

@Aurelius7309
Copy link
Copy Markdown
Member

I don't love to be adding more single-use functions when this is a perfect use case for a self-modifying context

@the-Astra
Copy link
Copy Markdown
Contributor Author

I don't love to be adding more single-use functions when this is a perfect use case for a self-modifying context

The original intent was for this to be a context, but I wasn't sure how to do the automatic cashout lines through a method like that

@the-Astra the-Astra changed the title Modify Final Cashout context.modify_final_cashout Mar 23, 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.

2 participants