feat: Implement tile scarcity model for tile generation and power-up inventory UI for player interaction.
This commit is contained in:
@@ -461,8 +461,11 @@ func spawn_powerups_around(center: Vector2i, force_powerups: bool = true):
|
||||
if rng.randf() < 0.7:
|
||||
item_id = rng.randi_range(7, 10)
|
||||
else:
|
||||
# 30% Chance for PowerUp (11-14)
|
||||
item_id = rng.randi_range(11, 14)
|
||||
# 30% Chance for PowerUp (Exclude Wall 13 only in Stop n Go)
|
||||
if LobbyManager.game_mode == "Stop n Go":
|
||||
item_id = [11, 12, 14].pick_random()
|
||||
else:
|
||||
item_id = rng.randi_range(11, 14)
|
||||
|
||||
var cell = Vector3i(pos.x, 1, pos.y)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user