khanat-client/ressources/scripts/creatures/ra.gd
2020-04-01 21:02:49 +02:00

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