17 lines
317 B
GDScript
17 lines
317 B
GDScript
class_name Attachment extends Node3D
|
|
|
|
|
|
var stats: AttachmentStats
|
|
|
|
func init_attachment(stats: AttachmentStats):
|
|
self.stats = stats
|
|
|
|
func get_damage()->int:
|
|
return stats.damage.value
|
|
|
|
func get_fire_rate()->int:
|
|
return stats.fire_rate.value
|
|
|
|
func get_hit_effects()-> Array[Effect]:
|
|
return stats.hit_effects.value
|