From f30145c1d4596a8aa524bbc1ff935decab9816a3 Mon Sep 17 00:00:00 2001 From: Edward Chernenko Date: Sun, 12 May 2024 01:25:05 +0300 Subject: [PATCH 1/2] GPS: show exact planet tier (e.g. 2.7) instead of Roman numerals Previously GPS was showing the same as vanilla nagivation interface, e.g. "Threat: Moderate (III)" for any tier between 2 and 2.99, which was confusing. Sometimes player needs to know the exact tier, without rounding. --- interface/kukagps/kukagps.lua | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/interface/kukagps/kukagps.lua b/interface/kukagps/kukagps.lua index cb92ca1954..b32844f616 100644 --- a/interface/kukagps/kukagps.lua +++ b/interface/kukagps/kukagps.lua @@ -193,7 +193,8 @@ function populateMaterialsList() addText("^green;Width:^reset; "..worldSize[1].." ^green;Height:^reset; "..worldSize[2]) -- print planet threat and gravity - addText("^green;Threat:^reset; "..ThreatToString(parameters.threatLevel).." ^green;Gravity:^reset; "..parameters.gravity or 0) + addText(string.format("^green;Planet tier / Threat:^reset; %.2f", parameters.threatLevel)) + addText("^green;Gravity:^reset; "..(parameters.gravity or 0)) -- print planet ores names addText("^green;Ores:^reset; ") @@ -338,26 +339,6 @@ function populateMaterialsList() end -- contribution of zimberzimber -strs = { - "Harmless (I)", - "Low (II)", - "Moderate (III)", - "Risky (IV)", - "Dangerous (V)", - "Extreme (VI)", - "Lethal (VII)", - "Impossible (VIII)", - "Immeasurable (IX)", - "Just No (X)", - "No (XI)", -} - -function ThreatToString(threat) - local floored = math.max(math.floor(threat) + 1, 1) - return strs[floored] or strs[#strs] -end --- contribution of zimberzimber - function string_split(str, pat) local t = {} -- NOTE: use {n = 0} in Lua-5.0 local fpat = "(.-)" .. pat From 2b0fbc3761bb513fb4300655ad756d1889211eca Mon Sep 17 00:00:00 2001 From: Edward Chernenko Date: Sun, 12 May 2024 03:52:59 +0300 Subject: [PATCH 2/2] Fix description of Gravity Gun (its damage is Cosmic, not Physical) --- items/active/weapons/ranged/unique/gravgun.activeitem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/items/active/weapons/ranged/unique/gravgun.activeitem b/items/active/weapons/ranged/unique/gravgun.activeitem index f0abfd8241..135624f272 100644 --- a/items/active/weapons/ranged/unique/gravgun.activeitem +++ b/items/active/weapons/ranged/unique/gravgun.activeitem @@ -33,7 +33,7 @@ "scripts" : ["/items/active/weapons/ranged/gun.lua"], - "elementalType" : "physical", + "elementalType" : "cosmic", "primaryAbility" : { "scripts" : ["/items/active/weapons/ranged/gunfire.lua"],