V0.2.0: normalized Cloak of Shadows starting level (should start at level = 0)

This commit is contained in:
Evan Debenham 2014-08-28 16:23:28 -04:00
parent 605ec62223
commit 8733e99e03

View File

@ -25,9 +25,9 @@ public class CloakOfShadows extends Artifact {
{ {
name = "Cloak of Shadows"; name = "Cloak of Shadows";
image = ItemSpriteSheet.ARTIFACT_CLOAK; image = ItemSpriteSheet.ARTIFACT_CLOAK;
level = 1; level = 0;
charge = level+4; charge = level+5;
chargeCap = level+4; chargeCap = level+5;
defaultAction = AC_STEALTH; defaultAction = AC_STEALTH;
} }
@ -138,7 +138,7 @@ public class CloakOfShadows extends Artifact {
public boolean act() { public boolean act() {
if (charge < chargeCap) { if (charge < chargeCap) {
if (!stealthed) if (!stealthed)
partialCharge += (chargeCap / (52-(level*2))); partialCharge += (chargeCap / (50-(level*2)));
if (partialCharge >= 1) { if (partialCharge >= 1) {
charge++; charge++;
@ -190,12 +190,12 @@ public class CloakOfShadows extends Artifact {
exp += 10 + ((Hero)target).lvl; exp += 10 + ((Hero)target).lvl;
//max level is 16 (20 charges) //max level is 15 (20 charges)
if (exp >= level*50 && level < 16) { if (exp >= (level+1)*50 && level < 15) {
exp -= level*50;
GLog.p("Your Cloak Grows Stronger!");
level++; level++;
chargeCap++; chargeCap++;
exp -= level*50;
GLog.p("Your Cloak Grows Stronger!");
} }
QuickSlot.refresh(); QuickSlot.refresh();
@ -215,7 +215,7 @@ public class CloakOfShadows extends Artifact {
if (target.invisible > 0) if (target.invisible > 0)
target.invisible--; target.invisible--;
stealthed = false; stealthed = false;
cooldown = 10 - (level / 4); cooldown = 10 - (level / 3);
QuickSlot.refresh(); QuickSlot.refresh();