game: add weapon mod system

This commit is contained in:
2025-08-21 19:49:07 +02:00
parent 3e12c386c2
commit 1d75a850bf
5 changed files with 71 additions and 5 deletions

View File

@@ -29,6 +29,11 @@ func _ready() -> void:
if not weapon:
weapon = WEAPON_SWORD.instantiate()
add_child(weapon)
var mod = WeaponModBase.new()
mod.mod_property = "attack_damage"
mod.mod_value = 10.0
mod.mod_type = WeaponModBase.ModType.ADDITIVE
weapon.add_mod(mod)
func _physics_process(delta: float) -> void: