From ee1703b69b7977a8cd6d37dd097f425c8c905882 Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Thu, 03 Apr 2025 22:24:35 +0000 Subject: [PATCH] #42 added jobs for tile generation --- Assets/Scripts/Inventory/ItemUIScript.cs | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Inventory/ItemUIScript.cs b/Assets/Scripts/Inventory/ItemUIScript.cs index 4f9f49b..a4ad058 100644 --- a/Assets/Scripts/Inventory/ItemUIScript.cs +++ b/Assets/Scripts/Inventory/ItemUIScript.cs @@ -42,10 +42,8 @@ description += $"\n<b>Generation</b>"; foreach (var variant in variants) { - if (variant.maxHeight > 0 || variant.minHeight > 0) - { - description += $"\nSpawns between Y: {variant.minHeight} - {variant.maxHeight}. Amount: {variant.dropRange}"; - } + description += $"\nLocation\tY: {variant.maxHeight} to {variant.minHeight}"; + description += $"\n\tAmount: {variant.dropRange.ToRangeString()}"; } } gameObject.transform.Find("ItemTextDescription").GetComponent<TextMeshProUGUI>().text = description; -- Gitblit v1.9.3