Skip to content

Commit

Permalink
Update CharaEvent.cs
Browse files Browse the repository at this point in the history
Fixed logic to support maker mode
  • Loading branch information
jalil49 committed Mar 5, 2021
1 parent 4161cf2 commit 7c552ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CharaEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CharaEvent : CharaCustomFunctionController
protected override void OnReload(GameMode currentGameMode, bool MaintainState) //from KKAPI.Chara when characters enter reload state
{
self = this;
if (!ExpandedOutfit.EnableSetting.Value || !ExpandedOutfit.Makerview.Value && GameMode.Maker == currentGameMode || GameMode.Studio == currentGameMode || Repeat_stoppper/*|| !ExpandedOutfit.Makerview.Value && GameMode.Unknown == currentGameMode*/)
if (!ExpandedOutfit.EnableSetting.Value || !ExpandedOutfit.Makerview.Value && GameMode.Maker == currentGameMode || GameMode.Studio == currentGameMode || Repeat_stoppper && GameMode.Maker != currentGameMode/*|| !ExpandedOutfit.Makerview.Value && GameMode.Unknown == currentGameMode*/)
{
Repeat_stoppper = false;
return;
Expand Down Expand Up @@ -54,8 +54,9 @@ protected override void OnReload(GameMode currentGameMode, bool MaintainState) /
ChaControl.ChangeCoordinateType((ChaFileDefine.CoordinateType)temp.fileStatus.coordinateType, true); //forces cutscene characters to use outfits
}

if (GameMode.MainGame != currentGameMode)//stop any potential loops in maker since this isn't a maker mod
if (Repeat_stoppper)//stop any potential endless loops in maker
{
Repeat_stoppper = false;
return;
}
object[] OnReloadArray = new object[2] { currentGameMode, false };
Expand Down

0 comments on commit 7c552ed

Please sign in to comment.