multiple "X no X" cells in one rule can lead to unexpected rule deletion
how to reproduce this bug:
copy the code below and click run, and we can see it generated 0 instructions
also: duplicate the second rule can lead to "TypeError: Cannot read properties of undefined (reading 'lhs')"
title Simple Block Pushing Game
author David Skinner
homepage www.puzzlescript.net
verbose_logging
========
OBJECTS
Background
lightgreen green
11111
01111
11101
11111
10111
Target
darkblue
.....
.000.
.0.0.
.000.
.....
Wall
brown darkbrown
00010
11111
01000
11111
00010
Player
black orange white blue
.000.
.111.
22222
.333.
.3.3.
Crate
orange
00000
0...0
0...0
0...0
00000
=======
LEGEND
. = Background
= Wall
P = Player
- = Crate
@ = Crate and Target
O = Target
=======
SOUNDS
Crate move 36772507
================
COLLISIONLAYERS
Background
Target
Player
Wall, Crate
======
RULES
[ > Player | Crate ] -> [ > Player | > Crate ]
[ > Player no Player | Player no Player ] -> [ | ]
==============
WINCONDITIONS
all Target on Crate
=======
LEVELS
####..
#.O#..
#..###
#@p..#
#..*.#
#..###
####..
#....#
#.#P.#
#.*@.#
#.O@.#
#....#
multiple "X no X" cells in one rule can lead to unexpected rule deletion
how to reproduce this bug:
copy the code below and click run, and we can see it generated 0 instructions
also: duplicate the second rule can lead to "TypeError: Cannot read properties of undefined (reading 'lhs')"
title Simple Block Pushing Game
author David Skinner
homepage www.puzzlescript.net
verbose_logging
========
OBJECTS
Background
lightgreen green
11111
01111
11101
11111
10111
Target
darkblue
.....
.000.
.0.0.
.000.
.....
Wall
brown darkbrown
00010
11111
01000
11111
00010
Player
black orange white blue
.000.
.111.
22222
.333.
.3.3.
Crate
orange
00000
0...0
0...0
0...0
00000
=======
LEGEND
. = Background
= Wall
P = Player
@ = Crate and Target
O = Target
=======
SOUNDS
Crate move 36772507
================
COLLISIONLAYERS
Background
Target
Player
Wall, Crate
======
RULES
[ > Player | Crate ] -> [ > Player | > Crate ]
[ > Player no Player | Player no Player ] -> [ | ]
==============
WINCONDITIONS
all Target on Crate
=======
LEVELS
####..
#.O#..
#..###
#@p..#
#..*.#
#..###
####..
#....#
#.#P.#
#.*@.#
#.O@.#
#....#