v0.2.3: usability improvements and bugfixes to cloak of shadows
This commit is contained in:
parent
dd77c19c13
commit
eb22583e86
|
@ -45,7 +45,7 @@ public class CloakOfShadows extends Artifact {
|
||||||
@Override
|
@Override
|
||||||
public ArrayList<String> actions( Hero hero ) {
|
public ArrayList<String> actions( Hero hero ) {
|
||||||
ArrayList<String> actions = super.actions( hero );
|
ArrayList<String> actions = super.actions( hero );
|
||||||
if (isEquipped( hero ))
|
if (isEquipped( hero ) && charge > 1)
|
||||||
actions.add(AC_STEALTH);
|
actions.add(AC_STEALTH);
|
||||||
return actions;
|
return actions;
|
||||||
}
|
}
|
||||||
|
@ -55,9 +55,10 @@ public class CloakOfShadows extends Artifact {
|
||||||
if (action.equals( AC_STEALTH )) {
|
if (action.equals( AC_STEALTH )) {
|
||||||
|
|
||||||
if (!stealthed){
|
if (!stealthed){
|
||||||
if (cooldown <= 0 && charge > 0 && isEquipped(hero)) {
|
if (cooldown <= 0 && charge >= 2 && isEquipped(hero)) {
|
||||||
stealthed = true;
|
stealthed = true;
|
||||||
hero.spend( 1f );
|
hero.spend( 1f );
|
||||||
|
hero.busy();
|
||||||
Sample.INSTANCE.play(Assets.SND_MELD);
|
Sample.INSTANCE.play(Assets.SND_MELD);
|
||||||
activeBuff = activeBuff();
|
activeBuff = activeBuff();
|
||||||
activeBuff.attachTo(hero);
|
activeBuff.attachTo(hero);
|
||||||
|
@ -72,8 +73,8 @@ public class CloakOfShadows extends Artifact {
|
||||||
GLog.i("You need to equip your cloak to do that.");
|
GLog.i("You need to equip your cloak to do that.");
|
||||||
} else if (cooldown > 0) {
|
} else if (cooldown > 0) {
|
||||||
GLog.i("Your cloak needs " + cooldown + " more rounds to re-energize.");
|
GLog.i("Your cloak needs " + cooldown + " more rounds to re-energize.");
|
||||||
} else if (charge == 0){
|
} else if (charge <= 1){
|
||||||
GLog.i("Your cloak is out of charge.");
|
GLog.i("Your cloak hasn't recharged enough to be usable yet.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
stealthed = false;
|
stealthed = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user