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

13 lines
280 B
GDScript3
Raw Normal View History

extends "res://ressources/scripts/creatures/creature.gd"
class_name Ra
2020-04-01 19:02:49 +00:00
var inventory = null
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