diff --git a/Game/Mobs/cobold.tscn b/Game/Mobs/cobold.tscn index af0cc2d..989265f 100644 --- a/Game/Mobs/cobold.tscn +++ b/Game/Mobs/cobold.tscn @@ -94,9 +94,17 @@ animations = [{ [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0gjha"] bg_color = Color(1, 0, 0, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c3t52"] bg_color = Color(0, 1, 0, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [node name="Cobold" type="Node2D"] script = ExtResource("1_ssdee") diff --git a/Game/Mobs/enemy.gd b/Game/Mobs/enemy.gd index a30cab1..56ae429 100644 --- a/Game/Mobs/enemy.gd +++ b/Game/Mobs/enemy.gd @@ -63,5 +63,12 @@ func set_character_data(): func adjust_health_bar() -> void: var health_bar = get_node("ProgressBar") - health_bar.value = health / current_health * 100 + if current_shield > 0: + health_bar.get("theme_override_styles/fill").bg_color = Color(0,0,1) + health_bar.get("theme_override_styles/background").bg_color = Color(0,1,0) + health_bar.value = shield / current_shield * 100 + else: + health_bar.get("theme_override_styles/fill").bg_color = Color(0,1,0) + health_bar.get("theme_override_styles/background").bg_color = Color(1,0,0) + health_bar.value = health / current_health * 100 pass diff --git a/Game/Mobs/forkman.tscn b/Game/Mobs/forkman.tscn index 885530d..901d033 100644 --- a/Game/Mobs/forkman.tscn +++ b/Game/Mobs/forkman.tscn @@ -95,9 +95,17 @@ animations = [{ [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pq2md"] bg_color = Color(1, 0, 0, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gxpsl"] bg_color = Color(0, 1, 0, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [node name="Forkman" type="Node2D"] script = ExtResource("1_pq2md") diff --git a/Game/Mobs/ork.tscn b/Game/Mobs/ork.tscn index daf6d5c..a86f6fd 100644 --- a/Game/Mobs/ork.tscn +++ b/Game/Mobs/ork.tscn @@ -94,9 +94,17 @@ animations = [{ [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n3bbi"] bg_color = Color(1, 0, 0, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2ea55"] bg_color = Color(0, 1, 0, 1) +corner_radius_top_left = 20 +corner_radius_top_right = 20 +corner_radius_bottom_right = 20 +corner_radius_bottom_left = 20 [node name="Ork" type="Node2D"] script = ExtResource("1_1ecd4")