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.updateHitbox();
|
||||||
senpaiEvil.screenCenter();
|
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);
|
remove(black);
|
||||||
|
|
||||||
if (PlayState.SONG.song.toLowerCase() == 'thorns')
|
if (StringTools.replace(PlayState.SONG.song, " ", "-").toLowerCase() == 'thorns')
|
||||||
{
|
{
|
||||||
add(red);
|
add(red);
|
||||||
}
|
}
|
||||||
@ -1117,7 +1117,7 @@ class PlayState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
inCutscene = true;
|
inCutscene = true;
|
||||||
|
|
||||||
if (PlayState.SONG.song.toLowerCase() == 'thorns')
|
if (StringTools.replace(PlayState.SONG.song, " ", "-").toLowerCase() == 'thorns')
|
||||||
{
|
{
|
||||||
add(senpaiEvil);
|
add(senpaiEvil);
|
||||||
senpaiEvil.alpha = 0;
|
senpaiEvil.alpha = 0;
|
||||||
@ -2540,7 +2540,7 @@ class PlayState extends MusicBeatState
|
|||||||
trace('LOADING NEXT SONG');
|
trace('LOADING NEXT SONG');
|
||||||
trace(poop);
|
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,
|
var blackShit:FlxSprite = new FlxSprite(-FlxG.width * FlxG.camera.zoom,
|
||||||
-FlxG.height * FlxG.camera.zoom).makeGraphic(FlxG.width * 3, FlxG.height * 3, FlxColor.BLACK);
|
-FlxG.height * FlxG.camera.zoom).makeGraphic(FlxG.width * 3, FlxG.height * 3, FlxColor.BLACK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user