Andrettin
76feb78b4e
Parse Text/Speech Data from TSV ( #8138 )
7 months ago
Andrettin
0c3fe1345c
Parse Quest Data from TSV
7 months ago
Andrettin
7d1aebd91b
Added support for mapping IDs for item types
7 months ago
Andrettin
ae4264b202
Added Lua binding for defining new item types
7 months ago
Andrettin
528c1ad0e6
Use the size of the AllItemsList vector instead of IDI_LAST for getting how many items are there
7 months ago
Andrettin
e2e8446be1
Added Lua Bindings for Adding Unique Items
7 months ago
Anders Jenbo
62d2ff607c
Only resize monster data vectors when needed
7 months ago
Andrettin
5d21bfae37
Reworked the unique monster Lua bindings to load from a TSV file
7 months ago
Andrettin
be956f0608
Added Lua Bindings for Adding New Monster Types
7 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
Andrettin
cfb52ee239
Added support for mods to add unique monsters without replacing any data ( #8092 )
7 months ago
Anders Jenbo
7b2de562c2
Extract more Hellfire into data
8 months ago
Gleb Mazovetskiy
6fe417216e
Lua console: Trigger autocomplete less often
...
Filter out more cases where autocomplete just gets in the way.
8 months ago
Gleb Mazovetskiy
7ff65351cb
Lua: Add dev.items.get() command
8 months ago
Gleb Mazovetskiy
17e6da40f8
Lua: Improve function/property handling
...
1. Follows advice from
https://sol2.readthedocs.io/en/latest/functions.html to use
`set_function` when binding functions.
2. Adds autocomplete support for userdata methods.
3. Simplifies property bindings and improves string handling.
8 months ago
Gleb Mazovetskiy
740868af3f
Update sol2 and lua
...
Also renames lua/lua.hpp to lua/lua_global.hpp.
The previous name broke version auto-detection in sol2, which involves
calling `__has_include(<lua/lua.hpp>)`.
8 months ago
Anders Jenbo
3b18dd35d9
Move some Hellfire differences to data files ( #7943 )
...
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
11 months ago
Anders Jenbo
3fb8be385b
Add support for MPQ packed mods and turn Hellfire into one
11 months ago
staphen
ceec9900f3
[Debug] Keep trying when unique item fails to generate
11 months ago
Eric Robinson
477389de3b
Lua: Add an item usertype
12 months ago
Gleb Mazovetskiy
92e6d36b46
Lua: Add a player usertype
1 year ago
staphen
390d7600a3
Fix debug command for talking to towners
1 year ago
obligaron
ee42d2ab66
Add missiles to tile data debug command
1 year ago
Gleb Mazovetskiy
32f9cc9ad9
Lua: Add basic APIs for walking to a towner
...
This may not be how we'll eventually expose towners
but it's good enough for now.
1 year ago
Gleb Mazovetskiy
ee16071761
Untangle pathfinding dependencies
...
1. Makes `path.cpp` concerned solely with the pathfinding algorithm.
2. Turns `path_test` into a standalone test.
1 year ago
Gleb Mazovetskiy
88a9a0656d
Move option change handlers out of `options.cpp`
...
Fixes #7638
1 year ago
Gleb Mazovetskiy
d94bc424df
`sgOptions` -> `GetOptions()`
...
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.
This will be needed for #7638 , which will statically initialize change
handlers after the Options object has been initialized.
1 year ago
Gleb Mazovetskiy
736a69ce8d
Lua: Add i18n module
...
Adds bindings for i18n functions.
Does not yet add support for loading mod-specific translations.
1 year ago
Gleb Mazovetskiy
4b38771263
Lua render: add screen_width/height()
1 year ago
Gleb Mazovetskiy
c31836eab8
Split up `engine.{h,cpp}`
...
Untangles dependencies by splitting up `engine.{h,cpp}` into 3 files:
1. `primitive_render`
2. `ticks` -- only contains `GetAnimationFrame` for now.
3. `GetWidth2` renamed to `CalculateSpriteTileCenterX` and moved to `levels/dun_tile.hpp`.
1 year ago
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
staphen
4931cc6386
Lua mod ini file configuration
1 year ago
Eric Robinson
f1d48d7124
Debug: Insivible ( #7543 )
1 year ago
Gleb Mazovetskiy
7b0558146e
Async load: Handle errors
1 year ago
staphen
fade1d0b22
Fix error in Lua require() function
1 year ago
Gleb Mazovetskiy
8c39edfe7e
Add `dev.display.tileData('microTiles')`
1 year ago
obligaron
ca16398147
Move DebugSpawn(Unique)Item to lua dev moduls and make necessary functions public
2 years ago
qndel
8e57785755
change log type on missing optional lua assets from error to info
2 years ago
Gleb Mazovetskiy
624afafe58
Extract Crawl to a library
...
Also adds a test and a benchmark
2 years ago
Gleb Mazovetskiy
e9c29fa806
Switch to ankerl::unordered_dense
2 years ago
staphen
22150018ae
Don't dereference nullopt in DebugCmdLevelUp()
2 years ago
staphen
3c5b298391
Capture the level seed and use it to skip failed dungeon layouts
2 years ago
staphen
9e682afe13
Rename glSeedTbl
2 years ago
obligaron
51ab0106ab
Sync monster spawn in multiplayer
2 years ago
obligaron
19b6e2bcc4
Fix debug spawning monsters
2 years ago
qndel
16c814badf
fix trn path in debug cmd
2 years ago
obligaron
f445bb4ef8
Change CastSpell to Player reference
2 years ago
Gleb Mazovetskiy
be34dd0cb7
Add `dev.level.seed()` debug command
2 years ago
Gleb Mazovetskiy
99fea0d1c5
Migrate unique monsters to data files
2 years ago
Gleb Mazovetskiy
2eae121931
Migrate monstdat to a data file
...
We may want to migrate this to 1 file per monster but for now the
migration is as close to the hard-coded version as possible.
Sprites that are used by multiple monsters are only loaded from disk
once.
2 years ago