randomgeon/combat/weapons/_scripts/melee_weapon_component.gd

18 lines
No EOL
418 B
GDScript

@icon("res://assets/editor/64x64/fc728.png")
extends WeaponComponent
class_name MeleeWeaponComponent
var stats = {
"piercing": 3,
}
var combined_stats = {}
func _init() -> void:
Log.pr("MeleeWeaponComponent initialized")
super._init()
# Combine the base stats with the stats from the parent class
combined_stats = base_stats.duplicate()
combined_stats.merge(stats)
Log.pr("Combined stats: ", combined_stats)