first version of enitites damageables weapons item and effects workflow

This commit is contained in:
Strieglitz
2025-03-09 23:56:19 +01:00
parent b90e0369bf
commit cb65c3a266
42 changed files with 263 additions and 180 deletions

View File

@@ -0,0 +1 @@
class_name Arms extends Equipment

View File

@@ -0,0 +1 @@
class_name Boots extends Equipment

View File

@@ -0,0 +1 @@
class_name Hydraulics extends Equipment

View File

@@ -0,0 +1,28 @@
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()