fix(candy-survival): disable Ghost special tile spawns when dropping the Tekton in Candy Survival
This commit is contained in:
@@ -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)
|
||||
item_id = rng.randi_range(7, 10)
|
||||
elif LobbyManager.is_game_mode(GameMode.Mode.CANDY_SURVIVAL):
|
||||
# Candy Survival mode: mostly common tiles, but ghost (14) can spawn too.
|
||||
if rng.randf() < 0.85:
|
||||
item_id = rng.randi_range(7, 10)
|
||||
else:
|
||||
item_id = 14 # Ghost powerup only
|
||||
# Candy Survival mode: spawn only normal tiles
|
||||
item_id = rng.randi_range(7, 10)
|
||||
else:
|
||||
# Other modes: 80% Chance for Common Tile (7-10), 20% for PowerUp
|
||||
if rng.randf() < 0.8:
|
||||
|
||||
Reference in New Issue
Block a user