mirror of
https://port.numenaute.org/aleajactaest/khanat-client.git
synced 2024-12-21 17:08:43 +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 )
|