fix(candy-survival): disable Ghost special tile spawns when dropping the Tekton in Candy Survival

This commit is contained in:
2026-07-08 17:34:10 +08:00
parent f407551d60
commit 5cf08f249b
+1 -4
View File
@@ -569,11 +569,8 @@ func spawn_powerups_around(center: Vector2i, force_powerups: bool = true, only_c
# Spawn ONLY common tiles (7-10) in Stop n Go mode (User Request) # Spawn ONLY common tiles (7-10) in Stop n Go mode (User Request)
item_id = rng.randi_range(7, 10) item_id = rng.randi_range(7, 10)
elif LobbyManager.is_game_mode(GameMode.Mode.CANDY_SURVIVAL): elif LobbyManager.is_game_mode(GameMode.Mode.CANDY_SURVIVAL):
# Candy Survival mode: mostly common tiles, but ghost (14) can spawn too. # Candy Survival mode: spawn only normal tiles
if rng.randf() < 0.85:
item_id = rng.randi_range(7, 10) item_id = rng.randi_range(7, 10)
else:
item_id = 14 # Ghost powerup only
else: else:
# Other modes: 80% Chance for Common Tile (7-10), 20% for PowerUp # Other modes: 80% Chance for Common Tile (7-10), 20% for PowerUp
if rng.randf() < 0.8: if rng.randf() < 0.8: