enabled enforced static typing
This commit is contained in:
17
PCs/Mechanic/ClassCards/Reactor/card_reactor.tres
Normal file
17
PCs/Mechanic/ClassCards/Reactor/card_reactor.tres
Normal file
@ -0,0 +1,17 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=6 format=3 uid="uid://b3o112jw3loiu"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_0ciid"]
|
||||
[ext_resource type="Resource" uid="uid://cssdyxk8oefsd" path="res://PCs/Mechanic/ClassCards/Reactor/tower_stats.tres" id="3_7vuex"]
|
||||
[ext_resource type="PackedScene" uid="uid://yymj42pp6v1t" path="res://PCs/Mechanic/ClassCards/Reactor/weapon_reactor.tscn" id="3_de72q"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqrkn0vp2tmrh" path="res://PCs/Mechanic/ClassCards/Reactor/tower_reactor.tscn" id="4_1krig"]
|
||||
[ext_resource type="Resource" uid="uid://ipfr7emuarbj" path="res://PCs/Mechanic/ClassCards/Reactor/weapon_stats.tres" id="4_wilo7"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_0ciid")
|
||||
rarity = 4
|
||||
faction = 0
|
||||
turret_scene = ExtResource("4_1krig")
|
||||
weapon_scene = ExtResource("3_de72q")
|
||||
weapon_stats = ExtResource("4_wilo7")
|
||||
tower_stats = ExtResource("3_7vuex")
|
||||
display_name = "Reactor"
|
19
PCs/Mechanic/ClassCards/Reactor/radiation_particles.tres
Normal file
19
PCs/Mechanic/ClassCards/Reactor/radiation_particles.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://bjab6t4n0s5ac"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_eiw3y"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0, 0.0894309, 1)
|
||||
colors = PackedColorArray(0, 0.831373, 0, 1, 4.21144e-08, 0.320987, -4.81308e-08, 0.721201, 0, 0.254902, 0, 0)
|
||||
|
||||
[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/Mechanic/ClassCards/Reactor/reactor.glb
Normal file
BIN
PCs/Mechanic/ClassCards/Reactor/reactor.glb
Normal file
Binary file not shown.
47
PCs/Mechanic/ClassCards/Reactor/reactor.glb.import
Normal file
47
PCs/Mechanic/ClassCards/Reactor/reactor.glb.import
Normal file
@ -0,0 +1,47 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://ck330svnmd13b"
|
||||
path="res://.godot/imported/reactor.glb-78f0454309e4a59542393d127446955d.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://PCs/Mechanic/ClassCards/Reactor/reactor.glb"
|
||||
dest_files=["res://.godot/imported/reactor.glb-78f0454309e4a59542393d127446955d.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": {
|
||||
"reactor_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://reactor_mesh.res"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
BIN
PCs/Mechanic/ClassCards/Reactor/reactor.png
Normal file
BIN
PCs/Mechanic/ClassCards/Reactor/reactor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
35
PCs/Mechanic/ClassCards/Reactor/reactor.png.import
Normal file
35
PCs/Mechanic/ClassCards/Reactor/reactor.png.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b87fn56wyiqmj"
|
||||
path.s3tc="res://.godot/imported/reactor.png-3367435042a21b2db8f09b5b2802c987.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://PCs/Mechanic/ClassCards/Reactor/reactor.png"
|
||||
dest_files=["res://.godot/imported/reactor.png-3367435042a21b2db8f09b5b2802c987.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
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/Mechanic/ClassCards/Reactor/reactor_mesh.res
Normal file
BIN
PCs/Mechanic/ClassCards/Reactor/reactor_mesh.res
Normal file
Binary file not shown.
14
PCs/Mechanic/ClassCards/Reactor/tower_reactor.gd
Normal file
14
PCs/Mechanic/ClassCards/Reactor/tower_reactor.gd
Normal file
@ -0,0 +1,14 @@
|
||||
class_name ReactorTower 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: StatusDoT = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
52
PCs/Mechanic/ClassCards/Reactor/tower_reactor.tscn
Normal file
52
PCs/Mechanic/ClassCards/Reactor/tower_reactor.tscn
Normal file
@ -0,0 +1,52 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dqrkn0vp2tmrh"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bi6b2r6wek7he" path="res://Scenes/Towers/range_affecting_tower.tscn" id="1_afsqn"]
|
||||
[ext_resource type="Script" path="res://PCs/Mechanic/ClassCards/Reactor/tower_reactor.gd" id="2_6w83m"]
|
||||
[ext_resource type="Resource" uid="uid://dxlisoas4xlmo" path="res://Resources/StatusEffects/radioactive.tres" id="3_xhrj0"]
|
||||
[ext_resource type="Resource" uid="uid://cssdyxk8oefsd" path="res://PCs/Mechanic/ClassCards/Reactor/tower_stats.tres" id="4_rkhup"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://d280k3kx6hh7h" path="res://PCs/Mechanic/ClassCards/Reactor/reactor_mesh.res" id="5_it8eo"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_ranod"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0.252033, 1)
|
||||
colors = PackedColorArray(0, 0.533333, 0, 1, 0, 1, 0, 0.34902)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_iinp2"]
|
||||
gradient = SubResource("Gradient_ranod")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_q1hpa"]
|
||||
emission_shape = 6
|
||||
emission_ring_axis = Vector3(0, 1, 0)
|
||||
emission_ring_height = 0.1
|
||||
emission_ring_radius = 30.0
|
||||
emission_ring_inner_radius = 0.0
|
||||
gravity = Vector3(0, 3, 0)
|
||||
color_ramp = SubResource("GradientTexture1D_iinp2")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rl0f7"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_fr4f1"]
|
||||
material = SubResource("StandardMaterial3D_rl0f7")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="ReactorTower" node_paths=PackedStringArray("particles") instance=ExtResource("1_afsqn")]
|
||||
script = ExtResource("2_6w83m")
|
||||
particles = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("3_xhrj0")
|
||||
stats = ExtResource("4_rkhup")
|
||||
|
||||
[node name="Pitch" parent="." index="1"]
|
||||
visible = false
|
||||
|
||||
[node name="Yaw" parent="." index="2"]
|
||||
transform = Transform3D(0.55, 0, 0, 0, 0.55, 0, 0, 0, 0.55, 0, 0.13062, 0)
|
||||
mesh = ExtResource("5_it8eo")
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="." index="5"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.6, 0)
|
||||
amount = 12
|
||||
lifetime = 0.6
|
||||
process_material = SubResource("ParticleProcessMaterial_q1hpa")
|
||||
draw_pass_1 = SubResource("BoxMesh_fr4f1")
|
25
PCs/Mechanic/ClassCards/Reactor/tower_stats.tres
Normal file
25
PCs/Mechanic/ClassCards/Reactor/tower_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://cssdyxk8oefsd"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_peekg"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_8w61k"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_peekg")
|
||||
key = "Fire Delay"
|
||||
value = 2.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_peekg")
|
||||
key = "Damage"
|
||||
value = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_peekg")
|
||||
key = "Range"
|
||||
value = 20.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_8w61k")
|
||||
target_type = 1
|
||||
attributes = Array[ExtResource("1_peekg")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Slowly applies Radioactive to enemies around itself at a range of /Range\\m"
|
7
PCs/Mechanic/ClassCards/Reactor/weapon_reactor.gd
Normal file
7
PCs/Mechanic/ClassCards/Reactor/weapon_reactor.gd
Normal file
@ -0,0 +1,7 @@
|
||||
class_name ReactorWeapon extends ShapecastWeapon
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusDoT = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
31
PCs/Mechanic/ClassCards/Reactor/weapon_reactor.tscn
Normal file
31
PCs/Mechanic/ClassCards/Reactor/weapon_reactor.tscn
Normal file
@ -0,0 +1,31 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://yymj42pp6v1t"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_du35a"]
|
||||
[ext_resource type="Script" path="res://PCs/Mechanic/ClassCards/Reactor/weapon_reactor.gd" id="2_oe7hd"]
|
||||
[ext_resource type="Resource" uid="uid://dxlisoas4xlmo" path="res://Resources/StatusEffects/radioactive.tres" id="3_hsfwd"]
|
||||
[ext_resource type="Resource" uid="uid://ipfr7emuarbj" path="res://PCs/Mechanic/ClassCards/Reactor/weapon_stats.tres" id="4_83mkk"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Mechanic/ClassCards/GlueLauncher/glue_gun.png" id="5_bawfy"]
|
||||
[ext_resource type="Material" uid="uid://bjab6t4n0s5ac" path="res://PCs/Mechanic/ClassCards/Reactor/radiation_particles.tres" id="6_0sgt1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0dpt5"]
|
||||
atlas = ExtResource("5_bawfy")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_l4nsh"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_5o1ws"]
|
||||
material = SubResource("StandardMaterial3D_l4nsh")
|
||||
|
||||
[node name="ReactorWeapon" instance=ExtResource("1_du35a")]
|
||||
script = ExtResource("2_oe7hd")
|
||||
status_stats = ExtResource("3_hsfwd")
|
||||
stats = ExtResource("4_83mkk")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_0dpt5")
|
||||
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("6_0sgt1")
|
||||
draw_pass_1 = SubResource("BoxMesh_5o1ws")
|
30
PCs/Mechanic/ClassCards/Reactor/weapon_stats.tres
Normal file
30
PCs/Mechanic/ClassCards/Reactor/weapon_stats.tres
Normal file
@ -0,0 +1,30 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://ipfr7emuarbj"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_b6ubt"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_ahbcx"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_b6ubt")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_b6ubt")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_b6ubt")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b4805"]
|
||||
script = ExtResource("1_b6ubt")
|
||||
key = "Energy"
|
||||
value = 11.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_ahbcx")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_b6ubt")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_b4805")])
|
||||
text = "Hold to apply Radioactive to enemies in front of you"
|
Reference in New Issue
Block a user