juiced the camera a bit and limited weapon ammo
This commit is contained in:
@@ -44,7 +44,9 @@ func _process(delta: float) -> void:
|
||||
|
||||
func release_trigger():
|
||||
super.release_trigger()
|
||||
if targets.size() > 0 and time_since_firing >= time_between_shots:
|
||||
if targets.size() > 0 and current_energy >= energy_cost and time_since_firing >= time_between_shots:
|
||||
current_energy -= energy_cost
|
||||
energy_changed.emit(current_energy)
|
||||
time_since_firing -= time_between_shots
|
||||
shoot()
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://d2yo07m2mp2mp"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://d2yo07m2mp2mp"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_1le4i"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_0trth"]
|
||||
@@ -18,8 +18,13 @@ script = ExtResource("1_1le4i")
|
||||
key = "Damage"
|
||||
value = 8.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ymyed"]
|
||||
script = ExtResource("1_1le4i")
|
||||
key = "Energy"
|
||||
value = 30.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_0trth")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_1le4i")]([SubResource("Resource_4fjm2"), SubResource("Resource_uwj4j"), SubResource("Resource_6qv5v")])
|
||||
attributes = Array[ExtResource("1_1le4i")]([SubResource("Resource_4fjm2"), SubResource("Resource_uwj4j"), SubResource("Resource_6qv5v"), SubResource("Resource_ymyed")])
|
||||
text = "Every /Fire Delay\\s, hold to target up to /Target Limit\\ enemies and release to fire homing rockets that deal /Damage\\ damage"
|
||||
|
Reference in New Issue
Block a user