conforms file names to consistant standard
This commit is contained in:
15
scripts/weapons/status_applying_weapon.gd
Normal file
15
scripts/weapons/status_applying_weapon.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
class_name StatusApplyingWeapon
|
||||
extends HitscanWeapon
|
||||
|
||||
@export var status_stats: StatusStats
|
||||
|
||||
|
||||
func hit(hitbox: Hitbox, hit_pos: Vector3) -> void:
|
||||
super.hit(hitbox, hit_pos)
|
||||
hitbox.add_effect(build_status_object())
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusEffect = StatusEffect.new()
|
||||
status.stats = status_stats
|
||||
return status
|
||||
Reference in New Issue
Block a user