Added trading system and cargo saving
This commit is contained in:
parent
50be4a0bb2
commit
30e53f858f
19 changed files with 301 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue