v0.3.5: big consistency pass on how items handle execution
This commit is contained in:
@@ -131,6 +131,9 @@ public class Potion extends Item {
|
||||
|
||||
@Override
|
||||
public void execute( final Hero hero, String action ) {
|
||||
|
||||
super.execute( hero, action );
|
||||
|
||||
if (action.equals( AC_DRINK )) {
|
||||
|
||||
if (isKnown() && (
|
||||
@@ -155,10 +158,6 @@ public class Potion extends Item {
|
||||
drink( hero );
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
super.execute( hero, action );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user