Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof committed Sep 30, 2024
1 parent 3d8f7e7 commit d2a74d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/modules/charHandler.hxc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class CharacterHandler extends Module {
// If the original player is part of a Playable Character, we don't do this.
PlayState.instance.currentChart.characters.player = ogCharID;
state.playerCharacterId = null;
if (PlayerRegistry.instance.isCharacterOwned(ogCharID)) state.playerCharacterId = PlayerRegistry.instance.getCharacterOwnerId(ogCharID);
if (PlayerRegistry.instance.isCharacterOwned(ogCharID))
state.playerCharacterId = PlayerRegistry.instance.getCharacterOwnerId(ogCharID);
}
}

Expand Down Expand Up @@ -336,10 +337,9 @@ class CharacterHandler extends Module {
}

function onSongEnd() {
if (PlayerRegistry.instance.isCharacterOwned(characterIDs.bf)
&& PlayState.instance.currentStage.getBoyfriend() != null
&& PlayState.instance.currentStage.getBoyfriend().characterId == characterIDs.bf) {

if (PlayerRegistry.instance.isCharacterOwned(characterIDs.bf)
&& PlayState.instance.currentStage.getBoyfriend() != null
&& PlayState.instance.currentStage.getBoyfriend().characterId == characterIDs.bf) {
PlayState.instance.currentChart.characters.player = characterIDs.bf;
}
}
Expand Down

0 comments on commit d2a74d6

Please sign in to comment.