23 lines
427 B
GDScript
23 lines
427 B
GDScript
class_name Equipment extends Node3D
|
|
|
|
|
|
var stats: EquipmentStats
|
|
|
|
func init_equipment(stats: EquipmentStats):
|
|
self.stats = stats;
|
|
|
|
func get_armor()-> int:
|
|
return stats.armor.value
|
|
|
|
func get_max_health()-> int:
|
|
return stats.max_health.value
|
|
|
|
func get_max_shield()-> int:
|
|
return stats.max_shield.value
|
|
|
|
func get_evement_speed()-> int:
|
|
return stats.movementSpeed.value
|
|
|
|
func get_damage()-> int:
|
|
return stats.damage.value
|