summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-24 15:25:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-24 15:25:50 +0000
commit827726c72c29c80c64a69fb6f866c9275b2d8573 (patch)
treed47427ad140c703a73574d8b97ea9f12927a1ab4 /src/map/pc.c
parentcb21fbb0fe268d098a74469895d8162f1c3c8c2b (diff)
downloadhercules-827726c72c29c80c64a69fb6f866c9275b2d8573.tar.gz
hercules-827726c72c29c80c64a69fb6f866c9275b2d8573.tar.bz2
hercules-827726c72c29c80c64a69fb6f866c9275b2d8573.tar.xz
hercules-827726c72c29c80c64a69fb6f866c9275b2d8573.zip
- Reverted the previous change, changed the pet capture code to try to capture a mob based on their view class rather than actual class.
- Changed various instances of md->db->lv for md->level, since the later is the actual mob level. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8471 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8a0739ece..7761364e0 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3234,9 +3234,9 @@ int pc_steal_coin(struct map_session_data *sd,struct block_list *target)
return 0;
skill = pc_checkskill(sd,RG_STEALCOIN)*10;
- rate = skill + (sd->status.base_level - md->db->lv)*3 + sd->battle_status.dex*2 + sd->battle_status.luk*2;
+ rate = skill + (sd->status.base_level - md->level)*3 + sd->battle_status.dex*2 + sd->battle_status.luk*2;
if(rand()%1000 < rate) {
- pc_getzeny(sd,md->db->lv*10 + rand()%100);
+ pc_getzeny(sd,md->level*10 + rand()%100);
md->state.steal_coin_flag = 1;
return 1;
}