コード例 #1
0
        public override void Init()
        {
            label = RandomUtil.Int(4);
            color = RandomUtil.Int(4);
            Log($"Button: {ColorNames[color]} {Labels[label]}");

            solRequiresHold =
                color == 2 && label == 1 ? true :
                BombInfo.GetBatteryCount() > 1 && label == 1 ? false :
                color == 3 && BombInfo.IsIndicatorOn(Indicator.CAR) ? true :
                BombInfo.GetBatteryCount() > 2 && BombInfo.IsIndicatorOn(Indicator.FRK) ? false :
                color == 1 ? true :
                color == 0 && label == 2 ? false :
                true;

            Log($"Solution: " + (solRequiresHold ? "HOLD" : "PRESS"));
        }