V0.1.1: more work on blandfruit, still not implemented
This commit is contained in:
@@ -208,7 +208,7 @@ public class Potion extends Item {
|
||||
}
|
||||
}
|
||||
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
shatter( hero.pos );
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public class PotionOfExperience extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
hero.earnExp( hero.maxExp() - hero.exp );
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class PotionOfHealing extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
heal( Dungeon.hero );
|
||||
GLog.p( "Your wounds heal completely." );
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ public class PotionOfInvisibility extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
Buff.affect( hero, Invisibility.class, Invisibility.DURATION );
|
||||
GLog.i( "You see your hands turn invisible!" );
|
||||
|
||||
@@ -29,7 +29,7 @@ public class PotionOfLevitation extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
Buff.affect( hero, Levitation.class, Levitation.DURATION );
|
||||
GLog.i( "You float into the air!" );
|
||||
|
||||
@@ -28,7 +28,7 @@ public class PotionOfMight extends PotionOfStrength {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
|
||||
hero.STR++;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class PotionOfMindVision extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
Buff.affect( hero, MindVision.class, MindVision.DURATION );
|
||||
Dungeon.observe();
|
||||
|
||||
@@ -106,7 +106,7 @@ public class PotionOfPurity extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
GLog.w( TXT_NO_SMELL );
|
||||
Buff.prolong( hero, GasesImmunity.class, GasesImmunity.DURATION );
|
||||
setKnown();
|
||||
|
||||
@@ -29,7 +29,7 @@ public class PotionOfStrength extends Potion {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void apply( Hero hero ) {
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
|
||||
hero.STR++;
|
||||
|
||||
Reference in New Issue
Block a user