Don't claim types are available in Menu context, fix ModifyStat table index

See merge requests OpenMW/openmw!5313 and OpenMW/openmw!5314
This commit is contained in:
Daisyhasacat
2026-05-06 04:39:19 +03:00
committed by Alexei Kotov
parent fa58a7306f
commit ea460076bd
3 changed files with 3 additions and 3 deletions
@@ -71,7 +71,7 @@ Modify the corresponding stat.
.. code-block:: Lua
-- Consume 10 magicka
actor:sendEvent('ModifyStat', {name = 'magicka', amount = -10})
actor:sendEvent('ModifyStat', {stat = 'magicka', amount = -10})
**AddVfx**
@@ -51,7 +51,7 @@
- |bdg-ctx-all|
- Storage API. In particular can be used to store data between game sessions.
* - :doc:`types </reference/lua-scripting/openmw_types>`
- |bdg-ctx-non-load|
- |bdg-ctx-global| |bdg-ctx-local| |bdg-ctx-player|
- Functions for specific types of game objects.
* - :doc:`ui </reference/lua-scripting/openmw_ui>`
- |bdg-ctx-menu| |bdg-ctx-player|
+1 -1
View File
@@ -1,6 +1,6 @@
---
-- Defines functions for specific types of game objects.
-- @context global|menu|local|player
-- @context global|local|player
-- @module types
-- @usage local types = require('openmw.types')