From 7ca7780d6ac4f0470d4d96e6485597b62fa05e3c Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Wed, 11 Oct 2023 08:27:17 -0400 Subject: [PATCH] some necromancer adjustements --- Scenes/Props/candle_1.tscn | 6 ++-- Scenes/Spawnables/necromancer_spawnable.tscn | 30 ++++++++++++++++---- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/Scenes/Props/candle_1.tscn b/Scenes/Props/candle_1.tscn index 4c9e262..f65ba7e 100644 --- a/Scenes/Props/candle_1.tscn +++ b/Scenes/Props/candle_1.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://dgtscjxcqoxls"] +[gd_scene load_steps=9 format=3 uid="uid://cl7w6ndvons1a"] [ext_resource type="Texture2D" uid="uid://dvtntmnfw83ms" path="res://Assets/RF_Catacombs_v1.0/candleA_02.png" id="1_2uqmc"] [ext_resource type="Texture2D" uid="uid://biomqy201h4yk" path="res://Assets/RF_Catacombs_v1.0/candleA_03.png" id="2_dgnwu"] @@ -26,12 +26,12 @@ animations = [{ "speed": 8.0 }] -[sub_resource type="Gradient" id="Gradient_sm8o0"] +[sub_resource type="Gradient" id="Gradient_uxp8x"] offsets = PackedFloat32Array(0, 0.736573) colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_mton1"] -gradient = SubResource("Gradient_sm8o0") +gradient = SubResource("Gradient_uxp8x") fill = 1 fill_from = Vector2(0.5, 0.5) diff --git a/Scenes/Spawnables/necromancer_spawnable.tscn b/Scenes/Spawnables/necromancer_spawnable.tscn index 435b53c..2209578 100644 --- a/Scenes/Spawnables/necromancer_spawnable.tscn +++ b/Scenes/Spawnables/necromancer_spawnable.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=39 format=3 uid="uid://bap3ds6o3m4i1"] +[gd_scene load_steps=41 format=3 uid="uid://bap3ds6o3m4i1"] [ext_resource type="PackedScene" uid="uid://kkfxguj0lr5a" path="res://Scenes/Spawnables/template_spawnable.tscn" id="1_scjiu"] [ext_resource type="Texture2D" uid="uid://ckeayob6k71b1" path="res://Assets/Witch/noBKG_WitchIdle_strip.png" id="2_ryiw4"] @@ -227,13 +227,22 @@ radius = 6.0 [sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_apenn"] polygon = PackedVector2Array(0, -18, -6, -10, -7, -2, -6, 6, -2, 12, 2, 9, 6, 3, 6, -5, 4, -15) +[sub_resource type="Gradient" id="Gradient_sm8o0"] +offsets = PackedFloat32Array(0, 0.736573) +colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1) + +[sub_resource type="GradientTexture2D" id="GradientTexture2D_tqkl0"] +gradient = SubResource("Gradient_sm8o0") +fill = 1 +fill_from = Vector2(0.5, 0.5) + [node name="NecromancerSpawnable" instance=ExtResource("1_scjiu")] -maxHp = 40 +maxHp = 20 speed = 2000.0 priority = 10 -expReward = 100 -BludGen = 10.0 -cost = 75 +expReward = 150 +BludGen = 5.0 +cost = 100 canAttack = false monsterName = "Necromancer" monsterIcon = SubResource("AtlasTexture_ac0gw") @@ -260,3 +269,14 @@ script = ExtResource("5_325bs") [node name="LightOccluder2D" parent="." index="7"] occluder = SubResource("OccluderPolygon2D_apenn") + +[node name="PointLight2D" type="PointLight2D" parent="." index="8"] +position = Vector2(0, -13) +color = Color(0.929412, 0, 0.184314, 1) +energy = 0.75 +shadow_enabled = true +shadow_filter = 2 +shadow_filter_smooth = 20.5 +shadow_item_cull_mask = 2 +texture = SubResource("GradientTexture2D_tqkl0") +texture_scale = 1.5