Added "Easy" mod.
- Halves all difficulty values and grants 3 "lives" instead of 1, with a score multiplier of 0.5x. Other changes: - Fixed score display in game state if score exceeds 8 digits. - Added a "HP_DRAIN_MULTIPLIER" constant for steady HP drain/increase (to replace numeric constants). Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -29,11 +29,12 @@ import org.newdawn.slick.util.Log;
|
||||
* Game mods.
|
||||
*/
|
||||
public enum GameMod {
|
||||
NO_FAIL (0, "selection-mod-nofail.png"),
|
||||
HARD_ROCK (1, "selection-mod-hardrock.png"),
|
||||
SUDDEN_DEATH (2, "selection-mod-suddendeath.png"),
|
||||
SPUN_OUT (3, "selection-mod-spunout.png"),
|
||||
AUTO (4, "selection-mod-autoplay.png");
|
||||
EASY (0, "selection-mod-easy.png"),
|
||||
NO_FAIL (1, "selection-mod-nofail.png"),
|
||||
HARD_ROCK (2, "selection-mod-hardrock.png"),
|
||||
SUDDEN_DEATH (3, "selection-mod-suddendeath.png"),
|
||||
SPUN_OUT (4, "selection-mod-spunout.png"),
|
||||
AUTO (5, "selection-mod-autoplay.png");
|
||||
|
||||
/**
|
||||
* The ID of the mod (used for positioning).
|
||||
@@ -130,12 +131,19 @@ public enum GameMod {
|
||||
if (active)
|
||||
toggle(false);
|
||||
}
|
||||
} else if (SUDDEN_DEATH.isActive() && NO_FAIL.isActive()) {
|
||||
}
|
||||
if (SUDDEN_DEATH.isActive() && NO_FAIL.isActive()) {
|
||||
if (this == SUDDEN_DEATH)
|
||||
NO_FAIL.toggle(false);
|
||||
else
|
||||
SUDDEN_DEATH.toggle(false);
|
||||
}
|
||||
if (EASY.isActive() && HARD_ROCK.isActive()) {
|
||||
if (this == EASY)
|
||||
HARD_ROCK.toggle(false);
|
||||
else
|
||||
EASY.toggle(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user