mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +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
@@ -88,7 +88,7 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/door/airlock/attack_alien(var/mob/user) //Familiar, right? Doors. -Mechoid
|
||||
if(istype(user, /mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/X = user
|
||||
if(istype(X.species, /datum/species/xenos))
|
||||
if(src.locked || src.welded)
|
||||
@@ -999,7 +999,7 @@ About the new airlock wires panel:
|
||||
else
|
||||
to_chat(user, span_warning("[hold_open] is holding \the [src] open!"))
|
||||
|
||||
if(istype(user, /mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/X = user
|
||||
if(istype(X.species, /datum/species/xenos))
|
||||
src.attack_alien(user)
|
||||
@@ -1169,7 +1169,7 @@ About the new airlock wires panel:
|
||||
|
||||
src.add_fingerprint(user)
|
||||
if (attempt_vr(src,"attackby_vr",list(C, user))) return
|
||||
if(istype(C, /mob/living))
|
||||
if(isliving(C))
|
||||
..()
|
||||
return
|
||||
//VOREstation Edit: Removing material cost from repair requirements
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
//Proc: attack_hand
|
||||
//Description: Attacked with empty hand. Only to allow special attack_bys.
|
||||
/obj/machinery/door/blast/attack_hand(mob/user as mob)
|
||||
if(istype(user, /mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/X = user
|
||||
if(istype(X.species, /datum/species/xenos))
|
||||
src.attack_alien(user)
|
||||
@@ -217,7 +217,7 @@
|
||||
// Parameters: Attacking Xeno mob.
|
||||
// Description: Forces open the door after a delay.
|
||||
/obj/machinery/door/blast/attack_alien(var/mob/user) //Familiar, right? Doors.
|
||||
if(istype(user, /mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/X = user
|
||||
if(istype(X.species, /datum/species/xenos))
|
||||
if(src.density)
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
else
|
||||
do_animate("deny")
|
||||
|
||||
if(istype(AM, /mob/living/bot))
|
||||
if(isbot(AM))
|
||||
var/mob/living/bot/bot = AM
|
||||
if(src.check_access(bot.botcard))
|
||||
if(density)
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
if(operating)
|
||||
return//Already doing something.
|
||||
|
||||
if(istype(user, /mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/X = user
|
||||
if(istype(X.species, /datum/species/xenos))
|
||||
src.attack_alien(user)
|
||||
@@ -195,7 +195,7 @@
|
||||
close()
|
||||
|
||||
/obj/machinery/door/firedoor/attack_alien(var/mob/user) //Familiar, right? Doors.
|
||||
if(istype(user, /mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/X = user
|
||||
if(istype(X.species, /datum/species/xenos))
|
||||
if(src.blocked)
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
/obj/machinery/door/window/attack_hand(mob/user as mob)
|
||||
src.add_fingerprint(user)
|
||||
|
||||
if(istype(user,/mob/living/carbon/human))
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(H.species.can_shred(H))
|
||||
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)
|
||||
|
||||
Reference in New Issue
Block a user