Preserve the color of sokoban blocks on cloning
This commit is contained in:
1 parent
34e430e8a1
commit
4ebe5c1149
1 file changed
+3
@@ -1377,6 +1377,9 @@ const TILE_TYPES = {
|
|||||||
populate_defaults(me) {
|
populate_defaults(me) {
|
||||||
me.color = 'red';
|
me.color = 'red';
|
||||||
},
|
},
|
||||||
|
on_clone(me, original) {
|
||||||
|
me.color = original.color;
|
||||||
|
},
|
||||||
visual_state(me) {
|
visual_state(me) {
|
||||||
return me.color ?? 'red';
|
return me.color ?? 'red';
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user