v0.2.3: reworked freerunner's class ability
This commit is contained in:
@@ -294,11 +294,6 @@ public class Hero extends Char {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (heroClass == HeroClass.ROGUE) {
|
if (heroClass == HeroClass.ROGUE) {
|
||||||
|
|
||||||
if (curAction != null && subClass == HeroSubClass.FREERUNNER && !isStarving()) {
|
|
||||||
evasion *= 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (int)((defenseSkill - aEnc) * evasion);
|
return (int)((defenseSkill - aEnc) * evasion);
|
||||||
} else {
|
} else {
|
||||||
return (int)(defenseSkill * evasion);
|
return (int)(defenseSkill * evasion);
|
||||||
@@ -354,7 +349,11 @@ public class Hero extends Char {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return ((HeroSprite)sprite).sprint( subClass == HeroSubClass.FREERUNNER && !isStarving() ) ? 1.6f * speed : speed;
|
return ((HeroSprite)sprite).sprint( subClass == HeroSubClass.FREERUNNER && !isStarving() ) ?
|
||||||
|
invisible > 0 ?
|
||||||
|
2.56f * speed :
|
||||||
|
1.6f * speed :
|
||||||
|
speed;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ public enum HeroSubClass {
|
|||||||
ASSASSIN( "assassin",
|
ASSASSIN( "assassin",
|
||||||
"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_ can move almost twice faster, than most of the monsters. When he " +
|
"The _Freerunner_ moves faster when he unencumbered and not starving, " +
|
||||||
"is running, the Freerunner is much harder to hit. For that he must be unencumbered and not starving." ),
|
"if he is invisible, this speed boost is much stronger." ),
|
||||||
|
|
||||||
SNIPER( "sniper",
|
SNIPER( "sniper",
|
||||||
"_Snipers_ are able to detect weak points in an enemy's armor, " +
|
"_Snipers_ are able to detect weak points in an enemy's armor, " +
|
||||||
|
|||||||
Reference in New Issue
Block a user