907c459419
Fix another crash on page 2 of spell picker
2025-02-20 20:01:38 -05:00
f80f8a932a
Implement a feature flags system.
...
* Scenarios contain a string map of feature flags. The flag names are the keys, and flag versions are the values, so a typical value might be "fixed" for bug fixes or for evolving features, "V1", "V2", etc.
* The game has a map of flags to lists of supported versions. The game can therefore signal that it supports a legacy behavior for a given feature flag. The last version in the list is considered to be this build version's default behavior.
* When launching a scenario, we check to make sure the game supports the scenario's required versions of its feature flags.
* When launching a replay, we make sure the game supports the feature flags that the version of the game that made the recording did.
Fix #555
Close #591
2025-02-19 22:32:12 -05:00
e61abae720
When party is off-center, draw_party_symbol offset them. Fix #628
2025-02-18 20:41:25 -05:00
dbf5822590
Add hotkey in top-left corner of shop item. Fix #624 ( #630 )
2025-02-18 20:40:36 -05:00
ec06ca4be3
Don't handle arrow keys specially in some modes. Fix #588
2025-02-18 09:37:56 -05:00
c6f06ea862
DRY food/gold maximums. fix #79
2025-02-16 21:41:47 -05:00
cff8200f02
make give/take gold/food DRY
2025-02-16 21:41:47 -05:00
6916752a8a
fix crash when no strings defined
2025-02-16 19:33:58 -06:00
c4e1ff7f0d
Make getting scenario strings DRY
2025-02-16 19:33:52 -06:00
8cff2428a9
DRY advanced town help. Fix #611
2025-02-16 00:02:22 -05:00
78d10987fe
draw scale-aware text onto RenderTextures
2025-02-15 15:16:15 -06:00
8ab451f633
delete unused sf::Text
2025-02-15 15:12:17 -06:00
7383b39e69
Debug action: Preview every dialog layout
2025-02-15 16:04:32 -05:00
cfbb09a008
Merge pull request #587 from NQNStudios:fix-ranged-anim
...
Fix some ranged attack animation bugs
Fix #582
Fix #97
2025-02-15 16:03:51 -05:00
46c102257b
make give_help()'s force_help a bool arg
2025-02-15 11:19:44 -05:00
18a425be0d
cPlayer give_help use bool flag instead of function pointer
2025-02-15 11:19:44 -05:00
576a40b3e1
make give_help() DRY
2025-02-15 11:19:44 -05:00
3a5cc4ead4
catch a replay system do_load edge case crash
2025-02-14 09:54:32 -05:00
a3ddff55aa
add was_replaying to track how the game started
2025-02-14 09:54:32 -05:00
404f364053
recenter camera 1/2way into missile arc if sooner
2025-02-13 09:51:36 -06:00
fa1d9a7442
don't frame active PC when out-of-bounds in ranged anim
2025-02-13 09:50:20 -06:00
ab0eada20d
explosion anims clip within terrain screen
2025-02-13 09:50:13 -06:00
318f430917
clip missiles when they go beyond the ter screen
2025-02-13 09:49:59 -06:00
3188f2ed9b
sensible camera handling for ranged attacks
2025-02-13 09:48:16 -06:00
f94abd3575
Make getting terrain screen rects DRY
2025-02-13 09:47:37 -06:00
d2fb94b6c6
confirm before killing
2025-02-10 20:44:55 -05:00
d95703ecf5
Fix restore party in scenario. Fix #597
2025-02-10 20:44:55 -05:00
0a5abec8e1
Debug action: kill the party
2025-02-10 20:44:55 -05:00
fb341728a6
better save message during combat
2025-02-10 13:12:48 -05:00
2a02b46b3b
Escape cancel look mode in combat and outdoors
2025-02-10 13:12:48 -05:00
43c2f14a63
Fix scrollbars loading from command-line. Fix #589
2025-02-10 13:12:48 -05:00
32d97a00bf
Explain in code how sanctuary works
2025-02-09 16:39:05 -06:00
a56dac58b1
fix sanctuary early return bug
2025-02-09 16:17:46 -06:00
e81cde113c
Fix armor level 0 ( #590 )
...
Armor items with item level 0, will have a base defense value of 0 instead of 1, and display their defense value as such in the get items screen.
Fix #245
2025-02-09 10:36:14 -05:00
afa0b9d7a4
debug actions show item + town names
2025-02-08 23:11:57 -05:00
392ad5eac0
get_num_response allow pass choice names
2025-02-08 23:11:57 -05:00
772bd71b16
Him/her -> them
2025-02-08 18:24:16 -05:00
c20dbbf88e
DRY launch doc url
2025-02-07 09:51:45 -05:00
5804d84012
Disallow deleting PC in combat. Fix #70
2025-02-07 09:51:10 -05:00
7ac994f97f
help button don't blink when i click a talk word
2025-02-06 08:44:38 -06:00
891cc2dbcf
Help button don't hide if returning to talk mode. fix #64
2025-02-06 08:39:35 -06:00
48089a95bf
record and replay now-distinct shop click events
2025-02-04 12:43:58 -06:00
4c9a4b4fb2
fix done/help buttons disappearing
2025-02-04 12:39:02 -06:00
cf79392762
highlight all of the cost text
2025-02-04 12:30:12 -06:00
673de75c73
separate args to highlight text and item help button
2025-02-04 12:29:52 -06:00
ddad32458e
render shop highlights at non-offset positions
2025-02-04 12:16:23 -06:00
2314e9e5b4
fix clip_rect when drawing pressed shop graphics
2025-02-04 12:09:26 -06:00
081d237cbf
talking and shopping: don't pass click events forward
...
Fix #567
2025-02-04 08:59:55 -06:00
3ad647c700
Fit preset talk word click rects. Fix #566
2025-02-04 08:48:18 -06:00
bc5f42a870
quick implementation of previewing dialogxml for #564 ( #565 )
2025-02-03 09:20:42 -05:00