made code more 'user friendly' for modders
as in for modders to copy paste easily
This commit is contained in:
parent
c31f76e37a
commit
10cb42f98c
@ -1093,11 +1093,11 @@ class PlayState extends MusicBeatState
|
||||
senpaiEvil.updateHitbox();
|
||||
senpaiEvil.screenCenter();
|
||||
|
||||
if (PlayState.SONG.song.toLowerCase() == 'roses' || PlayState.SONG.song.toLowerCase() == 'thorns')
|
||||
if (StringTools.replace(PlayState.SONG.song, " ", "-").toLowerCase() == 'roses' || StringTools.replace(PlayState.SONG.song, " ", "-").toLowerCase() == 'thorns')
|
||||
{
|
||||
remove(black);
|
||||
|
||||
if (PlayState.SONG.song.toLowerCase() == 'thorns')
|
||||
if (StringTools.replace(PlayState.SONG.song, " ", "-").toLowerCase() == 'thorns')
|
||||
{
|
||||
add(red);
|
||||
}
|
||||
@ -1117,7 +1117,7 @@ class PlayState extends MusicBeatState
|
||||
{
|
||||
inCutscene = true;
|
||||
|
||||
if (PlayState.SONG.song.toLowerCase() == 'thorns')
|
||||
if (StringTools.replace(PlayState.SONG.song, " ", "-").toLowerCase() == 'thorns')
|
||||
{
|
||||
add(senpaiEvil);
|
||||
senpaiEvil.alpha = 0;
|
||||
@ -2540,7 +2540,7 @@ class PlayState extends MusicBeatState
|
||||
trace('LOADING NEXT SONG');
|
||||
trace(poop);
|
||||
|
||||
if (PlayState.storyPlaylist[0].toLowerCase() == 'eggnog')
|
||||
if (StringTools.replace(PlayState.storyPlaylist[0], " ", "-").toLowerCase() == 'eggnog')
|
||||
{
|
||||
var blackShit:FlxSprite = new FlxSprite(-FlxG.width * FlxG.camera.zoom,
|
||||
-FlxG.height * FlxG.camera.zoom).makeGraphic(FlxG.width * 3, FlxG.height * 3, FlxColor.BLACK);
|
||||
|
Loading…
x
Reference in New Issue
Block a user