Merge pull request #15674 from Putnam3145/qcd-rebalance

Rebalancing QCD matter a bit
This commit is contained in:
deathride58
2022-06-11 01:07:55 -04:00
committed by GitHub
6 changed files with 26 additions and 9 deletions
+7 -3
View File
@@ -203,9 +203,13 @@ GLOBAL_LIST_EMPTY(doppler_arrays)
point_gain = (BOMB_TARGET_POINTS * 2 * orig_light) / (orig_light + BOMB_TARGET_SIZE)
/*****The Point Capper*****/
if(point_gain > linked_techweb.largest_bomb_value)
var/old_tech_largest_bomb_value = linked_techweb.largest_bomb_value //held so we can pull old before we do math
linked_techweb.largest_bomb_value = point_gain
var/list/largest_values = linked_techweb.largest_values
if(!(LARGEST_BOMB in largest_values))
largest_values[LARGEST_BOMB] = 0
if(point_gain > largest_values[LARGEST_BOMB])
var/old_tech_largest_bomb_value = largest_values[LARGEST_BOMB] //held so we can pull old before we do math
linked_techweb.largest_values[LARGEST_BOMB] = point_gain
point_gain -= old_tech_largest_bomb_value
var/datum/bank_account/D = SSeconomy.get_dep_account(ACCOUNT_SCI)
if(D)