summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-05 20:58:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-05 20:58:27 +0000
commit30899d3e29a02162c8ece5e0fca0fd05fcd10be1 (patch)
treec0580c2101c51597bcfdbd546ff54cc52fc61fc4 /src/map/mob.c
parent7dca4f40ec19769deb05f315d4e35417cea06a19 (diff)
downloadhercules-30899d3e29a02162c8ece5e0fca0fd05fcd10be1.tar.gz
hercules-30899d3e29a02162c8ece5e0fca0fd05fcd10be1.tar.bz2
hercules-30899d3e29a02162c8ece5e0fca0fd05fcd10be1.tar.xz
hercules-30899d3e29a02162c8ece5e0fca0fd05fcd10be1.zip
- Removed setting mob_show_hp, it's been replaced now by mob_show_info, which can be used to specify what kind of info should be displayed from a mob. Current options are two different formats for Hp display, and current level.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8644 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 005994e58..67c44574d 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1584,7 +1584,7 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage)
if(md->guardian_data && md->guardian_data->number < MAX_GUARDIANS) // guardian hp update [Valaris] (updated by [Skotlex])
md->guardian_data->castle->guardian[md->guardian_data->number].hp = md->status.hp;
- if (battle_config.show_mob_hp)
+ if (battle_config.show_mob_info&3)
clif_charnameack (0, &md->bl);
if (!src)
@@ -2185,7 +2185,7 @@ void mob_revive(struct mob_data *md, unsigned int hp)
clif_spawn(&md->bl);
skill_unit_move(&md->bl,tick,1);
mobskill_use(md, tick, MSC_SPAWN);
- if (battle_config.show_mob_hp)
+ if (battle_config.show_mob_info&3)
clif_charnameack (0, &md->bl);
}
@@ -2303,8 +2303,8 @@ int mob_class_change (struct mob_data *md, int class_)
if(md->lootitem == NULL && md->db->status.mode&MD_LOOTER)
md->lootitem=(struct item *)aCalloc(LOOTITEM_SIZE,sizeof(struct item));
- if (battle_config.show_mob_hp)
- clif_charnameack(0, &md->bl);
+ //Need to update name display.
+ clif_charnameack(0, &md->bl);
return 0;
}
@@ -2319,7 +2319,7 @@ void mob_heal(struct mob_data *md,unsigned int heal)
// guardian hp update [Valaris] (updated by [Skotlex])
md->guardian_data->castle->guardian[md->guardian_data->number].hp = md->status.hp;
- if (battle_config.show_mob_hp)
+ if (battle_config.show_mob_info&3)
clif_charnameack (0, &md->bl);
}