chore: gdformat bleed changes
This commit is contained in:
@@ -20,7 +20,6 @@ var modifiers: Array[EnemyMod] = []
|
||||
@onready var label: Label = $HBoxContainer/Label
|
||||
@onready var effect_container: HBoxContainer = $HBoxContainer/EffectContainer
|
||||
|
||||
|
||||
var player: Player
|
||||
var enemy_name: String
|
||||
var target: Node2D
|
||||
@@ -34,6 +33,7 @@ var _path_update_timer: float = 0.0
|
||||
var _compute_cache: KeyedCache = KeyedCache.new()
|
||||
var _effects_visible = []
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
enemy_name = _gen_name()
|
||||
match enemy_rarity:
|
||||
@@ -67,6 +67,7 @@ func _find_player():
|
||||
func _gen_name() -> String:
|
||||
return "Unnamed enemy"
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
for effect in effects:
|
||||
if effect in _effects_visible:
|
||||
@@ -75,7 +76,7 @@ func _process(delta: float) -> void:
|
||||
effect_sprite.texture = preload("res://assets/sprites/small_bleed_icon.png")
|
||||
effect_container.add_child(effect_sprite)
|
||||
_effects_visible.append(effect)
|
||||
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if not target:
|
||||
|
Reference in New Issue
Block a user