2020-03-29 11:29:57 +00:00
|
|
|
class_name Ra
|
2021-06-28 22:33:56 +00:00
|
|
|
extends "res://ressources/scripts/creatures/creature.gd"
|
|
|
|
# Class for creature Ra with all param only use for Ra
|
2020-03-29 11:29:57 +00:00
|
|
|
|
2021-06-28 22:33:56 +00:00
|
|
|
func _init( p_pseudonym = "Creature" ):
|
|
|
|
._init( p_pseudonym, "Ra" )
|
|
|
|
pass
|
2020-03-29 11:29:57 +00:00
|
|
|
|
|
|
|
func from_dict( datas ):
|
2021-06-28 22:33:56 +00:00
|
|
|
.from_dict( datas )
|
|
|
|
var new_inventory = Inventory.new()
|
|
|
|
new_inventory.from_dict( datas.get( "inventory", [] ) )
|
|
|
|
self.inventory = new_inventory
|