mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Replaces a bunch of istypes with their proper macros (#20739)
* Replaces a bunch of istypes with their proper macros * i'm not sure doing a 100+ file changed pr on a whim is something you do when bored especially if you do it by hand because you never actually learned the regex that would let you automate it * i'm just... gonna do this, because that check was true a lot and it shouldn't matter
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
if(href_list["read"])
|
||||
var/obj/item/weapon/paper/P = locate(href_list["read"])
|
||||
if((P && P.loc == src))
|
||||
if(!( istype(usr, /mob/living/carbon/human) ))
|
||||
if(!ishuman(usr))
|
||||
usr << browse("<HTML><HEAD><TITLE>[P.name]</TITLE></HEAD><BODY><TT>[stars(P.info)]</TT></BODY></HTML>", "window=[P.name]")
|
||||
onclose(usr, "[P.name]")
|
||||
else
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
layer = ABOVE_MOB_LAYER
|
||||
|
||||
/obj/structure/plasticflaps/CanAStarPass(ID, to_dir, caller)
|
||||
if(istype(caller, /mob/living))
|
||||
if(istype(caller,/mob/living/simple_animal/bot))
|
||||
if(isliving(caller))
|
||||
if(isbot(caller))
|
||||
return 1
|
||||
|
||||
var/mob/living/M = caller
|
||||
@@ -35,9 +35,9 @@
|
||||
return 0
|
||||
|
||||
|
||||
else if(istype(A, /mob/living)) // You Shall Not Pass!
|
||||
else if(isliving(A)) // You Shall Not Pass!
|
||||
var/mob/living/M = A
|
||||
if(istype(A,/mob/living/simple_animal/bot)) //Bots understand the secrets
|
||||
if(isbot(A)) //Bots understand the secrets
|
||||
return 1
|
||||
if(M.buckled && istype(M.buckled, /mob/living/simple_animal/bot/mulebot)) // mulebot passenger gets a free pass.
|
||||
return 1
|
||||
@@ -64,7 +64,7 @@
|
||||
/obj/structure/plasticflaps/mining/New()
|
||||
air_update_turf(1)
|
||||
. = ..()
|
||||
|
||||
|
||||
/obj/structure/plasticflaps/mining/CanAtmosPass()
|
||||
return FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user