v0.2.3: refactoring/tweaks to artifacts and active buffs
This commit is contained in:
parent
6fc71c9f8b
commit
59df503355
|
@ -114,6 +114,11 @@ public class Artifact extends KindofMisc {
|
||||||
passiveBuff.detach();
|
passiveBuff.detach();
|
||||||
passiveBuff = null;
|
passiveBuff = null;
|
||||||
|
|
||||||
|
if (activeBuff != null){
|
||||||
|
activeBuff.detach();
|
||||||
|
activeBuff = null;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -86,16 +86,8 @@ public class CloakOfShadows extends Artifact {
|
||||||
GLog.i("You return from underneath your cloak.");
|
GLog.i("You return from underneath your cloak.");
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else
|
||||||
if (stealthed) {
|
|
||||||
stealthed = false;
|
|
||||||
activeBuff.detach();
|
|
||||||
activeBuff = null;
|
|
||||||
GLog.i("You return from underneath your cloak.");
|
|
||||||
}
|
|
||||||
|
|
||||||
super.execute(hero, action);
|
super.execute(hero, action);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -107,6 +99,15 @@ public class CloakOfShadows extends Artifact {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean doUnequip(Hero hero, boolean collect, boolean single) {
|
||||||
|
if (super.doUnequip(hero, collect, single)){
|
||||||
|
stealthed = false;
|
||||||
|
return true;
|
||||||
|
} else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ArtifactBuff passiveBuff() {
|
protected ArtifactBuff passiveBuff() {
|
||||||
return new cloakRecharge();
|
return new cloakRecharge();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user