XenonA7 / xenons-playable-classes

A mod for CrossCode that adds playable triblader characters
20 stars 1 forks source link

Fix a VERY embarrassing issue #7

Closed lexisother closed 1 year ago

lexisother commented 1 year ago

Hopefully fix the custom patch steps causing errors for the mod. For the technically inclined, let me explain.

In patch steps, we have a step called ENTER that allows you to move the context into a specific array or object. You can move the context as far into an object as you want. To go back, we also have a step called EXIT. Calling this as-is puts you back one, and it also takes a number that dictates how far back you go.

In my custom patch steps, an internal step was defined named EXIT that stops the patch machine (the thing that takes care of logic flow) to let it know we are done.

Apparently, that was overriding the builtin EXIT call and breaking functionality. To fix this, I have renamed this custom step to EXIT_SM. It seems to work fine.