training_action_spirit_deltas
Global of Himegari Dungeon Meister: the cell G:0x155e86, of type int[21], data-table, values negative 精気 cost; shipped values -90..-20.
The action's spirit change, its cost (-20 to -90). TRAIN refuses it with 「精気が不足しています。」 when current_spirit plus it is below G[0x20538], which ADDEXP and FIELD add the deployed units' spirit to (ADDEXP@0x6f0, FIELD@0xbba) (TRAIN@0x7ee-0x82c), adds it to current_spirit held to 0..maximum_spirit (TRAIN@0x833-0x86a), and draws it negated as the cost (TRAIN@0x10f7-0x117d).
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
It depends on 0x20530.
Record tables
It is a field of the table training_action, as training_action.id.spirit_delta.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
TRINIT | 0 | 21 | 0 |
TRAIN | 0 | 0 | 6 |