summaryrefslogtreecommitdiff
path: root/kon/konrmdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'kon/konrmdata.h')
-rw-r--r--kon/konrmdata.h18
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 */