HP is now drained while holding sliders. (fixes #103)
Slider ticks now give HP, and the HP for SLIDER30 results is doubled. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
441bb95a09
commit
ae149a61f6
|
@ -1188,7 +1188,7 @@ public class GameData {
|
||||||
switch (result) {
|
switch (result) {
|
||||||
case HIT_SLIDER30:
|
case HIT_SLIDER30:
|
||||||
hitValue = 30;
|
hitValue = 30;
|
||||||
changeHealth(1f);
|
changeHealth(2f);
|
||||||
SoundController.playHitSound(
|
SoundController.playHitSound(
|
||||||
hitObject.getEdgeHitSoundType(repeat),
|
hitObject.getEdgeHitSoundType(repeat),
|
||||||
hitObject.getSampleSet(repeat),
|
hitObject.getSampleSet(repeat),
|
||||||
|
@ -1196,6 +1196,7 @@ public class GameData {
|
||||||
break;
|
break;
|
||||||
case HIT_SLIDER10:
|
case HIT_SLIDER10:
|
||||||
hitValue = 10;
|
hitValue = 10;
|
||||||
|
changeHealth(1f);
|
||||||
SoundController.playHitSound(HitSound.SLIDERTICK);
|
SoundController.playHitSound(HitSound.SLIDERTICK);
|
||||||
break;
|
break;
|
||||||
case HIT_MISS:
|
case HIT_MISS:
|
||||||
|
|
|
@ -485,7 +485,6 @@ public class Slider implements GameObject {
|
||||||
if (((keyPressed || GameMod.RELAX.isActive()) && distance < followRadius) || isAutoMod) {
|
if (((keyPressed || GameMod.RELAX.isActive()) && distance < followRadius) || isAutoMod) {
|
||||||
// mouse pressed and within follow circle
|
// mouse pressed and within follow circle
|
||||||
followCircleActive = true;
|
followCircleActive = true;
|
||||||
data.changeHealth(delta * GameData.HP_DRAIN_MULTIPLIER);
|
|
||||||
|
|
||||||
// held during new repeat
|
// held during new repeat
|
||||||
if (isNewRepeat) {
|
if (isNewRepeat) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user