Added trading system and cargo saving

This commit is contained in:
gotfishmakesticks 2023-11-13 17:13:36 +03:00
commit 30e53f858f
19 changed files with 301 additions and 12 deletions

View file

@ -27,7 +27,8 @@ static func profile_save(scene : Node) -> void:
"ammo" : scene.ship.hull.ammunition,
"hp" : scene.ship.hull.hp,
"fuel" : scene.ship.hull.fuel,
"money" : scene.ship.money
"money" : scene.ship.money,
"cargo" : scene.ship.hull.cargo
}
if scene.ship.primary_slot.get_child_count() > 0:
profile.profile_meta['game']['primaryweapon'] = scene.ship.primary_slot.get_child(0).id