Files
Bubberstation/code/modules/admin/smites/boneless.dm
GPeckman bb1a4a05bc Fixes Boneless Smite (#78449)
## About The Pull Request

The boneless smite was using a list of strings instead of a list of
numbers, and didn't work as a result. This just fixes it. Fixes #78437.
## Why It's Good For The Game

Bugfixes good.
## Changelog
🆑
admin: Boneless smite should work properly again.
/🆑
2023-09-22 13:46:39 +01:00

20 lines
612 B
Plaintext

/// Gives the target critically bad wounds
/datum/smite/boneless
name = ":B:oneless"
/datum/smite/boneless/effect(client/user, mob/living/target)
. = ..()
if (!iscarbon(target))
to_chat(user, span_warning("This must be used on a carbon mob."), confidential = TRUE)
return
var/mob/living/carbon/carbon_target = target
for(var/obj/item/bodypart/limb as anything in carbon_target.bodyparts)
var/severity = pick_weight(list(
WOUND_SEVERITY_MODERATE = 1,
WOUND_SEVERITY_SEVERE = 2,
WOUND_SEVERITY_CRITICAL = 2,
))
carbon_target.cause_wound_of_type_and_severity(WOUND_BLUNT, limb, severity)