Skip to content

Commit

Permalink
Tweaks to upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit committed Dec 1, 2023
1 parent 2f42601 commit cdd983f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/datums/facility_upgrade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
category = "Agent"
value = 0
max_value = 30
var/value_increase = 5

/datum/facility_upgrade/agent_spawn_stats_bonus/Upgrade()
var/increase = max_value * 0.25
value = min(max_value, value + increase)
value = min(max_value, value + value_increase)
// Applies newly purchased bonus to all living agents
for(var/mob/living/carbon/human/H in AllLivingAgents())
H.adjust_all_attribute_levels(increase)

Check failure on line 162 in code/datums/facility_upgrade.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "increase"
Expand All @@ -169,13 +169,12 @@
name = UPGRADE_ABNO_QUEUE_COUNT
category = "Abnormalities"
value = 2
max_value = 10 // Comedy
max_value = 4

/datum/facility_upgrade/picking_abno_amount/Upgrade()
value = min(max_value, value + 1)
. = ..()
if(value >= max_value * 0.5) // Going well above 5 will start increasing cost, you meme-lord
cost += 1
cost += 1

/datum/facility_upgrade/abno_melt_time
name = UPGRADE_ABNO_MELT_TIME
Expand Down

0 comments on commit cdd983f

Please sign in to comment.