From 07ff4adffb312e138502a83316dff13287a8d153 Mon Sep 17 00:00:00 2001 From: glighta Date: Mon, 29 Oct 2012 06:33:43 +0000 Subject: -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 --- src/map/mob.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/map/mob.c') 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; -- cgit v1.2.3-60-g2f50