mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] some istype to macros (#9802)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
73486c399b
commit
ed79946ade
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user