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

13 lines
284 B
GDScript3
Raw Normal View History

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