diff --git a/buildnumber.txt b/buildnumber.txt index 1ab8b271..d0cc93ed 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1273 \ No newline at end of file +1274 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index a0f8ca53..99de6412 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -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; diff --git a/source/funkin/scripting/events/NoteHitEvent.hx b/source/funkin/scripting/events/NoteHitEvent.hx index 4bbdcfcd..32e851d1 100644 --- a/source/funkin/scripting/events/NoteHitEvent.hx +++ b/source/funkin/scripting/events/NoteHitEvent.hx @@ -64,7 +64,7 @@ class NoteHitEvent extends CancellableEvent { */ public var accuracy:Null; /** - * 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; diff --git a/source/funkin/system/Paths.hx b/source/funkin/system/Paths.hx index 71c7fbee..b61a3476 100644 --- a/source/funkin/system/Paths.hx +++ b/source/funkin/system/Paths.hx @@ -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)