10 Commits

Author SHA1 Message Date
Anders Jenbo 005e7dcc23 chore: clang-tidy cleanup part 1 2026-04-03 22:57:48 +02:00
Gleb Mazovetskiy 88f706e0d1 SDL3: Add some backports / compat helpers 2025-10-10 00:49:44 +01:00
Andrettin 528c1ad0e6 Use the size of the AllItemsList vector instead of IDI_LAST for getting how many items are there 2025-08-21 03:03:19 +02:00
Gleb Mazovetskiy 7ff65351cb Lua: Add dev.items.get() command 2025-07-20 17:46:35 +02:00
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.
2025-07-20 17:46:35 +02:00
Anders Jenbo 3b18dd35d9 Move some Hellfire differences to data files (#7943)
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
2025-04-25 22:56:59 +02:00
staphen ceec9900f3 [Debug] Keep trying when unique item fails to generate 2025-04-20 01:19:50 +02:00
Gleb Mazovetskiy a49b1f2d58 Extract Is{Any,None}Of out of engine.hpp
Untangles some of the dependencies
2025-01-08 09:54:56 +09:00
obligaron ca16398147 Move DebugSpawn(Unique)Item to lua dev moduls and make necessary functions public 2024-09-04 16:27:25 -04:00
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())
```
2023-11-07 22:27:48 +00:00