mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
Prevent Dionaea from being passively overfed. Fixes #9643
This commit is contained in:
@@ -618,7 +618,9 @@
|
||||
if(isturf(H.loc)) //else, there's considered to be no light
|
||||
var/turf/T = H.loc
|
||||
light_amount = T.get_lumcount() * 10
|
||||
H.adjust_nutrition(light_amount)
|
||||
// Don't overfeed, just make them full without going over.
|
||||
if((H.nutrition + light_amount) < initial(H.nutrition))
|
||||
H.adjust_nutrition(light_amount)
|
||||
H.shock_stage -= light_amount
|
||||
|
||||
if(light_amount >= 3) //if there's enough light, heal
|
||||
|
||||
Reference in New Issue
Block a user