mekton boss npc uses static tekton mesh w/ emission color cycling; updated bot ghost check
This commit is contained in:
@@ -62,16 +62,16 @@ func _get_candy_survival_manager() -> Node:
|
||||
return null
|
||||
|
||||
func _bot_has_ghost_powerup() -> bool:
|
||||
"""Check if the bot has a ghost powerup in its SpecialTilesManager inventory."""
|
||||
var stm = actor.get_node_or_null("SpecialTilesManager")
|
||||
if not stm:
|
||||
"""Check if the bot has native ghost charges in CandySurvivalManager."""
|
||||
var gm = _get_candy_survival_manager()
|
||||
if not gm:
|
||||
return false
|
||||
return stm.inventory.get(stm.SpecialEffect.INVISIBLE_MODE, false)
|
||||
var pid = actor.get("peer_id") if "peer_id" in actor else actor.name.to_int()
|
||||
return gm.player_ghosts.get(pid, 0) > 0
|
||||
|
||||
func _is_bot_ghost_active() -> bool:
|
||||
"""Check if the bot is currently in ghost (invisible) mode."""
|
||||
return actor.get("is_invisible") == true
|
||||
|
||||
func _is_overlay_unsafe(pos: Vector2i) -> bool:
|
||||
"""True if the cell carries a sticky or telegraphed overlay on layer 2."""
|
||||
if not enhanced_gridmap:
|
||||
|
||||
Reference in New Issue
Block a user