added a second slot you can equip a weapon to

This commit is contained in:
2023-11-28 16:52:15 +11:00
parent 66f7131c1b
commit d5d832f3f2
45 changed files with 722 additions and 104 deletions

View File

@@ -27,8 +27,10 @@ func _process(delta: float) -> void:
func _physics_process(_delta: float) -> void:
if trigger_held and time_since_firing >= current_time_between_shots:
if trigger_held and current_energy >= energy_cost and time_since_firing >= current_time_between_shots:
time_since_firing -= current_time_between_shots
current_energy -= energy_cost
energy_changed.emit(current_energy)
shoot()
networked_shoot.rpc()