mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-07-20 20:22:56 +01:00
c8983e1b03
AKA [PORT] Refactors smiting, adds smite build mode tgstation/tgstation#55327 !! NOT!! A!! RUNNING!! BUILD!! LIGHTNING IS BROKEN IMMERSE IS COMMENTED OUT HALF OF THIS SHIT IS BROKEN DO NOT BASE YOURSELF ON THIS BUILD!!
14 lines
645 B
Plaintext
14 lines
645 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 class='warning'>This must be used on a carbon mob.</span>", confidential = TRUE)
|
|
return
|
|
var/mob/living/carbon/carbon_target = target
|
|
for(var/_limb in carbon_target.bodyparts)
|
|
var/obj/item/bodypart/limb = _limb
|
|
var/type_wound = pick(list(/datum/wound/blunt/critical, /datum/wound/blunt/severe, /datum/wound/blunt/critical, /datum/wound/blunt/severe, /datum/wound/blunt/moderate))
|
|
limb.force_wound_upwards(type_wound, smited = TRUE)
|