[MIRROR] some istype to macros (#9802)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-05 15:01:49 -07:00
committed by GitHub
parent 73486c399b
commit ed79946ade
409 changed files with 750 additions and 751 deletions

View File

@@ -37,10 +37,10 @@
return
// CHOMPAdd End
var/safe_fall = FALSE
if(pred.softfall || (istype(pred, /mob/living/simple_mob) && pred.mob_size <= MOB_SMALL)) // TODO: add ability for mob below to be 'soft' and cushion fall
if(pred.softfall || (isanimal(pred) && pred.mob_size <= MOB_SMALL)) // TODO: add ability for mob below to be 'soft' and cushion fall
safe_fall = TRUE
if(istype(pred, /mob/living/carbon/human))
if(ishuman(pred))
var/mob/living/carbon/human/H = pred
if(H.species.soft_landing)
safe_fall = TRUE
@@ -93,7 +93,7 @@
set category = "Object"
set src in oview(1)
if(!istype(usr, /mob/living)) return //Why would ghosts want to climb?
if(!isliving(usr)) return //Why would ghosts want to climb?
var/mob/living/L = usr
var/climbing_delay_min = L.climbing_delay
var/fall_chance = 0