From 1e279e2478b89dd4cc5717f83aa9b86b99ef2048 Mon Sep 17 00:00:00 2001 From: celest Date: Wed, 17 Nov 2004 13:38:53 +0000 Subject: Added skill_steal_type and removed snatcher's steal fail message git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@231 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 54207c853..00832d944 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -3309,7 +3309,9 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl) if(!md->state.steal_flag && mob_db[md->class].mexp <= 0 && !(mob_db[md->class].mode&0x20) && md->sc_data[SC_STONE].timer == -1 && md->sc_data[SC_FREEZE].timer == -1 && (!(md->class>1324 && md->class<1364))) // prevent stealing from treasure boxes [Valaris] { - skill = sd->paramc[4] - mob_db[md->class].dex + pc_checkskill(sd,TF_STEAL)*3 + 10; + skill = battle_config.skill_steal_type == 1 + ? (sd->paramc[4] - mob_db[md->class].dex)/2 + pc_checkskill(sd,TF_STEAL)*6 + 10 + : sd->paramc[4] - mob_db[md->class].dex + pc_checkskill(sd,TF_STEAL)*3 + 10; if(0 < skill) { -- cgit v1.2.3-70-g09d2