summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-01 14:05:09 -0700
committerFate <fate-tmw@googlemail.com>2008-12-01 14:05:09 -0700
commit28677f9e8071015f65a81254232d12da6393f144 (patch)
tree78de457ad6410acfafcb4a8138d876af1f6fb36a /src/map/map.h
parent41ad58a56c0f9d27ca61709141115981520fc9ea (diff)
downloadtmwa-28677f9e8071015f65a81254232d12da6393f144.tar.gz
tmwa-28677f9e8071015f65a81254232d12da6393f144.tar.bz2
tmwa-28677f9e8071015f65a81254232d12da6393f144.tar.xz
tmwa-28677f9e8071015f65a81254232d12da6393f144.zip
Added mutations to mobs (must change mob_db.txt)
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 54179ac..afaf61e 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -410,6 +410,22 @@ struct npc_data {
#define MOB_SENSIBLE_MASK 0xf000 // fate: mob mode flags that I actually understand
+enum mob_stat {
+ MOB_LV,
+ MOB_MAX_HP,
+ MOB_STR, MOB_AGI, MOB_VIT, MOB_INT, MOB_DEX, MOB_LUK,
+ MOB_ATK1, MOB_ATK2, // low and high attacks
+ MOB_ADELAY, // attack delay
+ MOB_DEF, MOB_MDEF,
+ MOB_SPEED,
+ // These must come last:
+ MOB_XP_BONUS, /* [Fate] Encoded as base to 1024: 1024 means 100% */
+ MOB_LAST
+};
+
+#define MOB_XP_BONUS_BASE 1024
+#define MOB_XP_BONUS_SHIFT 10
+
struct mob_data {
struct block_list bl;
short n;
@@ -431,7 +447,6 @@ struct mob_data {
} state;
int timer;
short to_x,to_y;
- short speed;
int hp;
int target_id,attacked_id;
short target_lv;
@@ -468,6 +483,7 @@ struct mob_data {
struct skill_unit_group skillunit[MAX_MOBSKILLUNITGROUP];
struct skill_unit_group_tickset skillunittick[MAX_SKILLUNITGROUPTICKSET];
char npc_event[50];
+ unsigned short stats[MOB_LAST]; // [Fate] mob-specific stats
short size;
};
struct pet_data {