Goonstation Forums
Infinite Healing Patches - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Bug Reports (https://forum.ss13.co/forumdisplay.php?fid=9)
+---- Forum: Resolved (https://forum.ss13.co/forumdisplay.php?fid=16)
+---- Thread: Infinite Healing Patches (/showthread.php?tid=6125)



Infinite Healing Patches - atamusvaleo - 03-16-2016

I noticed this happening last night as well and figured it was a one time deal because of a disaster round.

Logged on today and noticed it's still happening: using a styptic powder or silver sulf. patch and it remains in my hand and is able to be applied to myself and others multiple times. It lasts a while and eventually disappears but there's quite a delay.

This is happening on Destiny, by the way.


RE: Infinite Healing Patches - lambskin - 03-16-2016

Stacking cash is also broken at the moment it seems.


RE: Infinite Healing Patches - ZeWaka - 03-16-2016

(03-16-2016, 06:52 PM)lambskin Wrote: Stacking cash is also broken at the moment it seems.

It's not broken for me. Are you sure you are stacking correctly?


RE: Infinite Healing Patches - lambskin - 03-16-2016

(03-16-2016, 07:30 PM)zewaka Wrote:
(03-16-2016, 06:52 PM)lambskin Wrote: Stacking cash is also broken at the moment it seems.

It's not broken for me. Are you sure you are stacking correctly?
It says that I stack some cash but the cash doesn't actually combine.


RE: Infinite Healing Patches - Erik - 03-16-2016

I did a quick code dive as i had a hard time falling asleep, and it seems that this would only happen when the server is under a high load, the following happens when you apply a styptic powder patch to someone.
  • var/in_use is set to 1.
  • reagents.reaction(M, TOUCH) is called without a volume modifier, which simply calls reaction_mob, which then in turn heals the affected mob via M.HealDamage("All", volume_passed, 0) using 40 units of styptic powder.
  • reagents.trans_to(M, reagents.total_volume/2) is then called, which simply transfers 50% of the reagents into the affected mob, which then allows the next mob loop tick to call on_mob_life for the styptic powder reagent which then in turn calls M.HealDamage("All", 2, 0)
  • var/in_use is set to 0.
  • qdel(src) is called, which queues the patch for deletion.
So, you should technically be able to utilize a styptic powder patch twice, before it runs out of uses.


RE: Infinite Healing Patches - atamusvaleo - 03-17-2016

Nice, Erik. You're a pro! I stand by my sentiments. Haha.

I was able to use it upwards of ten times. It stayed for a good 30 seconds.


RE: Infinite Healing Patches - Grayshift - 03-17-2016

This is something that's been around a while but has been exacerbated by the recent process scheduler improvements. Getting two (sometimes more) uses out of patches during heavy lag was an occasional chance thing, but apparently the new scheduler has delayed cleanup considerably more and considerably more often.


RE: Infinite Healing Patches - Grek - 03-18-2016

You get a similar effect with golden stickers.


RE: Infinite Healing Patches - ZeWaka - 12-05-2017

hey did this get fixed guys?


RE: Infinite Healing Patches - mbc - 12-05-2017

i vaguely remember fixing this a few months ago


RE: Infinite Healing Patches - ZeWaka - 12-05-2017

(12-05-2017, 02:07 PM)mbc Wrote: i vaguely remember fixing this a few months ago

cool thanks dude