khanat-client/ressources/scripts/creatures/ra.gd

12 lines
284 B
GDScript

extends "res://ressources/scripts/creatures/creature_old.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