29 lines
760 B
GDScript
29 lines
760 B
GDScript
extends Node3D
|
|
|
|
class_name Mech
|
|
|
|
var boots: Boots
|
|
var arms: Arms
|
|
var hydraulics: Hydraulics
|
|
|
|
|
|
func init_mech(boots: Boots, arms: Arms, hydraulics: Hydraulics):
|
|
self.boots = boots
|
|
self.arms = arms
|
|
self.hydraulics= hydraulics
|
|
|
|
func get_max_health()-> int:
|
|
return boots.get_max_health() +arms.get_max_health()+hydraulics.get_max_health()
|
|
|
|
func get_armor()-> int:
|
|
return boots.get_armor()+arms.get_armor()+hydraulics.get_armor()
|
|
|
|
func get_max_shield()-> int:
|
|
return boots.get_max_shield()+arms.get_max_shield()+hydraulics.get_max_shield()
|
|
|
|
func get_damage()-> int:
|
|
return boots.get_damage()+arms.get_damage()+hydraulics.get_damage()
|
|
|
|
func get_movement_speed()-> int:
|
|
return boots.get_evement_speed()+arms.get_evement_speed()+hydraulics.get_evement_speed()
|