diff options
author | momacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-24 20:21:46 +0000 |
---|---|---|
committer | momacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-24 20:21:46 +0000 |
commit | 38e55a7c23b9ae0f9227120ba4d465999a0b3427 (patch) | |
tree | 31f3fe43cfde4c1a0f2a5e349d7fc0738c0c81d9 /src/map/mob.c | |
parent | 182a0282401297b608db331676882e9dfe7cd89f (diff) | |
download | hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.tar.gz hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.tar.bz2 hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.tar.xz hercules-38e55a7c23b9ae0f9227120ba4d465999a0b3427.zip |
Fixed behavior in permanent mob spawns allowing new optional parameters: level, size and AI.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16962 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 6ea3afed8..b512e0b26 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -272,6 +272,8 @@ struct mob_data* mob_spawn_dataset(struct spawn_data *data) md->class_ = data->class_; md->state.boss = data->state.boss; md->db = mob_db(md->class_); + if (data->level > 0 && data->level <= MAX_LEVEL) + md->level = data->level; memcpy(md->name, data->name, NAME_LENGTH); if (data->state.ai) md->special_state.ai = data->state.ai; |