enabled enforced static typing
This commit is contained in:
17
PCs/Mechanic/ClassCards/Flamethrower/card_flamethrower.tres
Normal file
17
PCs/Mechanic/ClassCards/Flamethrower/card_flamethrower.tres
Normal file
@ -0,0 +1,17 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=6 format=3 uid="uid://dg4pjt47q8xpw"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_xmwih"]
|
||||
[ext_resource type="Resource" uid="uid://cdtjbxs21peqg" path="res://PCs/Mechanic/ClassCards/Flamethrower/tower_stats.tres" id="3_sjxkl"]
|
||||
[ext_resource type="PackedScene" uid="uid://dhv7m4lky7bd8" path="res://PCs/Mechanic/ClassCards/Flamethrower/weapon_flamethrower.tscn" id="4_800j1"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkoj1766ygo3f" path="res://PCs/Mechanic/ClassCards/Flamethrower/tower_flamethrower.tscn" id="4_rgkdc"]
|
||||
[ext_resource type="Resource" uid="uid://yjknwdimtm8g" path="res://PCs/Mechanic/ClassCards/Flamethrower/weapon_stats.tres" id="5_qi4e4"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_xmwih")
|
||||
rarity = 2
|
||||
faction = 0
|
||||
turret_scene = ExtResource("4_rgkdc")
|
||||
weapon_scene = ExtResource("4_800j1")
|
||||
weapon_stats = ExtResource("5_qi4e4")
|
||||
tower_stats = ExtResource("3_sjxkl")
|
||||
display_name = "Flamethrower"
|
19
PCs/Mechanic/ClassCards/Flamethrower/flame_particles.tres
Normal file
19
PCs/Mechanic/ClassCards/Flamethrower/flame_particles.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://gyeamtekshor"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_eiw3y"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0, 0.178862, 0.455285, 1)
|
||||
colors = PackedColorArray(0.94, 0.830333, 0, 1, 1, 0.222923, 0.00252032, 1, 0.517571, 0.0343237, 0.0001635, 1, 0.0352941, 0, 0, 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/Mechanic/ClassCards/Flamethrower/flamethrower.png
Normal file
BIN
PCs/Mechanic/ClassCards/Flamethrower/flamethrower.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
34
PCs/Mechanic/ClassCards/Flamethrower/flamethrower.png.import
Normal file
34
PCs/Mechanic/ClassCards/Flamethrower/flamethrower.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://33ebstkmuw2s"
|
||||
path="res://.godot/imported/flamethrower.png-4e0bfe40fbd4f77b77136006bb324ee0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://PCs/Mechanic/ClassCards/Flamethrower/flamethrower.png"
|
||||
dest_files=["res://.godot/imported/flamethrower.png-4e0bfe40fbd4f77b77136006bb324ee0.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/Mechanic/ClassCards/Flamethrower/flamethrower_mesh.res
Normal file
BIN
PCs/Mechanic/ClassCards/Flamethrower/flamethrower_mesh.res
Normal file
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
class_name FlamethrowerTower extends ShapecastTower
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusDoT = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
58
PCs/Mechanic/ClassCards/Flamethrower/tower_flamethrower.tscn
Normal file
58
PCs/Mechanic/ClassCards/Flamethrower/tower_flamethrower.tscn
Normal file
@ -0,0 +1,58 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://dkoj1766ygo3f"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://8uxu72vjo0cv" path="res://Scenes/Towers/shapecast_tower.tscn" id="1_jagpf"]
|
||||
[ext_resource type="Script" path="res://PCs/Mechanic/ClassCards/Flamethrower/tower_flamethrower.gd" id="2_7vewc"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="3_aop2h"]
|
||||
[ext_resource type="Resource" uid="uid://cdtjbxs21peqg" path="res://PCs/Mechanic/ClassCards/Flamethrower/tower_stats.tres" id="4_by7c8"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://b4p0d4y8fdeox" path="res://PCs/Mechanic/ClassCards/Flamethrower/flamethrower_mesh.res" id="5_tc7nr"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_r367g"]
|
||||
size = Vector3(3, 2, 3)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_ay233"]
|
||||
offsets = PackedFloat32Array(0, 0.178862, 0.455285, 1)
|
||||
colors = PackedColorArray(0.94, 0.830333, 0, 1, 1, 0.222923, 0.00252032, 1, 0.517571, 0.0343237, 0.0001635, 1, 0.0352941, 0, 0, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_7rrxx"]
|
||||
gradient = SubResource("Gradient_ay233")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_r7587"]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 15.0
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
color_ramp = SubResource("GradientTexture1D_7rrxx")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_p8aw8"]
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_h4c6o"]
|
||||
material = SubResource("StandardMaterial3D_p8aw8")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="ShapecastTower" instance=ExtResource("1_jagpf")]
|
||||
script = ExtResource("2_7vewc")
|
||||
status_stats = ExtResource("3_aop2h")
|
||||
stats = ExtResource("4_by7c8")
|
||||
|
||||
[node name="Pitch" parent="." index="1"]
|
||||
visible = false
|
||||
|
||||
[node name="Yaw" parent="." index="2"]
|
||||
mesh = null
|
||||
|
||||
[node name="ShapeCast3D" parent="Yaw" index="0"]
|
||||
shape = SubResource("BoxShape3D_r367g")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 4
|
||||
|
||||
[node name="GPUParticles3D" parent="Yaw/ShapeCast3D" index="0"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.534666)
|
||||
amount = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_r7587")
|
||||
draw_pass_1 = SubResource("BoxMesh_h4c6o")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Yaw" index="1"]
|
||||
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0)
|
||||
mesh = ExtResource("5_tc7nr")
|
25
PCs/Mechanic/ClassCards/Flamethrower/tower_stats.tres
Normal file
25
PCs/Mechanic/ClassCards/Flamethrower/tower_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://cdtjbxs21peqg"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_ikp33"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_wptab"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_ikp33")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_ikp33")
|
||||
key = "Damage"
|
||||
value = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_ikp33")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_wptab")
|
||||
target_type = 1
|
||||
attributes = Array[ExtResource("1_ikp33")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Hold to apply Burning to enemies in front of you"
|
BIN
PCs/Mechanic/ClassCards/Flamethrower/untirastflametled.glb
Normal file
BIN
PCs/Mechanic/ClassCards/Flamethrower/untirastflametled.glb
Normal file
Binary file not shown.
@ -0,0 +1,47 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://dw1inygy0r6l6"
|
||||
path="res://.godot/imported/untirastflametled.glb-12e913b5d762efa0d6fd03caa51bf325.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://PCs/Mechanic/ClassCards/Flamethrower/untirastflametled.glb"
|
||||
dest_files=["res://.godot/imported/untirastflametled.glb-12e913b5d762efa0d6fd03caa51bf325.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": {
|
||||
"untirastflametled_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://flamethrower_mesh.res"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
@ -0,0 +1,7 @@
|
||||
class_name FlamethrowerWeapon extends ShapecastWeapon
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusDoT = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dhv7m4lky7bd8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_ovmdp"]
|
||||
[ext_resource type="Script" path="res://PCs/Mechanic/ClassCards/Flamethrower/weapon_flamethrower.gd" id="2_227rf"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="3_fqch8"]
|
||||
[ext_resource type="Resource" uid="uid://yjknwdimtm8g" path="res://PCs/Mechanic/ClassCards/Flamethrower/weapon_stats.tres" id="4_oafdt"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Mechanic/ClassCards/GlueLauncher/glue_gun.png" id="5_wdw3e"]
|
||||
[ext_resource type="Material" uid="uid://gyeamtekshor" path="res://PCs/Mechanic/ClassCards/Flamethrower/flame_particles.tres" id="6_idhp2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3hank"]
|
||||
atlas = ExtResource("5_wdw3e")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[node name="FlamethrowerWeapon" instance=ExtResource("1_ovmdp")]
|
||||
script = ExtResource("2_227rf")
|
||||
status_stats = ExtResource("3_fqch8")
|
||||
stats = ExtResource("4_oafdt")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_3hank")
|
||||
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("6_idhp2")
|
30
PCs/Mechanic/ClassCards/Flamethrower/weapon_stats.tres
Normal file
30
PCs/Mechanic/ClassCards/Flamethrower/weapon_stats.tres
Normal file
@ -0,0 +1,30 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://yjknwdimtm8g"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_xqcf3"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_drgp3"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Fire Delay"
|
||||
value = 0.4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rjpjf"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Energy"
|
||||
value = 6.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_drgp3")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_xqcf3")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_rjpjf")])
|
||||
text = "Hold to apply Burning to enemies in front of you"
|
Reference in New Issue
Block a user