feat: Add Tekton roaming NPC with grid-based movement, states for being hit, carried, and thrown, visual feedback, and multiplayer synchronization.
This commit is contained in:
+2
-2
@@ -348,8 +348,8 @@ func temporarily_change_floor(center: Vector2i, radius: int, new_id: int, durati
|
||||
var cell_3d = Vector3i(pos.x, 0, pos.y)
|
||||
var original = enhanced_gridmap.get_cell_item(cell_3d)
|
||||
|
||||
# PROTECTED FLOOR CHECK: avoid overwriting Start (1), Safe (2), Finish (3), Wall (4), or PowerUp Stand (15)
|
||||
if original != new_id and not original in [1, 2, 3, 4, 15]:
|
||||
# PROTECTED FLOOR CHECK: avoid overwriting Start (1), Safe (2), Finish (3), Wall (4), Freeze (5), or PowerUp Stand (15)
|
||||
if original != new_id and not original in [1, 2, 3, 4, 5, 15]:
|
||||
# PRE-FIX: If we capture a "Hole" (Void or Pickup 7-14) here, we must record it as Floor (0)
|
||||
# so that we restore a valid floor later.
|
||||
if original == -1 or (original >= 7 and original <= 14):
|
||||
|
||||
Reference in New Issue
Block a user