Merge pull request #768 from FunkinCrew/kadedev/addcharacter-type

[PUBLIC PR] Move characterType assignment to Stage.addCharacter
This commit is contained in:
Cameron Taylor
2024-09-20 00:23:53 -04:00
committed by GitHub
2 changed files with 4 additions and 5 deletions
+1 -5
View File
@@ -1612,7 +1612,7 @@ class PlayState extends MusicBeatSubState
if (girlfriend != null)
{
girlfriend.characterType = CharacterType.GF;
// Don't need to do anything.
}
else if (currentCharacterData.girlfriend != '')
{
@@ -1630,8 +1630,6 @@ class PlayState extends MusicBeatSubState
if (dad != null)
{
dad.characterType = CharacterType.DAD;
//
// OPPONENT HEALTH ICON
//
@@ -1650,8 +1648,6 @@ class PlayState extends MusicBeatSubState
if (boyfriend != null)
{
boyfriend.characterType = CharacterType.BF;
//
// PLAYER HEALTH ICON
//
+3
View File
@@ -464,6 +464,9 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
#end
}
// Set the characters type
character.characterType = charType;
// Add the character to the scene.
this.add(character);