Replaces "istype"s with is_helpers macros (#28676)

This commit is contained in:
nicbn
2017-06-22 15:03:19 -03:00
committed by Leo
parent 4ac64a7014
commit 77a2d3f5cd
125 changed files with 192 additions and 184 deletions
+1 -1
View File
@@ -335,7 +335,7 @@
return
SSblackbox.add_details("admin_secrets_fun_used","Traitor All ([objective])")
for(var/mob/living/H in GLOB.player_list)
if(!(istype(H, /mob/living/carbon/human)||istype(H, /mob/living/silicon/))) continue
if(!(ishuman(H)||istype(H, /mob/living/silicon/))) continue
if(H.stat == 2 || !H.client || !H.mind || ispAI(H)) continue
if(is_special_character(H)) continue
H.mind.add_antag_datum(ANTAG_DATUM_TRAITOR_CUSTOM)
+2 -2
View File
@@ -1927,10 +1927,10 @@
O.setDir(obj_dir)
if(obj_name)
O.name = obj_name
if(istype(O,/mob))
if(ismob(O))
var/mob/M = O
M.real_name = obj_name
if(where == "inhand" && isliving(usr) && istype(O, /obj/item))
if(where == "inhand" && isliving(usr) && isitem(O))
var/mob/living/L = usr
var/obj/item/I = O
L.put_in_hands(I)
+3 -3
View File
@@ -44,7 +44,7 @@ GLOBAL_PROTECT(VVpixelmovement)
else
. = VV_TYPE
else if (istype(var_value,/list))
else if (islist(var_value))
. = VV_LIST
else if (isfile(var_value))
@@ -528,7 +528,7 @@ GLOBAL_PROTECT(VVpixelmovement)
variable = input("Which var?","Var") as null|anything in names
if(!variable)
return
if(!O.can_vv_get(variable))
return
@@ -594,7 +594,7 @@ GLOBAL_PROTECT(VVpixelmovement)
switch(class)
if(VV_LIST)
if(!istype(var_value,/list))
if(!islist(var_value))
mod_list(list(), O, original_name, variable)
mod_list(var_value, O, original_name, variable)