v0.9.0: fixed a text error and talent onEquip being trigger on unEquip
This commit is contained in:
parent
612cece6a5
commit
cae1c2b8f6
|
@ -327,7 +327,7 @@ actors.hero.talent.tested_hypothesis.desc=_+1:_ Whenever he identifies a scroll
|
|||
actors.hero.talent.energizing_upgrade.title=energizing upgrade
|
||||
actors.hero.talent.energizing_upgrade.desc=_+1:_ The Mage's staff recharges for _1 extra charge_ whenever the Mage upgrades it.\n\n_+2:_ The Mage's staff recharges for _2 extra charges_ whenever the Mage upgrades it.
|
||||
actors.hero.talent.rationed_meal.title=rationed meal
|
||||
actors.hero.talent.rationed_meal.desc=_+1:_ Eating food gives the Rogue _15% more satiety_.\n\n_+2:_ Eating at below 50% health gives the Rogue _25% more satiety_.
|
||||
actors.hero.talent.rationed_meal.desc=_+1:_ Eating food gives the Rogue _15% more satiety_.\n\n_+2:_ Eating food gives the Rogue _25% more satiety_.
|
||||
actors.hero.talent.thiefs_intuition.title=thief's intuition
|
||||
actors.hero.talent.thiefs_intuition.desc=_+1:_ The Rogue identifies rings _2x faster_, and identifies the type of a ring _when he equips it_.\n\n_+2:_ The Rogue identifies rings _when he equips them_, and identifies the type of a ring _when he picks it up_.
|
||||
actors.hero.talent.sucker_punch.title=sucker punch
|
||||
|
|
|
@ -26,7 +26,6 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.MagicImmune;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShadowParticle;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
|
@ -119,8 +118,6 @@ public abstract class EquipableItem extends Item {
|
|||
if (collect) Dungeon.level.drop( this, hero.pos );
|
||||
}
|
||||
|
||||
Talent.onItemEquipped(hero, this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.BArray;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
|
@ -54,7 +55,7 @@ abstract public class KindOfWeapon extends EquipableItem {
|
|||
|
||||
hero.belongings.weapon = this;
|
||||
activate( hero );
|
||||
|
||||
Talent.onItemEquipped(hero, this);
|
||||
updateQuickslot();
|
||||
|
||||
cursedKnown = true;
|
||||
|
|
|
@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items;
|
|||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.rings.Ring;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
|
@ -118,6 +119,7 @@ public abstract class KindofMisc extends EquipableItem {
|
|||
|
||||
detach( hero.belongings.backpack );
|
||||
|
||||
Talent.onItemEquipped(hero, this);
|
||||
activate( hero );
|
||||
|
||||
cursedKnown = true;
|
||||
|
|
|
@ -199,7 +199,7 @@ public class Armor extends EquipableItem {
|
|||
|
||||
((HeroSprite)hero.sprite).updateArmor();
|
||||
activate(hero);
|
||||
|
||||
Talent.onItemEquipped(hero, this);
|
||||
hero.spendAndNext( time2equip( hero ) );
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user