Class
import mods.pyrotech.Stages;
Methods
static Stages and(
Object[] stages // accepts an array of string or Stages objects
);
static Stages or(
Object[] stages // accepts an array of string or Stages objects
);
static Stages not(
string stage
);
static Stages not(
Stages stages
);
Examples
import mods.pyrotech.Stages;
// allow if player has stageA
Stages.and(["stageA"]);
// allow if player does not have both stageA and stageB
Stages.not(Stages.and(["stageA", "stageB"]));
// allow if player has both stageA and stageB and not stageC
Stages.and(["stageA", "stageB", Stages.not("stageC")]);
// allow if player has either stageA or stageB and not stageC
Stages.and([Stages.or(["stageA", "stageB"]), Stages.not("stageC")]);
// allow if player has either stageA or stageB or not (stageC and stageD)
Stages.or(["stageA", "stageB", Stages.not(Stages.and(["stageC", "stageD"]))]);
import mods.pyrotech.Stages;
import mods.pyrotech.Worktable;
Worktable.setGameStages(Stages.and(["stageA"]));