Quality of life: Spellcasting #536

Merged
NQNStudios merged 21 commits from recast-hint into master 2025-01-23 14:30:08 +00:00

21 Commits

Author SHA1 Message Date
d8089fe013 silver 2025-01-22 11:01:22 -06:00
4c53acc686 move the asPeaceful() note to where it will help 2025-01-21 19:36:19 -06:00
1fb1aa2ce3 add back the extra colours 2025-01-21 19:33:49 -06:00
3de6870628 parseColor use - instead of _ 2025-01-21 19:15:38 -06:00
b14a238ee3 Don't allow Major Blessing in town mode. Fix #541
It seemed reasonable that we actually would want to LET
the player cast this in town mode, but it seems like other
blessing spells (i.e. Haste) do not
2025-01-21 12:40:19 -06:00
e314030879 clarify asPeaceful() function for spells
I found it very confusing how many of the spells were
(WHEN_COMBAT).asPeaceful(). I thought those were bugs at first.
2025-01-21 12:37:34 -06:00
8703c772d4 fix bug which made several spell leds broken on page 1 2025-01-21 12:23:48 -06:00
92b798c48a simplify if-else with identical branches 2025-01-21 12:11:26 -06:00
fc30ea4619 advance_time after space to end fancy target. Fix #539 2025-01-20 14:57:06 -06:00
7742373142 Try recast opposite spell type: Toggle the hint 2025-01-20 14:42:40 -06:00
cbb964a073 recast hint take the place of party status icons 2025-01-20 14:01:13 -06:00
e2104a4390 exclude split party members from target list 2025-01-20 13:45:01 -06:00
8e4cb8fc65 relative positioning for PC stat icons 2025-01-20 13:44:57 -06:00
0051274d26 make spell columns relative-position 2025-01-20 13:44:52 -06:00
4c383d116c re-arrange and align HP/SP 2025-01-20 13:44:47 -06:00
4260d41bf6 colorize hp and sp in casting menu 2025-01-20 13:44:42 -06:00
daecca4abe dialogxml parseColor use a map built from Colours constants
parseColor() was doing a big if-else with string comparisons,
and returning values that differed from our Colours constants.
Since I couldn't find an instance of the colour attribute in our
existing xml, it should be safe to do away with those conflicting
values and refactor parseColor() to match the constants
and use cleaner code.
2025-01-20 13:44:31 -06:00
f58d95496d fix unit test for last_cast change 2025-01-20 13:42:26 -06:00
c7ce84def2 More intuitive coloration in spell menu 2025-01-20 13:42:20 -06:00
0ef3ad81d9 Recast hint for spellcasters 2025-01-20 13:42:03 -06:00
c38c79b12b no default repeat spells & buf message when none stored
Fix #535
2025-01-20 13:41:49 -06:00