Files
Bubberstation/code/datums
SkyratBot b4fcb9dd32 [MIRROR] Fix runtime with CANT_WOUND weapons that use pellet_cloud (#391)
* Fix runtime with CANT_WOUND weapons that use pellet_cloud (#53001)

In /datum/component/pellet_cloud/proc/pellet_hit if the projectile's wound_bonus is CANT_WOUND, then wound_info_by_part[hit_part] never gets a value set.

This causes an issue in /datum/component/pellet_cloud/proc/finalize() where it assumes that wound_info_by_part[hit_part] has always been set to a list(x,y,z).

I added a quick if check to skip this where there's no wound info for a part.

Weapon this behaviour manifested on: DRAGnet on net mode. Due to the runtime, I didn't notice it dealing any stamina damage. This should fix that scenario as well as any other CANT_WOUND projectiles and prevent them from runtiming early.

* Fix runtime with CANT_WOUND weapons that use pellet_cloud

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
2020-08-19 02:39:54 +02:00
..
2020-05-22 02:17:15 -07:00
2020-06-29 16:16:45 -03:00
2020-07-27 22:20:29 -04:00
2020-01-12 13:31:13 +13:00
2020-02-18 03:59:39 -07:00
2020-04-01 14:38:55 +08:00
2019-10-25 04:26:09 -03:00
2020-07-16 20:13:04 +02:00