The SM may call radiation_pulse with huge negative values under some circumstances.
Does calling radiation_pulse with negative values cause issues? I was thinking of adding logging for this.
Related issue: https://github.com/tgstation/tgstation/issues/42141
radiation_pulse called with negative intensity.
-
- Joined: Mon Apr 23, 2018 4:44 pm
- Byond Username: Booktower
-
- Joined: Wed Jul 27, 2016 5:21 pm
- Byond Username: Swindly
Re: radiation_pulse called with negative intensity.
Code: Select all
/obj/item/clothing/head/helmet/space/hardsuit/rad_act(severity)
. = ..()
rad_count += severity
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: radiation_pulse called with negative intensity.
"rad_count" is for the Geiger counter noise.Swindly wrote:This seems like a problem.Code: Select all
/obj/item/clothing/head/helmet/space/hardsuit/rad_act(severity) . = ..() rad_count += severity
- Cobby
- Code Maintainer
- Joined: Sat Apr 19, 2014 7:19 pm
- Byond Username: ExcessiveUseOfCobby
- Github Username: ExcessiveUseOfCobblestone
Re: radiation_pulse called with negative intensity.
we should make it absolute value so it just deletes the station lol
Voted best trap in /tg/ 2014-current
Who is online
Users browsing this forum: No registered users