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

17 lines
466 B
GDScript

extends "res://ressources/scripts/items/item.gd"
class_name Equippable
var scene = ""
var attachment = ""
func from_dict( datas ):
.from_dict( datas )
var icon_filename = datas.get( "icon", null )
if icon_filename:
print( icon_filename )
self.icon = load( "res://assets/items/equippables/"+icon_filename )
self.scene = datas.get( "scene", self.scene )
self.attachment = datas.get( "attachment", self.attachment )