This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
Note-Based HP Drain [1.6-1.7] #2378
SuxxorState
started this conversation in
Ideas
Replies: 1 comment
-
pr this into a guide. you are pogner |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You want to make the enemy drain HP by singing, huh? Neat, let me help you with that.
This is actually quite a simple feat to do, as it's only a few lines of code. So, let's get to it.
Open up PlayState.hx.
Here, navigate to around these lines of code (should be around line 3073). Feel free to use the find function (ctrl + f) if need be.
underneath that final bracket listed above, add in this function--
if (health > 0.05 && !daNote.isSustainNote)
health -= 0.04;
and you're done! feel free to tweak the amount on the hp drain (keep the 0.05 just a bit above the 0.04).
(simple, right?)
Beta Was this translation helpful? Give feedback.
All reactions