From 5206fbb75145a16d9adb2c2ad8c648a62a759edc Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 23 Sep 2020 12:50:25 -0400 Subject: [PATCH] v0.9.0: fixed errors with a warrior and huntress talent --- .../shatteredpixeldungeon/actors/hero/Talent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java index 060efd029..95ae3cd45 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java @@ -130,7 +130,7 @@ public enum Talent { //eating food takes 1 turn, instead of 3 hero.spend(-2); //effectively 2/3 turns of haste - Buff.affect( hero, Haste.class, 2+hero.pointsInTalent(INVIGORATING_MEAL)); + Buff.affect( hero, Haste.class, 1.67f+hero.pointsInTalent(INVIGORATING_MEAL)); //TODO VFX } } @@ -153,7 +153,7 @@ public enum Talent { } public static void onItemEquipped( Hero hero, Item item ){ - if (hero.hasTalent(ARMSMASTERS_INTUITION) && (item instanceof Weapon || item instanceof Armor)){ + if (hero.pointsInTalent(ARMSMASTERS_INTUITION) == 2 && (item instanceof Weapon || item instanceof Armor)){ item.identify(); } if (hero.hasTalent(THIEFS_INTUITION) && item instanceof Ring){