mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +01:00
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 🆑 fix: Fixed NT Frontier discounts not applying /🆑
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user