diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-17 13:38:53 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-17 13:38:53 +0000 |
commit | 1e279e2478b89dd4cc5717f83aa9b86b99ef2048 (patch) | |
tree | 6e84ceaf86cbe3fe9e0a06a1a810d22d21090116 /src/map/pc.c | |
parent | b4222488bbe68eb2533e033dd8b14e61fc830ef1 (diff) | |
download | hercules-1e279e2478b89dd4cc5717f83aa9b86b99ef2048.tar.gz hercules-1e279e2478b89dd4cc5717f83aa9b86b99ef2048.tar.bz2 hercules-1e279e2478b89dd4cc5717f83aa9b86b99ef2048.tar.xz hercules-1e279e2478b89dd4cc5717f83aa9b86b99ef2048.zip |
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
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |