diff options
| author | KonAki <konaki@anokonaki.org> | 2026-10-16 15:38:03 +0800 |
|---|---|---|
| committer | KonAki <konaki@anokonaki.org> | 2026-10-16 15:38:03 +0800 |
| commit | eb07fabdea8f3ebec3c1774e9a1aef09f6152bf1 (patch) | |
| tree | b06f87a19ebbad68ef8f66bab77a0bcdb1c02f6d /kon/konrmdata.h | |
| parent | 8d3cf3a9ebb1bc5d96152da2f11b8b6af850d0e5 (diff) | |
rmdata: actors, and starting them with their equipment
Diffstat (limited to 'kon/konrmdata.h')
| -rw-r--r-- | kon/konrmdata.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kon/konrmdata.h b/kon/konrmdata.h index 1f5b8cd..7d402f6 100644 --- a/kon/konrmdata.h +++ b/kon/konrmdata.h @@ -27,6 +27,7 @@ #define KONRMDATA_H #include "konbattle.h" +#include "konparty.h" #ifdef __cplusplus extern "C" { @@ -91,6 +92,23 @@ typedef struct kon_rmTroop { int pageCount; } kon_rmTroop_t; +/*** actors ***/ + +/* who the game starts with, by the actor's id. the party module keeps the people that change, this is how they begin: the pictures + they are drawn with, their class, level and what they wear (weapon and armor ids by slot, 0 for nothing) */ +typedef struct kon_rmActor { + const char *name, *nickname; + const char *characterName, *faceName, *battlerName; + int characterIndex, faceIndex; + int classId, initialLevel, maxLevel; + int equips[KON_EQUIP_SLOTS]; +} kon_rmActor_t; + +/* makes actor number index of the party from a table entry, wearing what it starts with. the weapons and armor come into the bag + and are put on, so the bag ends up as it was. weaponBase and armorBase are what the converter wrote (name_WEAPON_BASE and + name_ARMOR_BASE). returns 0 when the class is not in the database */ +int kon_rmActorStart(kon_party_t *party, int index, const kon_rmActor_t *actor, int weaponBase, int armorBase); + /*** enemies ***/ /* the battler of an enemy, at full hp and mp. the name is the enemy's */ |
