2020-03-29 11:29:57 +00:00
|
|
|
extends "res://ressources/scripts/creatures/creature.gd"
|
|
|
|
class_name Ra
|
|
|
|
|
2020-04-01 19:02:49 +00:00
|
|
|
var inventory = null
|
2020-03-29 11:29:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func from_dict( datas ):
|
2020-04-01 19:02:49 +00:00
|
|
|
.from_dict( datas )
|
|
|
|
var new_inventory = Inventory.new()
|
|
|
|
new_inventory.from_dict( datas.get( "inventory", [] ) )
|
|
|
|
self.inventory = new_inventory
|