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.
/🆑
This commit is contained in:
GPeckman
2023-09-22 13:46:39 +01:00
committed by GitHub
parent 717e0147c1
commit bb1a4a05bc
+4 -6
View File
@@ -11,11 +11,9 @@
var/mob/living/carbon/carbon_target = target
for(var/obj/item/bodypart/limb as anything in carbon_target.bodyparts)
var/severity = pick(list(
"[WOUND_SEVERITY_MODERATE]",
"[WOUND_SEVERITY_SEVERE]",
"[WOUND_SEVERITY_SEVERE]",
"[WOUND_SEVERITY_CRITICAL]",
"[WOUND_SEVERITY_CRITICAL]",
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)