Commit d54ecaf
Fix two incorrect comments about template maneuver XMLIDs
Defect 1: Comments incorrectly claimed all 53 template maneuvers carry
XMLID="MANEUVER". FACT: template maneuvers carry NO XMLID — DISPLAY is
their sole identity. The XMLIDs all being "MANEUVER" applies only to
maneuvers written into HDC files, not the template itself. That's why the
template index is keyed by display.
Corrected comments at:
- kirby_cost/campaign/rules.py:147 (comment)
- kirby_cost/campaign/rules.py:155-158 (ValueError message text)
- kirby_cost/template/hdt_provider.py:720-722 (docstring)
Defect 2: Comment at rules.py:41-43 claimed nine fields were "observed
changing a real object". FACT: only six were probed on real character
loads (killing, does_body, does_damage, does_knockback, defense, target,
range, uses_end, level_cost, display, level_value, level_power,
level_multiplier, min_set, max_set, base_value). The other three
(all_cost, group_cost, sense_cost) were probed via apply_template on a
constructed SenseAdder, not a real character load.
Narrowed the claim and added caveat explaining the testing method for
those three fields.
All 53 tests still passing. Refusal-message assertions still hold.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xof4ZUS5n6A5ibX3PXNYbs1 parent 511429f commit d54ecaf
2 files changed
Lines changed: 25 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| |||
0 commit comments