Skip to content

Commit 149d58f

Browse files
committed
hover shows traps
1 parent a427cd2 commit 149d58f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client/src/playback/Map.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ export class CurrentMap {
284284

285285
const dirt = this.dirt[schemaIdx]
286286
const wall = this.staticMap.walls[schemaIdx]
287+
const ratTrap = this.ratTrapData[schemaIdx]
288+
const catTrap = this.catTrapData[schemaIdx]
287289
const cheeseMine = this.staticMap.cheeseMines.find((r) => r.x === square.x && r.y === square.y)
288290
const cheese = this.cheeseData[schemaIdx]
289291
const srp = this.resourcePatterns.find((r) => r.center.x === square.x && r.center.y === square.y)
@@ -313,6 +315,12 @@ export class CurrentMap {
313315
if (dirt) {
314316
info.push('Dirt')
315317
}
318+
if (ratTrap) {
319+
info.push('Rat Trap')
320+
}
321+
if (ratTrap) {
322+
info.push('Cat Trap')
323+
}
316324
if (cheese) {
317325
info.push(`Cheese: ${cheese}`)
318326
}

0 commit comments

Comments
 (0)