Skip to content

Commit e6f463f

Browse files
HundrecAbnormalPoof
andcommitted
Script error fix for HTML5
Because `remove` doesn't work on HTML5 Co-Authored-By: Abnormal <[email protected]>
1 parent 7b7669b commit e6f463f

File tree

16 files changed

+17
-17
lines changed

16 files changed

+17
-17
lines changed

preload/scripts/songs/blammed.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class BlammedSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/bopeebo.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class BopeeboSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/cocoa.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CocoaSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/dadbattle.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DadbattleSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/darnell.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DarnellSong extends Song
5555
{
5656
var hasBeatenBFMix = Save.instance.hasBeatenSong(this.id, null, 'bf');
5757

58-
if (!hasBeatenBFMix) results.remove('bf');
58+
if (!hasBeatenBFMix) results = [for (id in results) if (id != 'bf') id];
5959
}
6060

6161
return results;

preload/scripts/songs/eggnog.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EggnogSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/fresh.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FreshSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/guns.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GunsSong extends Song
2323
{
2424
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
2525

26-
if (!hasBeatenPicoMix) results.remove('pico');
26+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2727
}
2828

2929
return results;

preload/scripts/songs/philly-nice.hxc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import funkin.play.song.Song;
22
import funkin.save.Save;
33

4-
class PhillyNicePicoMixSong extends Song
4+
class PhillyNiceSong extends Song
55
{
66
public function new()
77
{
@@ -16,7 +16,7 @@ class PhillyNicePicoMixSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

preload/scripts/songs/pico.hxc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PicoSong extends Song
1616
{
1717
var hasBeatenPicoMix = Save.instance.hasBeatenSong(this.id, null, 'pico');
1818

19-
if (!hasBeatenPicoMix) results.remove('pico');
19+
if (!hasBeatenPicoMix) results = [for (id in results) if (id != 'pico') id];
2020
}
2121

2222
return results;

0 commit comments

Comments
 (0)