Trihedraf
b540d0911e
Extract lua functions from floatingnumbers to system and render modules ( #8416 )
2 months ago
Trihedraf
32a0666201
move floating damage nums to lua mod & add xp mod
2 months ago
Eric Robinson
5937734b85
Move *dat files to tables dir
2 months ago
Yuri Pourre
1b1c399a9b
Update all the files that do not have CRLF as line break
3 months ago
Yuri Pourre
1c0987115d
Expose lua methods for items and restore life and mana ( #8369 )
3 months ago
staphen
c55e7a4107
Reload sfx when reloading active mods
3 months ago
LP
16b96e2c31
Fix broken catacombs wall tile ( #8296 )
...
* Fix broken catacombs wall tile
When tile 15 is followed by tile 1 below, change tile 1 to tile 8
(left corner) to fix a visual glitch in the catacombs.
* Silence fmt catch warnings and guard SaveHelper copy
4 months ago
Yuri Pourre
d8b1f00cb5
Load towners via tsv
4 months ago
obligaron
2c4e69c5c9
Fix MSVC warnings
4 months ago
Gleb Mazovetskiy
88f706e0d1
SDL3: Add some backports / compat helpers
5 months ago
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