changed onNoteMiss to onPlayerMiss cause it pissed me off

This commit is contained in:
Yoshman29
2022-11-11 00:17:42 +01:00
parent abc2e5c464
commit 6eeeb9ae61
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
1273
1274
+1 -1
View File
@@ -1272,7 +1272,7 @@ class PlayState extends MusicBeatState
{
if (!boyfriend.stunned)
{
var event:NoteHitEvent = scripts.event("onNoteMiss", new NoteHitEvent(note, boyfriend, true, note.noteType, note.strumID, -0.04, false, -10));
var event:NoteHitEvent = scripts.event("onPlayerMiss", new NoteHitEvent(note, boyfriend, true, note.noteType, note.strumID, -0.04, false, -10));
if (event.cancelled) return;
@@ -64,7 +64,7 @@ class NoteHitEvent extends CancellableEvent {
*/
public var accuracy:Null<Float>;
/**
* The amount of health that'll be gained from pressing that note. If called from `onNoteMiss`, the value will be negative.
* The amount of health that'll be gained from pressing that note. If called from `onPlayerMiss`, the value will be negative.
*/
public var healthGain:Float;
/**
@@ -142,7 +142,7 @@ class NoteHitEvent extends CancellableEvent {
public function cancelVocalsUnmute() {preventVocalsUnmute();}
/**
* Prevents the vocals volume from being muted in case its a parameter of `onNoteMiss`
* Prevents the vocals volume from being muted in case its a parameter of `onPlayerMiss`
*/
public function preventVocalsMute() {
unmuteVocals = true;
+1 -1
View File
@@ -153,7 +153,7 @@ class Paths
inline static public function font(key:String)
{
return 'assets/fonts/$key';
return getPath('fonts/$key', FONT, null);
}
inline static public function getSparrowAtlas(key:String, ?library:String)