v0.2.4: made potions susceptible to cold, refactored a bit of buff logic.
This commit is contained in:
@@ -218,10 +218,12 @@ public class Potion extends Item {
|
||||
shatter( hero.pos );
|
||||
}
|
||||
|
||||
protected void shatter( int cell ) {
|
||||
GLog.i( "The flask shatters and " + color() + " liquid splashes harmlessly" );
|
||||
Sample.INSTANCE.play( Assets.SND_SHATTER );
|
||||
splash( cell );
|
||||
public void shatter( int cell ) {
|
||||
if (Dungeon.visible[cell]) {
|
||||
GLog.i( "The flask shatters and " + color() + " liquid splashes harmlessly" );
|
||||
Sample.INSTANCE.play( Assets.SND_SHATTER );
|
||||
splash( cell );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user