private static int StartBombs(InstanceMode mode) { if (mode == InstanceMode.CAMPAIGN || mode == InstanceMode.TUTORIAL || mode == InstanceMode.STAGE_PRACTICE) { return(2); } else if (mode.OneLife()) { return(0); } else { return(3); } }
private static double StartPower(InstanceMode mode, ShotConfig?shot) { if (mode.OneLife() || !PowerMechanicEnabled) { return(powerMax); } else if (shot != null) { return(M.Clamp(powerMin, powerMax, shot.defaultPower)); } else { return(M.Clamp(powerMin, powerMax, powerDefault)); } }
private static int StartLives(InstanceMode mode) { if (mode == InstanceMode.CAMPAIGN || mode == InstanceMode.TUTORIAL || mode == InstanceMode.STAGE_PRACTICE) { return(7); } else if (mode.OneLife()) { return(1); } else if (mode == InstanceMode.NULL) { return(14); } else { return(1); } }