diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-01 01:30:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-01 01:30:35 +0300 |
commit | 4f35fa5d10ba0a30157205227f25aed6da67f4e1 (patch) | |
tree | 5d348e835494204a5b4f6ea0a70cb5d0d2dae470 /src/emap/data/mobd.c | |
parent | a3158d2110a2a846d39a5ddc364adb40c212241d (diff) | |
download | plugin-4f35fa5d10ba0a30157205227f25aed6da67f4e1.tar.gz plugin-4f35fa5d10ba0a30157205227f25aed6da67f4e1.tar.bz2 plugin-4f35fa5d10ba0a30157205227f25aed6da67f4e1.tar.xz plugin-4f35fa5d10ba0a30157205227f25aed6da67f4e1.zip |
Add into mob_db skill type attacks modifier.
New group in mob_db: SkillAttacks
Example:
SkillAttacks: {
SM_BASH: 5000 // mean SM_BASH skill do 50% of normal damage
}
Default value is 10000 mean 100%
Diffstat (limited to 'src/emap/data/mobd.c')
-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 abddb3d..8f77994 100644 --- a/src/emap/data/mobd.c +++ b/src/emap/data/mobd.c @@ -49,5 +49,7 @@ struct MobdExt *mobd_create(void) data->walkMask = 0; for (int f = 0; f < MAX_WEAPON_TYPE; f ++) data->weaponAttacks[f] = 10000; + for (int f = 0; f < MAX_SKILL_DB; f ++) + data->skillAttacks[f] = 10000; return data; } |