summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-12 16:30:51 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-12 16:30:51 +0000
commit0b960ee5b5373b5b8343e2310bc148a2c345bd61 (patch)
tree995a97456167690a1c7882ba298159491ecc4a6c /src/map/mob.c
parent1007b1ff4a5a9d01a3133b5c255bf115976d6daa (diff)
downloadhercules-0b960ee5b5373b5b8343e2310bc148a2c345bd61.tar.gz
hercules-0b960ee5b5373b5b8343e2310bc148a2c345bd61.tar.bz2
hercules-0b960ee5b5373b5b8343e2310bc148a2c345bd61.tar.xz
hercules-0b960ee5b5373b5b8343e2310bc148a2c345bd61.zip
- Updated cast times of Kaupe and Kaahi.
- Some small code cleanups. - Sma has cast-dex reducable now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6564 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ca0690049..d6f68afac 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1952,9 +1952,8 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type)
drop_rate = (int)(drop_rate*1.25); // pk_mode increase drops if 20 level difference [Valaris]
// if (10000 < rand()%10000+drop_rate) { //May be better if MAX_RAND is too low?
- if (drop_rate < rand() % 10000 + 1) { //fixed 0.01% impossible drops bug [Lupus]
+ if (drop_rate < rand() % 10000 + 1) //fixed 0.01% impossible drops bug [Lupus]
continue;
- }
ditem = mob_setdropitem(md->db->dropitem[i].nameid, 1);
@@ -3289,7 +3288,7 @@ static int mob_readdb(void)
}
if (mob_db_data[class_]->max_hp <= 0) {
- ShowWarning ("Mob %d (%s) has no HP, using poring data for it\n", class_, mob_db_data[class_]->name);
+ ShowWarning ("Mob %d (%s) has no HP, using poring data for it\n", class_, mob_db_data[class_]->sprite);
mob_makedummymobdb(class_);
}
}