Starting system

This commit is contained in:
Rendo 2025-11-28 19:39:31 +05:00
commit 57c178716e
10 changed files with 63 additions and 49 deletions

View file

@ -12,13 +12,12 @@ func on_body_entered(body: Node3D):
if body is DroppableWeapon:
if weapon_system.can_add(body.slot) == false:
return
var weapon = weapon_spawner.spawn({
weapon_spawner.spawn({
"ammo": body.weapon.ammo,
"remaining_ammo": body.weapon.remaining_ammo,
"scene_file_path": body.weapon.scene_file_path,
"slot": body.slot
})
weapon_system.on_weapon_added(weapon)
Session.despawn(body.get_path())