mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 11:22:55 +00:00
Merge pull request #768 from FunkinCrew/kadedev/addcharacter-type
[PUBLIC PR] Move characterType assignment to Stage.addCharacter
This commit is contained in:
commit
426bff3bf5
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue