Commit Graph

609 Commits

Author SHA1 Message Date
7cd48a44ee remove -> void where unnecessary 2025-03-02 01:15:53 -05:00
03b9bf5abf Confirm before debug-switching scenario 2025-03-02 01:15:53 -05:00
92f698cc57 Debug actions to quick-launch core scenarios 2025-03-02 01:15:53 -05:00
1d63e76c26 More buttons for debug help window 2025-03-02 01:15:53 -05:00
068e87ea39 Debug enter town: Move outdoor location. Fix #664 2025-03-02 01:15:53 -05:00
a7ba60a6d5 Allow limited debug mode in startup menu 2025-03-02 01:15:53 -05:00
f464526d0d preview_dialog_xml don't try to load empty filename 2025-03-02 01:15:53 -05:00
ad43e8ab81 Draw item scrollbar in boom_space. Fix #650 2025-03-02 01:13:53 -05:00
8973618dff Wait action: always print to buffer when can't 2025-03-02 01:13:30 -05:00
91f28d3c9d Fix menubar alchemy clicking 'Ask About' in talk mode 2025-03-02 01:13:30 -05:00
9dfc9e7287 DRY a frequently used buffer string 2025-03-02 01:13:30 -05:00
0afed5db59 A feature flag denotes whether a scenario uses the new or old format for its metadata. With the old format (legacy scenarios and openBoE scenarios created prior to this PR) everything displays in the scenario picker as before, and scenario designers get 2 text fields to display however they want, and 2 text fields that are pretty much useless.
With the new format, Author and Contact info are formatted onto the first line in the scenario picker display. The scenario designer gets 1 line to write a teaser.

Fix #593

Also fix a bug where scenario ratings were appearing as integers ingame instead of the correct "G", "PG", etc.
2025-03-02 01:09:03 -05:00
06abd20f8f make 'i' show inventory 2025-02-27 08:55:56 -05:00
a862c362fb Switch debug keys for clearing souls 2025-02-27 08:55:56 -05:00
04183c7fbe Fix summoning exported monsters 2025-02-27 08:55:56 -05:00
bbddbefa99 Debug action: clear trapped souls 2025-02-27 08:55:56 -05:00
f2869494bb Buffer message when no souls for simulacrum 2025-02-27 08:55:56 -05:00
36a9c237d7 fix pick buttons in simulacrum menu 2025-02-27 08:55:56 -05:00
b200dc2e20 Fix special item Use button 2025-02-23 21:04:32 -05:00
ca8da469e1 Debug give item: try give to active PC. Fix #635 2025-02-23 19:19:42 -05:00
c7ec0e3a85 Debug action: fill active PC's inventory 2025-02-23 19:19:42 -05:00
23adcac665 Debug mode: infinite PC turns 2025-02-23 19:19:42 -05:00
756324ad05 Exclude more invalid indices from damage_target 2025-02-23 19:11:30 -05:00
b505dc5852 Don't double-adjust boom text pos. Fix #127 2025-02-23 19:11:30 -05:00
942442ab26 Refactor: use damage_target() to remove repetitive if-else 2025-02-23 19:11:30 -05:00
3689adcc12 Fix text bar flicker. Fix #602 2025-02-23 19:09:53 -05:00
f92e7abe56 Only redraw textbar when text changes 2025-02-23 19:09:53 -05:00
d4675ed4c7 Refactor text-bar text calculation 2025-02-23 19:09:53 -05:00
6ff155434c don't access uninitialized sf::Event 2025-02-23 15:09:32 -06:00
32e644b9f5 some actions shouldn't be recorded in every context 2025-02-23 15:09:32 -06:00
f601678f33 replay handle_victory must pass force 2025-02-23 14:09:52 -06:00
13532fe09a update unused key list 2025-02-23 09:38:26 -06:00
651348cf7e record debug end scenario 2025-02-23 09:38:25 -06:00
60b178d6e8 Debug action to save out (and keep saving) the log in memory 2025-02-23 09:38:23 -06:00
64702b3a88 support for recording replay in memory 2025-02-23 09:38:22 -06:00
5ee8f91f5d fix replay show_debug_help 2025-02-23 09:38:22 -06:00
99f3cdc1c4 Fix party invisible outdoors 2025-02-20 20:03:13 -05:00
9bfe8e3f12 -1 is supposed to be no face pic (#645)
Fix #74
2025-02-20 20:02:56 -05:00
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