feat: Great Luck trait; Luck for more rolls; Ref the roll func#769
feat: Great Luck trait; Luck for more rolls; Ref the roll func#769OH296 merged 1 commit intoAdeptus-Dominus:mainfrom
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughBy the Omnissiah's will, this update introduces a new "Great Luck" trait to the data schema and refactors the randomisation logic across numerous modules. The ancient, disparate dice-rolling procedures have been unified and centralised via new functions, with reroll logic now accommodating both the "Shitty Luck" disadvantage and the newly sanctified "Great Luck" advantage. Manual roll adjustments and direct random integer generation have been replaced by standardised function calls, ensuring consistency and modularity in all probability-based operations. Data structures and trait metadata have been synchronised to reflect these changes, and advantage/disadvantage descriptors have been updated for clarity. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
May the Machine God bless your review with error-free logic and fortuitous outcomes. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (26)
🧰 Additional context used📓 Path-based instructions (3)`**/*.gml`: - Macro constants require a space between the constant name and value. Without it, the compiler will throw an error. I.e. `#macro ARR_body_parts["arm"]` will crash the ...
`**/*.*`: - Having humanly understandable and maintainable code is always the top most priority. - DRY (Don't repeat yourself) principle is also very important. - Ensure that the c...
`**/*.json`: - JSON files with comments are supported by the parser used by this team. Don't warn or request changes to remove them.
🔇 Additional comments (60)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
OH296
left a comment
There was a problem hiding this comment.
All cool i don't know when would be best to merge this given the situation with trying to push a stable out so i'll let you merge it as soon or as late as you feel would be appropriate
Blogaugis
left a comment
There was a problem hiding this comment.
Anyway, didn't notice any obvious issues.
Purpose
Describe your changes/additions
roll_dice(no luck interaction),roll_dice_chapter(chapter's luck) androll_dice_unit(unit's luck).What can/needs to be improved/changed
Testing done
Related things and/or additional context