mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Fixed a Bug Where Roundstart Rules Cost Double
This commit is contained in:
@@ -211,7 +211,6 @@ var/list/threat_by_job = list(
|
||||
message_admins("Delayed ruleset, with a delay of [starting_rule:delay/10] seconds.")
|
||||
return pick_delay(starting_rule)
|
||||
|
||||
threat = max(0,threat-starting_rule.cost)
|
||||
spend_threat(starting_rule.cost)
|
||||
threat_log += "[worldtime2text()]: [starting_rule.name] spent [starting_rule.cost]"
|
||||
if (starting_rule.execute())//this should never fail since ready() returned 1
|
||||
@@ -465,4 +464,4 @@ var/list/threat_by_job = list(
|
||||
|
||||
//Expend threat, but do not fall below 0.
|
||||
/datum/gamemode/dynamic/proc/spend_threat(var/cost)
|
||||
threat = max(threat-cost,0)
|
||||
threat = max(threat-cost,0)
|
||||
|
||||
Reference in New Issue
Block a user