Extensive work on VFX for the guild, assets for the world, and portrait variance. Work on quests. Extra work on User Flow completion and file saving.
This commit is contained in:
@@ -21,6 +21,19 @@ func setup(itm : Item) -> void:
|
||||
item_grade.text = item.grade
|
||||
primary_stat.text = item.primary_stat()
|
||||
#TODO: Implement item secondary stats meaningfully
|
||||
var ss_string = ""
|
||||
var ss_count = 0
|
||||
var pp_list : Array = item.stats.get_property_list()
|
||||
print(item.stats)
|
||||
print(item.stats.INT)
|
||||
for stat in pp_list.slice(9, len(pp_list)-1):
|
||||
var val = item.stats.get(stat.name)
|
||||
if val:
|
||||
ss_string += stat.name + " " + ("+" if val > 0 else "")
|
||||
ss_string += str(val) + ("\n" if ss_count % 2 else " ")
|
||||
ss_count += 1
|
||||
if ss_count > 0:
|
||||
secondary_stats.text = ss_string
|
||||
brief.text = item.brief
|
||||
|
||||
func _on_drag_region_gui_input(event: InputEvent) -> void:
|
||||
|
||||
Reference in New Issue
Block a user