mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Unlucky trait (#11775)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
6eab8c8408
commit
b8fe8fa68d
@@ -27,3 +27,16 @@
|
||||
to_chat(user, span_warning("You need at least one working hand to snap your fingers."))
|
||||
return FALSE
|
||||
. = ..()
|
||||
|
||||
/decl/emote/audible/snap/do_extra(mob/user)
|
||||
. = ..()
|
||||
if(HAS_TRAIT(user, TRAIT_UNLUCKY) && prob(0.1) && ishuman(user)) //1 in a thousand
|
||||
var/mob/living/carbon/human/unlucky_human = user
|
||||
var/datum/component/omen/bad_luck = unlucky_human.GetComponent(/datum/component/omen) //Also going to make sure they got the EVIL version.
|
||||
if(bad_luck.evil)
|
||||
unlucky_human.visible_message(span_danger("[unlucky_human] snaps, their hand fading to ash!"), span_danger(span_huge("OH GOD YOUR HAND")))
|
||||
for(var/limb in list(BP_L_HAND, BP_R_HAND))
|
||||
var/obj/item/organ/external/L = unlucky_human.get_organ(limb)
|
||||
if(istype(L) && L.is_usable() && !L.splinted)
|
||||
L.droplimb(TRUE, DROPLIMB_BURN)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user