v0.3.4a: boomerang can be equipped as a melee weapon again
This commit is contained in:
committed by
Evan Debenham
parent
6a4f8e6dd3
commit
e9421f0e43
@@ -29,6 +29,8 @@ import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.MissileSprite;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Boomerang extends MissileWeapon {
|
||||
|
||||
{
|
||||
@@ -42,6 +44,13 @@ public class Boomerang extends MissileWeapon {
|
||||
bones = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ArrayList<String> actions(Hero hero) {
|
||||
ArrayList<String> actions = super.actions( hero );
|
||||
if (!isEquipped(hero)) actions.add(AC_EQUIP);
|
||||
return actions;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int min() {
|
||||
return 1 + level();
|
||||
|
||||
Reference in New Issue
Block a user