mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-08 07:18:17 +00:00
## 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. /🆑
20 lines
612 B
Plaintext
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)
|