Fixes bug where the Scotty achievement would only fire...

...if you got *EXACTLY* 3000 kW of power in a powernet
This commit is contained in:
Gary Lafortune
2020-01-28 21:22:18 -06:00
committed by GitHub
parent e2cdc885fc
commit 38dccedfc0

View File

@@ -61,7 +61,7 @@ SUBSYSTEM_DEF(achievements)
for(var/n in SSmachines.powernets)
var/datum/powernet/net = n
if(net.z == 2) // If the powernet is on the station z-level
if(net.avail == 3000 && CE.stat != DEAD && CE.client) // If there's 3 MW available (Value is in kW)
if(net.avail >= 3000 && CE.stat != DEAD && CE.client) // If there's 3 MW available (Value is in kW)
unlock_achievement(/datum/achievement/engineering/scotty, CE.client)
//Ad-hoc procs