Skip to content

Commit

Permalink
[Sonic Frontiers] Character Swapper: disable in Cyber Space, fix char…
Browse files Browse the repository at this point in the history
…acter detection on load
  • Loading branch information
hyperbx committed Oct 13, 2024
1 parent 7df3e73 commit ebd49f5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Notes;
- Keep your expectations within reason; don't expect guardians outside of Another Story to work 100% correctly as the other characters, especially event-driven ones like Shark.
*/
//
#include "BlackboardStatus" noemit

#lib "BlackboardItem"
#lib "MathHelpers"
#lib "PhotoMode"
Expand Down Expand Up @@ -50,9 +52,15 @@ Notes;
if (!Win32.IsGameForegroundWindow())
return;

if (IS_WORLD_FLAG(IsCyberSpace))
return;

if (PhotoMode.IsEnabled())
return;

if (_currentPlayer != Player.GetPlayerType())
_currentPlayer = Player.GetPlayerType();

var pBlackboardItem = BlackboardItem.Get();

if (pBlackboardItem == null)
Expand Down

0 comments on commit ebd49f5

Please sign in to comment.