enabled enforced static typing
This commit is contained in:
17
PCs/Mage/ClassCards/Refrigerator/card_refrigerator.tres
Normal file
17
PCs/Mage/ClassCards/Refrigerator/card_refrigerator.tres
Normal file
@ -0,0 +1,17 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=6 format=3 uid="uid://ds8qx4ggmqetk"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_84afc"]
|
||||
[ext_resource type="Resource" uid="uid://st0qrut5nxrm" path="res://PCs/Mage/ClassCards/Refrigerator/tower_stats.tres" id="3_bihii"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0vi11kj3lxng" path="res://PCs/Mage/ClassCards/Refrigerator/weapon_refrigerator.tscn" id="4_0oufq"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqaynyhxdr4to" path="res://PCs/Mage/ClassCards/Refrigerator/tower_refrigerator.tscn" id="4_7x6qx"]
|
||||
[ext_resource type="Resource" uid="uid://5l758yxfpi1e" path="res://PCs/Mage/ClassCards/Refrigerator/weapon_stats.tres" id="5_dqmyh"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_84afc")
|
||||
rarity = 1
|
||||
faction = 0
|
||||
turret_scene = ExtResource("4_7x6qx")
|
||||
weapon_scene = ExtResource("4_0oufq")
|
||||
weapon_stats = ExtResource("5_dqmyh")
|
||||
tower_stats = ExtResource("3_bihii")
|
||||
display_name = "Refrigerator"
|
19
PCs/Mage/ClassCards/Refrigerator/cold_particles.tres
Normal file
19
PCs/Mage/ClassCards/Refrigerator/cold_particles.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://ckung57mij7ue"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_eiw3y"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0, 0.325203, 1)
|
||||
colors = PackedColorArray(0.827004, 0.826193, 0.823983, 1, 0.338333, 0.810555, 0.85349, 1, 0.0352941, 0.803922, 0.858824, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_arw7j"]
|
||||
gradient = SubResource("Gradient_eiw3y")
|
||||
|
||||
[resource]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 15.0
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 0.3
|
||||
scale_max = 0.3
|
||||
color_ramp = SubResource("GradientTexture1D_arw7j")
|
BIN
PCs/Mage/ClassCards/Refrigerator/fridge.glb
Normal file
BIN
PCs/Mage/ClassCards/Refrigerator/fridge.glb
Normal file
Binary file not shown.
47
PCs/Mage/ClassCards/Refrigerator/fridge.glb.import
Normal file
47
PCs/Mage/ClassCards/Refrigerator/fridge.glb.import
Normal file
@ -0,0 +1,47 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://c6bawh1fc8dpm"
|
||||
path="res://.godot/imported/fridge.glb-47f211bbe32ad1ebb3be936755294b64.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://PCs/Mage/ClassCards/Refrigerator/fridge.glb"
|
||||
dest_files=["res://.godot/imported/fridge.glb-47f211bbe32ad1ebb3be936755294b64.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type="Node3D"
|
||||
nodes/root_name="Scene Root"
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={
|
||||
"meshes": {
|
||||
"fridge_Cube": {
|
||||
"generate/lightmap_uv": 0,
|
||||
"generate/lods": 0,
|
||||
"generate/shadow_meshes": 0,
|
||||
"lods/normal_merge_angle": 60.0,
|
||||
"lods/normal_split_angle": 25.0,
|
||||
"save_to_file/enabled": false,
|
||||
"save_to_file/make_streamable": "",
|
||||
"save_to_file/path": "res://fridge_mesh.res"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
BIN
PCs/Mage/ClassCards/Refrigerator/fridge.png
Normal file
BIN
PCs/Mage/ClassCards/Refrigerator/fridge.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
34
PCs/Mage/ClassCards/Refrigerator/fridge.png.import
Normal file
34
PCs/Mage/ClassCards/Refrigerator/fridge.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cs77k4nnd1tql"
|
||||
path="res://.godot/imported/fridge.png-fdbc4474eea208805709cb42c2d462ad.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://PCs/Mage/ClassCards/Refrigerator/fridge.png"
|
||||
dest_files=["res://.godot/imported/fridge.png-fdbc4474eea208805709cb42c2d462ad.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
BIN
PCs/Mage/ClassCards/Refrigerator/fridge_mesh.res
Normal file
BIN
PCs/Mage/ClassCards/Refrigerator/fridge_mesh.res
Normal file
Binary file not shown.
14
PCs/Mage/ClassCards/Refrigerator/tower_refrigerator.gd
Normal file
14
PCs/Mage/ClassCards/Refrigerator/tower_refrigerator.gd
Normal file
@ -0,0 +1,14 @@
|
||||
class_name RefrigeratorTower extends RangeAffectingTower
|
||||
|
||||
@export var particles: GPUParticles3D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
particles.process_material.emission_ring_radius = target_range
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusSlow = StatusSlow.new()
|
||||
status.stats = status_stats
|
||||
return status
|
52
PCs/Mage/ClassCards/Refrigerator/tower_refrigerator.tscn
Normal file
52
PCs/Mage/ClassCards/Refrigerator/tower_refrigerator.tscn
Normal file
@ -0,0 +1,52 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bqaynyhxdr4to"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bi6b2r6wek7he" path="res://Scenes/Towers/range_affecting_tower.tscn" id="1_4hvoi"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="2_u4dux"]
|
||||
[ext_resource type="Script" path="res://PCs/Mage/ClassCards/Refrigerator/tower_refrigerator.gd" id="2_yhcmv"]
|
||||
[ext_resource type="Resource" uid="uid://st0qrut5nxrm" path="res://PCs/Mage/ClassCards/Refrigerator/tower_stats.tres" id="3_jjh3a"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://bwvls7rj0oqyv" path="res://PCs/Mage/ClassCards/Refrigerator/fridge_mesh.res" id="5_mrvl8"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_lm6vx"]
|
||||
offsets = PackedFloat32Array(0, 0.682927, 1)
|
||||
colors = PackedColorArray(0, 1, 1, 1, 0.430894, 1, 1, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_wv576"]
|
||||
gradient = SubResource("Gradient_lm6vx")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ijefe"]
|
||||
spread = 180.0
|
||||
flatness = 1.0
|
||||
initial_velocity_min = 7.0
|
||||
initial_velocity_max = 7.0
|
||||
gravity = Vector3(0, -8, 0)
|
||||
tangential_accel_min = 6.0
|
||||
tangential_accel_max = 6.0
|
||||
damping_min = 10.0
|
||||
damping_max = 10.0
|
||||
color_ramp = SubResource("GradientTexture1D_wv576")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_niq28"]
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_btdsr"]
|
||||
material = SubResource("StandardMaterial3D_niq28")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="RefrigeratorTower" node_paths=PackedStringArray("particles") instance=ExtResource("1_4hvoi")]
|
||||
script = ExtResource("2_yhcmv")
|
||||
particles = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("2_u4dux")
|
||||
stats = ExtResource("3_jjh3a")
|
||||
|
||||
[node name="Pitch" parent="." index="1"]
|
||||
visible = false
|
||||
|
||||
[node name="Yaw" parent="." index="2"]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.53317, 0)
|
||||
mesh = ExtResource("5_mrvl8")
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="." index="5"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.418807, 0)
|
||||
amount = 32
|
||||
process_material = SubResource("ParticleProcessMaterial_ijefe")
|
||||
draw_pass_1 = SubResource("BoxMesh_btdsr")
|
25
PCs/Mage/ClassCards/Refrigerator/tower_stats.tres
Normal file
25
PCs/Mage/ClassCards/Refrigerator/tower_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://st0qrut5nxrm"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_wa26m"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_w4q6a"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_wa26m")
|
||||
key = "Fire Delay"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_wa26m")
|
||||
key = "Damage"
|
||||
value = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_wa26m")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_w4q6a")
|
||||
target_type = 1
|
||||
attributes = Array[ExtResource("1_wa26m")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Applies Cold to enemies around itself"
|
21
PCs/Mage/ClassCards/Refrigerator/weapon_refrigerator.tscn
Normal file
21
PCs/Mage/ClassCards/Refrigerator/weapon_refrigerator.tscn
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b0vi11kj3lxng"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_g3e4a"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="2_pranv"]
|
||||
[ext_resource type="Resource" uid="uid://5l758yxfpi1e" path="res://PCs/Mage/ClassCards/Refrigerator/weapon_stats.tres" id="3_ihljm"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Mechanic/ClassCards/GlueLauncher/glue_gun.png" id="4_y5ps0"]
|
||||
[ext_resource type="Material" uid="uid://ckung57mij7ue" path="res://PCs/Mage/ClassCards/Refrigerator/cold_particles.tres" id="5_8q1lc"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0yua2"]
|
||||
atlas = ExtResource("4_y5ps0")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[node name="RefrigeratorWeapon" instance=ExtResource("1_g3e4a")]
|
||||
status_stats = ExtResource("2_pranv")
|
||||
stats = ExtResource("3_ihljm")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_0yua2")
|
||||
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("5_8q1lc")
|
30
PCs/Mage/ClassCards/Refrigerator/weapon_stats.tres
Normal file
30
PCs/Mage/ClassCards/Refrigerator/weapon_stats.tres
Normal file
@ -0,0 +1,30 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://5l758yxfpi1e"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_dxffl"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_wny82"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_dxffl")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_dxffl")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_dxffl")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_voaa5"]
|
||||
script = ExtResource("1_dxffl")
|
||||
key = "Energy"
|
||||
value = 7.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_wny82")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_dxffl")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_voaa5")])
|
||||
text = "Hold to apply Cold to enemies in front of you"
|
Reference in New Issue
Block a user