damage on cursor bullet

This commit is contained in:
SondreElg
2025-10-05 13:21:32 +02:00
parent 34843470c4
commit ebd9ccad8c
11 changed files with 102 additions and 51 deletions

View File

@@ -33,7 +33,7 @@ func activate(world, activator):
cooldown_timer.start()
func _activate(world, activator, position):
func _activate(_world, activator, position):
var katana = KatanaSlash.instantiate()
var target = activator.get_target_pos()
activator.add_child(katana) # KatanaSlash might have to be detached later?
@@ -48,7 +48,7 @@ func _activate(world, activator, position):
katana.get_node("Area2D").set_collision_layer_value(2, false)
else:
assert(false, "who are you, activator?")
world.add_child(katana)
# world.add_child(katana)
func discard(world, activator, do_ability):
ammo = max_ammo