diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-31 23:50:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-31 23:50:14 +0300 |
commit | a3158d2110a2a846d39a5ddc364adb40c212241d (patch) | |
tree | 4c057530f67be9855e1b8d270992f689bf22d3ed /src/emap/data | |
parent | d8603c474f62f62d3759b03ea317836383ba463c (diff) | |
download | evol-hercules-a3158d2110a2a846d39a5ddc364adb40c212241d.tar.gz evol-hercules-a3158d2110a2a846d39a5ddc364adb40c212241d.tar.bz2 evol-hercules-a3158d2110a2a846d39a5ddc364adb40c212241d.tar.xz evol-hercules-a3158d2110a2a846d39a5ddc364adb40c212241d.zip |
Add into mob_db weapot type attacks modifier.
New group in mob_db: WeaponAttacks
Example:
WeaponAttacks: {
Bows: 5000 // mean bow attack do 50% of normal attack
}
Default value is 10000 mean 100%
Diffstat (limited to 'src/emap/data')
-rw-r--r-- | src/emap/data/mobd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/data/mobd.c b/src/emap/data/mobd.c index e3a6c34..abddb3d 100644 --- a/src/emap/data/mobd.c +++ b/src/emap/data/mobd.c @@ -47,5 +47,7 @@ struct MobdExt *mobd_create(void) if (!data) return NULL; data->walkMask = 0; + for (int f = 0; f < MAX_WEAPON_TYPE; f ++) + data->weaponAttacks[f] = 10000; return data; } |