From 0e7213d956ff81fa5f7181e2e98747b98dc725f5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 4 Jul 2016 00:30:55 -0400 Subject: [PATCH] v0.4.1: fixed sneak weapons not being affected by weightstone imbue --- .../items/weapon/melee/AssassinsBlade.java | 2 +- .../shatteredpixeldungeon/items/weapon/melee/Dagger.java | 2 +- .../shatteredpixeldungeon/items/weapon/melee/Dirk.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/AssassinsBlade.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/AssassinsBlade.java index b0fa04034..c0dc43c32 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/AssassinsBlade.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/AssassinsBlade.java @@ -45,7 +45,7 @@ public class AssassinsBlade extends MeleeWeapon { Char enemy = hero.enemy(); if (enemy instanceof Mob && ((Mob) enemy).surprisedBy(hero)) //deals avg damage to max on surprise, instead of min to max. - return Random.NormalIntRange((min() + max())/2, max()); + return imbue.damageFactor(Random.NormalIntRange((min() + max())/2, max())); else return super.damageRoll(hero); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dagger.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dagger.java index c856df492..46db858f9 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dagger.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dagger.java @@ -45,7 +45,7 @@ public class Dagger extends MeleeWeapon { Char enemy = hero.enemy(); if (enemy instanceof Mob && ((Mob) enemy).surprisedBy(hero)) //deals avg damage to max on surprise, instead of min to max. - return Random.NormalIntRange((min() + max())/2, max()); + return imbue.damageFactor(Random.NormalIntRange((min() + max())/2, max())); else return super.damageRoll(hero); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dirk.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dirk.java index f313f2d2a..3266c1043 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dirk.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Dirk.java @@ -45,7 +45,7 @@ public class Dirk extends MeleeWeapon { Char enemy = hero.enemy(); if (enemy instanceof Mob && ((Mob) enemy).surprisedBy(hero)) //deals avg damage to max on surprise, instead of min to max. - return Random.NormalIntRange((min() + max())/2, max()); + return imbue.damageFactor(Random.NormalIntRange((min() + max())/2, max())); else return super.damageRoll(hero); }