mirror of
https://port.numenaute.org/aleajactaest/khanat-client.git
synced 2024-11-17 04:52:01 +00:00
17 lines
466 B
GDScript
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 )
|