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
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
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
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
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
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
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
Eric Robinson
f1d48d7124
Debug: Insivible ( #7543 )
1 year ago
Gleb Mazovetskiy
7b0558146e
Async load: Handle errors
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
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
Gleb Mazovetskiy
a2b94cc03c
Lua: Migrate and organize the rest of debug cmds
...
Fully migrates debug commands to Lua and organizes them into logical
groups.
The CLI `+` syntax now runs Lua, e.g.:
```bash
build/devilutionx '+dev.player.trn.plr("infra")'
```
Chat hotkeys run Lua code if they start with `/lua`, e.g.:
```ini
[NetMsg]
QuickMessage1=/lua message(dev.player.info())
```
2 years ago
staphen
7df7b35123
Clean up warnings and debugger errors related to the Lua console
2 years ago
Gleb Mazovetskiy
8bffbedcb4
Migrate some debug.cpp commands to Lua
...
Introduces a new `devilutionx.dev` Lua module, automatically loaded in
the console prelude.
Arguments and basic help are shown in autocompletion.
2 years ago
Anders Jenbo
4fe90f7b74
Add audio functionality to Lua
2 years ago