Skip to content

refactor: replace MAX_FIRSTAID_REMOVE with ERemovableSpell enum (#3006)#3009

Merged
bylins merged 1 commit intomasterfrom
issue.3006
Mar 21, 2026
Merged

refactor: replace MAX_FIRSTAID_REMOVE with ERemovableSpell enum (#3006)#3009
bylins merged 1 commit intomasterfrom
issue.3006

Conversation

@bylins
Copy link
Owner

@bylins bylins commented Mar 21, 2026

Replace the #define MAX_FIRSTAID_REMOVE 17 with an enum that gives meaningful names to each removable spell index:
kRemAbstinent=0, kRemPoison=1, ..., kRemBattle=16, kMaxFirstaidRemove=17

This makes the difficulty threshold in firstaid (prob/10 > count) readable: you can see which spell corresponds to which skill level.

Replace the #define MAX_FIRSTAID_REMOVE 17 with an enum that gives
meaningful names to each removable spell index:
  kRemAbstinent=0, kRemPoison=1, ..., kRemBattle=16, kMaxFirstaidRemove=17

This makes the difficulty threshold in firstaid (prob/10 > count)
readable: you can see which spell corresponds to which skill level.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bylins bylins merged commit c9e337c into master Mar 21, 2026
20 checks passed
@bylins bylins deleted the issue.3006 branch March 21, 2026 12:29
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.

1 participant