From 32ca904e47c7fb7cdbd31fa9f24e3ca9bd7749ad Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 31 Jul 2024 19:15:46 +0300 Subject: [PATCH] Fixed NT Frontier discounts not applying (#85351) ## About The Pull Request Closes #85234 There was a check in place to ensure that no node gets reduced below 250 cost. It made sense when nodes costed up to 10000 points... but now the maximum cost is 200. Into the recycler it goes. ## Changelog :cl: fix: Fixed NT Frontier discounts not applying /:cl: --- code/modules/research/techweb/_techweb_node.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/research/techweb/_techweb_node.dm b/code/modules/research/techweb/_techweb_node.dm index 9b26ca860d8..23ad6fd213d 100644 --- a/code/modules/research/techweb/_techweb_node.dm +++ b/code/modules/research/techweb/_techweb_node.dm @@ -90,8 +90,7 @@ var/list/boostlist = host.boosted_nodes[id] for(var/booster in boostlist) if(actual_costs[booster]) - var/delta = max(0, actual_costs[booster] - 250) - actual_costs[booster] -= min(boostlist[booster], delta) + actual_costs[booster] = max(actual_costs[booster] - boostlist[booster], 0) return actual_costs