[Ready Again]Refactors disabilities into lists, allowing for independent disability sources
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
return
|
||||
if(ishuman(usr))
|
||||
var/mob/living/carbon/human/H = usr
|
||||
if(H.disabilities & CLUMSY && prob(25))
|
||||
if(H.has_disability(CLUMSY) && prob(25))
|
||||
to_chat(H, "<span class='warning'>You cut yourself on the paper! Ahhhh! Ahhhhh!</span>")
|
||||
H.damageoverlaytemp = 9001
|
||||
H.update_damage_hud()
|
||||
@@ -317,7 +317,7 @@
|
||||
to_chat(user, "<span class='notice'>You stamp the paper with your rubber stamp.</span>")
|
||||
|
||||
if(P.is_hot())
|
||||
if(user.disabilities & CLUMSY && prob(10))
|
||||
if(user.has_disability(CLUMSY) && prob(10))
|
||||
user.visible_message("<span class='warning'>[user] accidentally ignites themselves!</span>", \
|
||||
"<span class='userdanger'>You miss the paper and accidentally light yourself on fire!</span>")
|
||||
user.dropItemToGround(P)
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
update_icon()
|
||||
|
||||
else if(P.is_hot())
|
||||
if(user.disabilities & CLUMSY && prob(10))
|
||||
if(user.has_disability(CLUMSY) && prob(10))
|
||||
user.visible_message("<span class='warning'>[user] accidentally ignites themselves!</span>", \
|
||||
"<span class='userdanger'>You miss [src] and accidentally light yourself on fire!</span>")
|
||||
user.dropItemToGround(P)
|
||||
|
||||
Reference in New Issue
Block a user