]> purplebirdman git - frog-ninja.git/blob - asset/weapon/sword_weapon_model.gd
Squashed commit of the following:
[frog-ninja.git] / asset / weapon / sword_weapon_model.gd
1 extends WeaponModel
2
3
4 @onready var weapon: Weapon = $".."
5 @onready var hurtbox: Hurtbox = $Hurtbox
6
7
8 func _ready() -> void:
9         hurtbox.weapon = weapon
10
11
12 func set_collision_layer(i: int):
13         hurtbox.collision_layer = i
14
15
16 func set_collision_mask(i: int):
17         hurtbox.collision_mask = i
18
19
20 func set_attacking(b: bool):
21         hurtbox.is_attacking = b
22
23
24 func reset():
25         hurtbox.ignore_list.clear()