From b66e091b114320323d31396f18646b38324aa2b4 Mon Sep 17 00:00:00 2001 From: darth Date: Tue, 22 Oct 2024 19:59:01 -0300 Subject: [PATCH 1/5] Fixed typo. --- scripts/actions/monsters/farmable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/actions/monsters/farmable.lua b/scripts/actions/monsters/farmable.lua index c6b7c6e252..c88eaf110a 100644 --- a/scripts/actions/monsters/farmable.lua +++ b/scripts/actions/monsters/farmable.lua @@ -186,7 +186,7 @@ end function removeFood(args) storage.food = math.max((storage.food or 100) - 0.277777778/config.getParameter('hungerTime',20),0) - storage.mateTimer = math.max((storage.mateTimer or 120) - 5/config.getParameter('mateTimer',120),0) + storage.mateTimer = math.max((storage.mateTimer or 120) - 5/config.getParameter('mateTime',120),0) self.timerPoop = (self.timerPoop or 90) - 1 if self.timerPoop <= 0 and storage.food >= 50 then From 05d4232f14d70c8776bdc67b3f769489448f2b37 Mon Sep 17 00:00:00 2001 From: darth Date: Tue, 31 Dec 2024 13:47:53 -0300 Subject: [PATCH 2/5] GPS now shows prohibited biomes if requirements are met. --- interface/kukagps/kukagps.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/interface/kukagps/kukagps.lua b/interface/kukagps/kukagps.lua index b32844f616..6d2e011b49 100644 --- a/interface/kukagps/kukagps.lua +++ b/interface/kukagps/kukagps.lua @@ -405,6 +405,15 @@ end function BiomeCheck(tbl, biome) for _, value in pairs(tbl) do if (value == biome) then + -- forbidden biome + if (biome=="precursorsurface" or biome=="precursorunderground") then + -- precursor + if player.hasCompletedQuest("precursor_unlock") then + return false + else + -- elder + if player.hasQuest('create_elder') then + return false return true end end From ec1839555f7410842f5079c6148d27dc8e45bb34 Mon Sep 17 00:00:00 2001 From: darth Date: Tue, 31 Dec 2024 15:14:05 -0300 Subject: [PATCH 3/5] GPS now shows prohibited biomes if requirements are met(Edwards code). --- interface/kukagps/kukagps.lua | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/interface/kukagps/kukagps.lua b/interface/kukagps/kukagps.lua index 6d2e011b49..a40b88c4ce 100644 --- a/interface/kukagps/kukagps.lua +++ b/interface/kukagps/kukagps.lua @@ -131,7 +131,7 @@ function populateMaterialsList() local listedBiomeNames = {} for _, biomeCode in ipairs(uniqueBiomeCodes) do - if BiomeCheck(forbiddenBiomes, biomeCode) then + if isHiddenBiome(biomeCode) then -- Semi-secret biomes like Precursor Underground are not listed. anomaliesFound = true else @@ -401,21 +401,24 @@ function getDate(days) return "Year "..year..", Month "..month.." and Day "..days end --- check list of biomes already printed -function BiomeCheck(tbl, biome) - for _, value in pairs(tbl) do - if (value == biome) then - -- forbidden biome - if (biome=="precursorsurface" or biome=="precursorunderground") then - -- precursor - if player.hasCompletedQuest("precursor_unlock") then - return false - else - -- elder - if player.hasQuest('create_elder') then - return false - return true - end +local precursorBiomes = { + precursorsurface = true, + precursorunderground = true +} +local elderBiomes = { + atropuselder = true, + atropuselderunderground = true, + elder = true, + elderunderground = true, + shoggothbiome = true +} + +function isHiddenBiome(biomeCode) + if precursorBiomes[biomeCode] then + return not player.hasCompletedQuest("precursor_unlock") + elseif elderBiomes[biomeCode] then + return not player.hasQuest('create_elder') end + return false end From 7286927e36fba6cc7f0507d89762d9b414caae84 Mon Sep 17 00:00:00 2001 From: darth Date: Tue, 31 Dec 2024 15:25:40 -0300 Subject: [PATCH 4/5] Commented unused variable --- interface/kukagps/kukagps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/kukagps/kukagps.lua b/interface/kukagps/kukagps.lua index a40b88c4ce..4118bb29b4 100644 --- a/interface/kukagps/kukagps.lua +++ b/interface/kukagps/kukagps.lua @@ -100,7 +100,7 @@ function populateMaterialsList() local parameters = celestial.visitableParameters(planet) addText(" ^green;BIOMES:^reset; ") - local forbiddenBiomes={"atropuselder","atropuselderunderground","elder","elderunderground","precursorsurface","precursorunderground","shoggothbiome"} + -- local forbiddenBiomes={"atropuselder","atropuselderunderground","elder","elderunderground","precursorsurface","precursorunderground","shoggothbiome"} local anomaliesFound=false local worldSize = world.size() or {0,0} From 3331bff8fc05218d45832f3c2242927b22a0d0cf Mon Sep 17 00:00:00 2001 From: darth Date: Wed, 1 Jan 2025 17:17:21 -0300 Subject: [PATCH 5/5] deleted unused variable --- interface/kukagps/kukagps.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/interface/kukagps/kukagps.lua b/interface/kukagps/kukagps.lua index 4118bb29b4..ce09b783ee 100644 --- a/interface/kukagps/kukagps.lua +++ b/interface/kukagps/kukagps.lua @@ -100,7 +100,6 @@ function populateMaterialsList() local parameters = celestial.visitableParameters(planet) addText(" ^green;BIOMES:^reset; ") - -- local forbiddenBiomes={"atropuselder","atropuselderunderground","elder","elderunderground","precursorsurface","precursorunderground","shoggothbiome"} local anomaliesFound=false local worldSize = world.size() or {0,0}