You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/funkin/game/StrumLine.hx
+3-25Lines changed: 3 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -241,20 +241,8 @@ class StrumLine extends FlxTypedGroup<Strum> {
241
241
if (__updateNote_event.strum==null) return;
242
242
if (__updateNote_event.__reposNote) __updateNote_event.strum.updateNotePosition(daNote);
243
243
244
-
245
-
if (daNote.isSustainNote)
246
-
{
244
+
if (daNote.isSustainNote) {
247
245
daNote.updateSustain(__updateNote_event.strum);
248
-
249
-
if (daNote.tripTimer>0&&daNote.tailCount>3)
250
-
{
251
-
daNote.tripTimer-=0.05/daNote.sustainLength;
252
-
if (daNote.tripTimer<=0)
253
-
{
254
-
daNote.tripTimer=0;
255
-
daNote.canBeHit=false;
256
-
}
257
-
}
258
246
}
259
247
}
260
248
@@ -264,14 +252,7 @@ class StrumLine extends FlxTypedGroup<Strum> {
264
252
var__notePerStrum:Array<Note> = [];
265
253
266
254
function__inputProcessPressed(note:Note) {
267
-
if (__pressed[note.strumID] &¬e.isSustainNote&¬e.strumTime<__updateNote_songPos&&!note.wasGoodHit) {
268
-
note.tripTimer=1;
269
-
PlayState.instance.goodNoteHit(this, note);
270
-
}
271
-
}
272
-
function__inputProcessPressedOne(note:Note) {
273
-
if (__pressed[note.strumID] &¬e.isSustainNote&¬e.sustainParent!=null&¬e.prevNote!=null&¬e.prevNote.wasGoodHit&¬e.strumTime<__updateNote_songPos&&!note.wasGoodHit) {
274
-
note.tripTimer=1;
255
+
if (__pressed[note.strumID] &¬e.isSustainNote&¬e.sustainParent.wasGoodHit&¬e.strumTime<__updateNote_songPos&&!note.wasGoodHit) {
275
256
PlayState.instance.goodNoteHit(this, note);
276
257
}
277
258
}
@@ -338,10 +319,7 @@ class StrumLine extends FlxTypedGroup<Strum> {
0 commit comments