Skip to content

Commit 55618e5

Browse files
committed
Explicitly opt-in to blinking previews for pup respawn tiles
This was assumed before, but with the upcoming addition of 6.x2 tiles it won't be true anymore.
1 parent f2ddd49 commit 55618e5

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/js/modules/renderer.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,13 @@ function drawFloorTiles(positions, showPreviews) {
780780
x = tile_spec.emptyCoordinates.x;
781781
y = tile_spec.emptyCoordinates.y;
782782
} else {
783-
trackPreviewState(positions, floor_tile);
784-
let coordinates = floor_tile.previewState.isEmpty ? tile_spec.emptyCoordinates
785-
: tile_spec.coordinates;
783+
let coordinates = tile_spec.coordinates
784+
if (tile_spec.blinking) {
785+
trackPreviewState(positions, floor_tile);
786+
if (floor_tile.previewState.isEmpty) {
787+
coordinates = tile_spec.emptyCoordinates;
788+
}
789+
}
786790
x = coordinates.x;
787791
y = coordinates.y;
788792
context.globalAlpha = 0.5;

src/js/modules/tiles.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ exports.floor_tiles = {
9999
6.2: {tile: "rollingbomb", coordinates: {x: 12, y: 5}, tileSize: 40, img: "tiles"},
100100
6.3: {tile: "tagpro", coordinates: {x: 12, y: 6}, tileSize: 40, img: "tiles"},
101101
6.4: {tile: "speed", coordinates: {x: 12, y: 7}, tileSize: 40, img: "tiles"},
102-
6.11: {tile: "previewjukejuice", coordinates: {x: 12, y: 4}, tileSize: 40, img: "tiles", preview: true, emptyCoordinates: {x: 12, y: 8}},
103-
6.21: {tile: "previewrollingbomb", coordinates: {x: 12, y: 5}, tileSize: 40, img: "tiles", preview: true, emptyCoordinates: {x: 12, y: 8}},
104-
6.31: {tile: "previewtagpro", coordinates: {x: 12, y: 6}, tileSize: 40, img: "tiles", preview: true, emptyCoordinates: {x: 12, y: 8}},
105-
6.41: {tile: "previewspeed", coordinates: {x: 12, y: 7}, tileSize: 40, img: "tiles", preview: true, emptyCoordinates: {x: 12, y: 8}},
102+
6.11: {tile: "previewjukejuice", coordinates: {x: 12, y: 4}, tileSize: 40, img: "tiles", preview: true, blinking: true, emptyCoordinates: {x: 12, y: 8}},
103+
6.21: {tile: "previewrollingbomb", coordinates: {x: 12, y: 5}, tileSize: 40, img: "tiles", preview: true, blinking: true, emptyCoordinates: {x: 12, y: 8}},
104+
6.31: {tile: "previewtagpro", coordinates: {x: 12, y: 6}, tileSize: 40, img: "tiles", preview: true, blinking: true, emptyCoordinates: {x: 12, y: 8}},
105+
6.41: {tile: "previewspeed", coordinates: {x: 12, y: 7}, tileSize: 40, img: "tiles", preview: true, blinking: true, emptyCoordinates: {x: 12, y: 8}},
106106
9: {tile: "gate", coordinates: {x: 12, y: 3}, tileSize: 40, img: "tiles"},
107107
9.1: {tile: "greengate", coordinates: {x: 13, y: 3}, tileSize: 40, img: "tiles"},
108108
9.2: {tile: "redgate", coordinates: {x: 14, y: 3}, tileSize: 40, img: "tiles"},

0 commit comments

Comments
 (0)