way too many changes to list, oops. big rewrite.

This commit is contained in:
2025-05-27 03:38:03 +10:00
parent 16951a9beb
commit 4a21701a35
663 changed files with 7389 additions and 3283 deletions

View File

@ -0,0 +1,12 @@
class_name OverclockTower extends Tower
func shoot() -> void:
#affector.apply_effect(effect, target_finder.targets)
for tower: TowerBase in get_tree().get_nodes_in_group("TowerBases"):
if tower.tower and tower.tower.stats != stats:
if tower.global_position.distance_to(global_position) <= target_range:
tower.tower.small_speed_buff_timer += time_between_shots
animator.play("shoot")
audio_player.play()
if is_multiplayer_authority():
networked_shoot.rpc()

View File

@ -0,0 +1 @@
uid://c4bu4hlgifqom

View File

@ -0,0 +1,27 @@
[gd_scene load_steps=6 format=3 uid="uid://d3qabcosmk2q5"]
[ext_resource type="PackedScene" uid="uid://kioik38usbqj" path="res://Scenes/Towers/area_tower.tscn" id="1_85dnw"]
[ext_resource type="Script" uid="uid://c4bu4hlgifqom" path="res://Towers/Overclock/overclock_tower.gd" id="2_uhx1y"]
[ext_resource type="Script" uid="uid://djp7tepdsda8w" path="res://Scripts/effect.gd" id="3_gt5qf"]
[ext_resource type="Script" uid="uid://chy7bx8dlwgs0" path="res://Scripts/StatusEffects/status_effect.gd" id="4_d15h4"]
[sub_resource type="Resource" id="Resource_50mhx"]
script = ExtResource("3_gt5qf")
damage = 0
status_effects = Array[ExtResource("4_d15h4")]([])
metadata/_custom_type_script = "uid://djp7tepdsda8w"
[node name="Tower" instance=ExtResource("1_85dnw")]
script = ExtResource("2_uhx1y")
turns_to_aim = false
effect = SubResource("Resource_50mhx")
[node name="Pitch" parent="." index="1"]
visible = false
[node name="Yaw" parent="." index="2"]
visible = false
[node name="CSGBox3D" type="CSGBox3D" parent="." index="7"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.51387, 0)
size = Vector3(1, 2.02774, 1)

View File

@ -0,0 +1,30 @@
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://v13yoous66bc"]
[ext_resource type="Script" uid="uid://yjb0uv6og430" path="res://Scripts/Resources/stat_attribute.gd" id="1_0swcp"]
[ext_resource type="Script" uid="uid://dg7gxxqfqxcmc" path="res://Scripts/Resources/card_text.gd" id="2_fax6y"]
[sub_resource type="Resource" id="Resource_0swcp"]
script = ExtResource("1_0swcp")
key = "Fire Delay"
value = 0.0
metadata/_custom_type_script = "uid://yjb0uv6og430"
[sub_resource type="Resource" id="Resource_fax6y"]
script = ExtResource("1_0swcp")
key = "Damage"
value = 0.0
metadata/_custom_type_script = "uid://yjb0uv6og430"
[sub_resource type="Resource" id="Resource_v0e26"]
script = ExtResource("1_0swcp")
key = "Range"
value = 4.0
metadata/_custom_type_script = "uid://yjb0uv6og430"
[resource]
script = ExtResource("2_fax6y")
target_type = 1
energy_type = 0
attributes = Array[ExtResource("1_0swcp")]([SubResource("Resource_0swcp"), SubResource("Resource_fax6y"), SubResource("Resource_v0e26")])
text = "Speeds up the fire rate of towers within /Range\\m by 10%"
metadata/_custom_type_script = "uid://dg7gxxqfqxcmc"