v0.3.4: externalized item actions
This commit is contained in:
committed by
Evan Debenham
parent
7757b47573
commit
13b9d2f801
@@ -33,7 +33,7 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
|
||||
public class Amulet extends Item {
|
||||
|
||||
private static final String AC_END = "END THE GAME";
|
||||
private static final String AC_END = "END";
|
||||
|
||||
{
|
||||
image = ItemSpriteSheet.AMULET;
|
||||
@@ -50,7 +50,7 @@ public class Amulet extends Item {
|
||||
|
||||
@Override
|
||||
public void execute( Hero hero, String action ) {
|
||||
if (action == AC_END) {
|
||||
if (action.equals(AC_END)) {
|
||||
|
||||
showAmuletScene( false );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user