changed onNoteMiss to onPlayerMiss cause it pissed me off
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1273
|
||||
1274
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user