v0.3.2: adjusted balance on the cloak of shadows and freerunner
This commit is contained in:
@@ -85,8 +85,7 @@ public class Invisibility extends FlavourBuff {
|
|||||||
}
|
}
|
||||||
CloakOfShadows.cloakStealth cloakBuff = Dungeon.hero.buff( CloakOfShadows.cloakStealth.class );
|
CloakOfShadows.cloakStealth cloakBuff = Dungeon.hero.buff( CloakOfShadows.cloakStealth.class );
|
||||||
if (cloakBuff != null) {
|
if (cloakBuff != null) {
|
||||||
cloakBuff.act();
|
cloakBuff.dispel();
|
||||||
cloakBuff.detach();
|
|
||||||
}
|
}
|
||||||
//this isn't a form of invisibilty, but it is meant to dispel at the same time as it.
|
//this isn't a form of invisibilty, but it is meant to dispel at the same time as it.
|
||||||
TimekeepersHourglass.timeFreeze timeFreeze = Dungeon.hero.buff( TimekeepersHourglass.timeFreeze.class );
|
TimekeepersHourglass.timeFreeze timeFreeze = Dungeon.hero.buff( TimekeepersHourglass.timeFreeze.class );
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ public class Hero extends Char {
|
|||||||
|
|
||||||
return ((HeroSprite)sprite).sprint( subClass == HeroSubClass.FREERUNNER && !isStarving() ) ?
|
return ((HeroSprite)sprite).sprint( subClass == HeroSubClass.FREERUNNER && !isStarving() ) ?
|
||||||
invisible > 0 ?
|
invisible > 0 ?
|
||||||
4f * speed :
|
2f * speed :
|
||||||
1.5f * speed :
|
1.5f * speed :
|
||||||
speed;
|
speed;
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public enum HeroSubClass {
|
|||||||
"When performing a surprise attack, the _Assassin_ inflicts additional damage to his target." ),
|
"When performing a surprise attack, the _Assassin_ inflicts additional damage to his target." ),
|
||||||
FREERUNNER( "freerunner",
|
FREERUNNER( "freerunner",
|
||||||
"The _Freerunner_ moves faster when he unencumbered and not starving, " +
|
"The _Freerunner_ moves faster when he unencumbered and not starving, " +
|
||||||
"if he is invisible, this speed boost is much stronger." ),
|
"if he is invisible, this speed boost is increased." ),
|
||||||
|
|
||||||
SNIPER( "sniper",
|
SNIPER( "sniper",
|
||||||
"The _Sniper_ is able to detect weak points in an enemy's armor, " +
|
"The _Sniper_ is able to detect weak points in an enemy's armor, " +
|
||||||
|
|||||||
@@ -209,6 +209,8 @@ public class CloakOfShadows extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class cloakStealth extends ArtifactBuff{
|
public class cloakStealth extends ArtifactBuff{
|
||||||
|
int turnsToCost = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int icon() {
|
public int icon() {
|
||||||
return BuffIndicator.INVISIBLE;
|
return BuffIndicator.INVISIBLE;
|
||||||
@@ -226,13 +228,33 @@ public class CloakOfShadows extends Artifact {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean act(){
|
public boolean act(){
|
||||||
charge--;
|
if (turnsToCost == 0) charge--;
|
||||||
if (charge <= 0) {
|
if (charge <= 0) {
|
||||||
detach();
|
detach();
|
||||||
GLog.w("Your cloak has run out of energy.");
|
GLog.w("Your cloak has run out of energy.");
|
||||||
((Hero)target).interrupt();
|
((Hero)target).interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (turnsToCost == 0) exp += 10 + ((Hero)target).lvl;
|
||||||
|
|
||||||
|
if (exp >= (level+1)*50 && level < levelCap) {
|
||||||
|
upgrade();
|
||||||
|
exp -= level*50;
|
||||||
|
GLog.p("Your cloak grows stronger!");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (turnsToCost == 0) turnsToCost = 2;
|
||||||
|
else turnsToCost--;
|
||||||
|
updateQuickslot();
|
||||||
|
|
||||||
|
spend( TICK );
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void dispel(){
|
||||||
|
charge --;
|
||||||
|
|
||||||
exp += 10 + ((Hero)target).lvl;
|
exp += 10 + ((Hero)target).lvl;
|
||||||
|
|
||||||
if (exp >= (level+1)*50 && level < levelCap) {
|
if (exp >= (level+1)*50 && level < levelCap) {
|
||||||
@@ -242,10 +264,7 @@ public class CloakOfShadows extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateQuickslot();
|
updateQuickslot();
|
||||||
|
detach();
|
||||||
spend( TICK );
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user