Skip to content

BetterCalc 2.1:tm:#411

Merged
Aurelius7309 merged 9 commits into
mainfrom
cardareas
Jan 16, 2025
Merged

BetterCalc 2.1:tm:#411
Aurelius7309 merged 9 commits into
mainfrom
cardareas

Conversation

@Aurelius7309
Copy link
Copy Markdown
Member

  • Adds util functions for a lot of code that was previously patched into state_events.lua. This should further simplify adding calculation to custom card areas. Added functions are score_card, calculate_main_scoring, calculate_end_of_round_effects, calculate_destroying_cards.
  • Adds SMODS.optional_features, which can be enabled by defining a optional_features function (or table, in which case calling it is skipped). Currently available options are cardareas.deck and cardareas.discard to enable scoring calculation for the respective areas.
  • Adds context.main_eval to calculation that affects jokers directly and doesn't have a secondary card, replaces not context.individual and not context.repetition.

@Aurelius7309
Copy link
Copy Markdown
Member Author

Note: this includes the enhancement cache commit because i started working on this using the wrong branch. Its code has been removed because it has not been fully reviewed, which I'm planning to do later.

@Aurelius7309 Aurelius7309 merged commit 7dbd5cc into main Jan 16, 2025
@Aurelius7309 Aurelius7309 deleted the cardareas branch January 26, 2025 20:05
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