summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-29 06:33:43 +0000
committerglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-29 06:33:43 +0000
commit07ff4adffb312e138502a83316dff13287a8d153 (patch)
tree4e4a9d6f582d20ea6ba1490fc31b2085453b9e1f /src/map/mob.c
parent08080a5fc10eb6a9fdc2f1285ba32fda57684d29 (diff)
downloadhercules-07ff4adffb312e138502a83316dff13287a8d153.tar.gz
hercules-07ff4adffb312e138502a83316dff13287a8d153.tar.bz2
hercules-07ff4adffb312e138502a83316dff13287a8d153.tar.xz
hercules-07ff4adffb312e138502a83316dff13287a8d153.zip
-Add some src basic documentation.
-Change some remaining -1 for status ending timer. -Move some hardcoded msg in msg_athena -Small optimisation on battle_attr_fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16835 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index c7918ce93..4967a0ec3 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2834,7 +2834,7 @@ int mob_warpslave(struct block_list *bl, int range)
}
/*==========================================
- * 画面内の取り巻きの数計算用(foreachinarea)
+ * Count slave sub, curently chking if mob master is the given id
*------------------------------------------*/
int mob_countslave_sub(struct block_list *bl,va_list ap)
{
@@ -2849,7 +2849,7 @@ int mob_countslave_sub(struct block_list *bl,va_list ap)
}
/*==========================================
- * 画面内の取り巻きの数計算
+ * Cout how many slave a mob got on map
*------------------------------------------*/
int mob_countslave(struct block_list *bl)
{
@@ -2955,7 +2955,8 @@ int mob_summonslave(struct mob_data *md2,int *value,int amount,int skill_id)
}
/*==========================================
- *MOBskillから該当skillidのskillidxを返す
+ * MOBskill lookup (get skillindex trough skillid)
+ * return -1 if not found
*------------------------------------------*/
int mob_skillid2skillidx(int class_,int skillid)
{
@@ -3965,7 +3966,7 @@ static bool mob_readdb_mobavail(char* str[], int columns, int current)
class_=atoi(str[0]);
- if(mob_db(class_) == mob_dummy) // 値が異常なら処理しない。
+ if(mob_db(class_) == mob_dummy) // invalid class (probably undefined in db)
{
ShowWarning("mob_readdb_mobavail: Unknown mob id %d.\n", class_);
return false;