mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-26 14:17:12 +01:00
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!!
18 lines
844 B
Plaintext
18 lines
844 B
Plaintext
/// Slashes up the target
|
|
/datum/smite/bloodless
|
|
name = ":B:loodless"
|
|
/datum/smite/bloodless/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
if(!iscarbon(target))
|
|
to_chat(usr,"<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/slash/severe, /datum/wound/slash/moderate))
|
|
limb.force_wound_upwards(type_wound, smited = TRUE)
|
|
type_wound = pick(list(/datum/wound/slash/critical, /datum/wound/slash/severe, /datum/wound/slash/moderate))
|
|
limb.force_wound_upwards(type_wound, smited = TRUE)
|
|
type_wound = pick(list(/datum/wound/slash/critical, /datum/wound/slash/severe))
|
|
limb.force_wound_upwards(type_wound, smited = TRUE)
|