game: add enemy mods
This commit is contained in:
@@ -37,6 +37,10 @@ func _on_timer_timeout() -> void:
|
||||
var new_enemy = next_enemy.instantiate()
|
||||
new_enemy.position = _get_spawn_pos()
|
||||
new_enemy.target = target
|
||||
if randf() < 0.1:
|
||||
new_enemy.enemy_rarity = GlobalConst.Rarity.RARE
|
||||
if randf() < 0.1:
|
||||
new_enemy.enemy_rarity = GlobalConst.Rarity.EPIC
|
||||
if is_instance_of(new_enemy, EnemySlimeSmall):
|
||||
var slime_color: Color = SLIME_COLOR_VARIATIONS.pick_random()
|
||||
new_enemy.color = slime_color
|
||||
|
Reference in New Issue
Block a user