V0.2.0: Added polish to artifacts
This commit is contained in:
@@ -16,7 +16,8 @@ import com.watabou.utils.Random;
|
||||
* Created by debenhame on 03/09/2014.
|
||||
*/
|
||||
public class CapeOfThorns extends Artifact {
|
||||
//TODO: add polish, testing, numbers tweaking
|
||||
//TODO: testing, numbers tweaking
|
||||
//TODO: final surface test
|
||||
|
||||
{
|
||||
name = "Cape of Thorns";
|
||||
@@ -46,8 +47,20 @@ public class CapeOfThorns extends Artifact {
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
//TODO: add description
|
||||
return "";
|
||||
String desc = "These collapsed sheets of metal from the DM-300 have formed together into a rigid wearable " +
|
||||
"cape. The metal is old and coated in thick flakes of rust. It seems to store a deep energy, " +
|
||||
"perhaps it has some of the DM-300's power?";
|
||||
if (isEquipped( Dungeon.hero )) {
|
||||
desc += "\n\n";
|
||||
if (timer == 0)
|
||||
desc += "The cape feels reassuringly heavy on your shoulders. You're not sure if it will directly " +
|
||||
"help you in a fight, but it seems to be gaining energy from the battles you are in.";
|
||||
else
|
||||
desc += "The cape seems to be releasing some stored energy, it is radiating power at all angles. " +
|
||||
"You feel very confident that the cape can protect you right now.";
|
||||
}
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -64,8 +77,10 @@ public class CapeOfThorns extends Artifact {
|
||||
public boolean act(){
|
||||
if (timer > 0) {
|
||||
timer--;
|
||||
if (timer == 0)
|
||||
if (timer == 0) {
|
||||
BuffIndicator.refreshHero();
|
||||
GLog.w("Your Cape becomes inert again.");
|
||||
}
|
||||
QuickSlot.refresh();
|
||||
}
|
||||
spend(TICK);
|
||||
@@ -75,9 +90,10 @@ public class CapeOfThorns extends Artifact {
|
||||
public int proc(int damage, Char attacker){
|
||||
if (timer == 0){
|
||||
charge += damage*(0.5+level*0.025);
|
||||
if (charge > chargeCap){
|
||||
if (charge >= chargeCap){
|
||||
charge = 0;
|
||||
timer = 5+level;
|
||||
GLog.p("Your Cape begins radiating energy, you feel protected!");
|
||||
BuffIndicator.refreshHero();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user