12 lines
280 B
GDScript
12 lines
280 B
GDScript
extends "res://ressources/scripts/creatures/creature.gd"
|
|
class_name Ra
|
|
|
|
var inventory = null
|
|
|
|
|
|
|
|
func from_dict( datas ):
|
|
.from_dict( datas )
|
|
var new_inventory = Inventory.new()
|
|
new_inventory.from_dict( datas.get( "inventory", [] ) )
|
|
self.inventory = new_inventory
|