Commit Graph

12 Commits

Author SHA1 Message Date
Laurent Alonso(fr)
35e1599f71 UI scaling: try to also scale the mini_map 2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
abe8287616 special[legacy]: make_town_hostile has only one meaning...
set_town_attitude: lo=-1,hi=-1 seems to mean all monsters at least in special...
2022-06-30 01:08:48 -04:00
Laurent Alonso(fr)
9f802b3fcf Asan: correct some undefined, ... problems 2022-06-30 01:08:47 -04:00
72bd8265fa Game modes cleanup
- Fix some cases where modes were still referenced by number
- Replace most cases of mode range-comparison with is_out(), is_town(), and/or is_combat()

There could be some minor errors in the replacements.
2020-02-04 00:02:08 -05:00
511b1858a3 Fix Windows build and tests 2020-02-02 22:32:33 -05:00
86d2574aed Some refactor of special node system
- Context type (town/out/scen) is now an enum
- Don't expose internals in the header
- Use a state struct to pass things around through the system
- Fix special AFFECT_DEADNESS case for default party selection
- Maybe other bits and pieces?
2020-02-02 19:12:45 -05:00
060be4dd42 Remove some extern data declarations that didn't exist anymore (and weren't used) 2019-11-24 20:28:52 -05:00
4f785e2650 Use enums for most of the rest of the game constants.
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
4ad85936d3 Fix use of a static bitset to record whether items (in a dynamic vector) have been taken 2019-11-23 12:31:30 -05:00
c2ce2a2cd1 Split up the graphtool files 2017-04-14 15:43:07 -04:00
e57441f6a0 Consolidate active quest data into a single map 2017-04-14 11:38:06 -04:00
82abdab695 Major code reorganization
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.

A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00