v3.1.0: consistency pass on potions, they no longer stack on themselves
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ public class Cleanse extends ClericSpell {
|
||||
|
||||
if (hero.pointsInTalent(Talent.CLEANSE) > 1) {
|
||||
//0, 2, or 4. 1 less than displayed as spell is instant
|
||||
Buff.affect(ch, PotionOfCleansing.Cleanse.class, 2 * (Dungeon.hero.pointsInTalent(Talent.CLEANSE)-1));
|
||||
Buff.prolong(ch, PotionOfCleansing.Cleanse.class, 2 * (Dungeon.hero.pointsInTalent(Talent.CLEANSE)-1));
|
||||
}
|
||||
Buff.affect(ch, Barrier.class).setShield(10 * hero.pointsInTalent(Talent.CLEANSE));
|
||||
new Flare( 6, 32 ).color(0xFF4CD2, true).show( ch.sprite, 2f );
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ public class PotionOfInvisibility extends Potion {
|
||||
@Override
|
||||
public void apply( Hero hero ) {
|
||||
identify();
|
||||
Buff.affect( hero, Invisibility.class, Invisibility.DURATION );
|
||||
Buff.prolong( hero, Invisibility.class, Invisibility.DURATION );
|
||||
GLog.i( Messages.get(this, "invisible") );
|
||||
Sample.INSTANCE.play( Assets.Sounds.MELD );
|
||||
}
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ public class PotionOfLevitation extends Potion {
|
||||
@Override
|
||||
public void apply( Hero hero ) {
|
||||
identify();
|
||||
Buff.affect( hero, Levitation.class, Levitation.DURATION );
|
||||
Buff.prolong( hero, Levitation.class, Levitation.DURATION );
|
||||
GLog.i( Messages.get(this, "float") );
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ public class PotionOfMindVision extends Potion {
|
||||
@Override
|
||||
public void apply( Hero hero ) {
|
||||
identify();
|
||||
Buff.affect( hero, MindVision.class, MindVision.DURATION );
|
||||
Buff.prolong( hero, MindVision.class, MindVision.DURATION );
|
||||
SpellSprite.show(hero, SpellSprite.VISION, 1, 0.77f, 0.9f);
|
||||
Dungeon.observe();
|
||||
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ public class ElixirOfIcyTouch extends Elixir {
|
||||
|
||||
@Override
|
||||
public void apply(Hero hero) {
|
||||
Buff.affect(hero, FrostImbue.class, FrostImbue.DURATION);
|
||||
Buff.prolong(hero, FrostImbue.class, FrostImbue.DURATION);
|
||||
hero.sprite.emitter().burst(SnowParticle.FACTORY, 5);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ public class PotionOfCleansing extends ExoticPotion {
|
||||
((Hunger) b).satisfy(Hunger.STARVING);
|
||||
}
|
||||
}
|
||||
Buff.affect(ch, Cleanse.class, duration);
|
||||
Buff.prolong(ch, Cleanse.class, duration);
|
||||
}
|
||||
|
||||
public static class Cleanse extends FlavourBuff {
|
||||
|
||||
+1
-1
@@ -182,7 +182,7 @@ public class PotionOfDragonsBreath extends ExoticPotion {
|
||||
if (ch != null) {
|
||||
|
||||
Buff.affect( ch, Burning.class ).reignite( ch );
|
||||
Buff.affect(ch, Cripple.class, 5f);
|
||||
Buff.prolong(ch, Cripple.class, 5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class PotionOfMagicalSight extends ExoticPotion {
|
||||
@Override
|
||||
public void apply(Hero hero) {
|
||||
identify();
|
||||
Buff.affect(hero, MagicalSight.class, MagicalSight.DURATION);
|
||||
Buff.prolong(hero, MagicalSight.class, MagicalSight.DURATION);
|
||||
SpellSprite.show(hero, SpellSprite.VISION);
|
||||
Dungeon.observe();
|
||||
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ public class PotionOfSnapFreeze extends ExoticPotion {
|
||||
|
||||
Char ch = Actor.findChar( cell + offset);
|
||||
if (ch != null){
|
||||
Buff.affect(ch, Roots.class, Roots.DURATION*2f);
|
||||
Buff.prolong(ch, Roots.class, Roots.DURATION*2f);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class PotionOfStamina extends ExoticPotion {
|
||||
public void apply(Hero hero) {
|
||||
identify();
|
||||
|
||||
Buff.affect(hero, Stamina.class, Stamina.DURATION);
|
||||
Buff.prolong(hero, Stamina.class, Stamina.DURATION);
|
||||
SpellSprite.show(hero, SpellSprite.HASTE, 0.5f, 1, 0.5f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user