v0.3.0c: rebalanced wand of corruption, added a buff icon to corruption

This commit is contained in:
Evan Debenham 2015-06-06 17:45:58 -04:00
parent 7afe96b502
commit b91d5d7185
5 changed files with 14 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -12,7 +12,6 @@ public class Corruption extends Buff {
type = buffType.NEGATIVE; type = buffType.NEGATIVE;
} }
//TODO: need to bundle this
private float buildToDamage = 0f; private float buildToDamage = 0f;
@Override @Override
@ -37,9 +36,8 @@ public class Corruption extends Buff {
} }
@Override @Override
//TODO: new icon
public int icon() { public int icon() {
return BuffIndicator.POISON; return BuffIndicator.CORRUPT;
} }
@Override @Override

View File

@ -50,14 +50,20 @@ public class WandOfCorruption extends Wand {
return; return;
} }
int basePower = 5 + 5*level; int basePower = 10 + 2*level;
int mobPower = Random.NormalIntRange(0, ch.HT+ch.HP); int mobPower = Random.IntRange(0, ch.HT) + ch.HP*2;
for ( Buff buff : ch.buffs()){
if (buff.type == Buff.buffType.NEGATIVE){
mobPower *= 0.67;
break;
}
}
int extraCharges = 0; int extraCharges = 0;
//try to use extra charges to overpower the mob //try to use extra charges to overpower the mob
while (basePower <= mobPower){ while (basePower <= mobPower){
extraCharges++; extraCharges++;
basePower += 10 + 2.5*level; basePower += 5 + level;
} }
//if we fail, lose all charges, remember we have 1 left to lose from using the wand. //if we fail, lose all charges, remember we have 1 left to lose from using the wand.
@ -106,9 +112,9 @@ public class WandOfCorruption extends Wand {
return "This wand radiates dark energy, if that weren't already obvious from the small decorative skull shaped onto its tip.\n" + return "This wand radiates dark energy, if that weren't already obvious from the small decorative skull shaped onto its tip.\n" +
"\n" + "\n" +
"This wand will release a blast of corrupting energy, attempting to bend enemies to your will. " + "This wand will release a blast of corrupting energy, attempting to bend enemies to your will. " +
"The weaker an enemy is, the easier they are to corrupt. " + "Full health enemies are dramatically harder to corrupt than weakened and debuffed ones. " +
"Successfully corrupting an enemy restores them to full health.\n" + "Successfully corrupting an enemy restores them to full health.\n" +
"\n" + "\n" +
"This wand uses at least one charge per cast, but will often use more in an attempt to overpower tougher enemies."; "This wand uses at least one charge per cast, but will often use more in an attempt to overpower more healthy enemies.";
} }
} }

View File

@ -72,7 +72,8 @@ public class BuffIndicator extends Component {
public static final int VERTIGO = 33; public static final int VERTIGO = 33;
public static final int RECHARGING = 34; public static final int RECHARGING = 34;
public static final int LOCKED_FLOOR= 35; public static final int LOCKED_FLOOR= 35;
public static final int CORRUPT = 36;
public static final int SIZE = 7; public static final int SIZE = 7;
private static BuffIndicator heroInstance; private static BuffIndicator heroInstance;