Added trading system and cargo saving
This commit is contained in:
parent
50be4a0bb2
commit
30e53f858f
19 changed files with 301 additions and 12 deletions
|
|
@ -34,6 +34,7 @@ func _ready():
|
|||
ship.hull.hp = save['hp']
|
||||
ship.hull.fuel = save['fuel']
|
||||
ship.hull.ammunition = save['ammo']
|
||||
ship.hull.cargo = save['cargo']
|
||||
if save.has('primaryweapon'):
|
||||
for node in ship.primary_slot.get_children():
|
||||
node.queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue