mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 19:03:21 +00:00
* Refactors smiting, adds smite build mode (#55327) Refactors smiting out from being a large switch/case into datums. Adds a new smite option to build mode. This lets you choose a smite and rapidly apply it to a lot of people, presumably for EORG. Requested for by...one of the admins, I forget which. * Refactors smiting, adds smite build mode Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
17 lines
648 B
Plaintext
17 lines
648 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)
|