mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-17 04:51:54 +00:00
* improves the sextractor * switches from model to numerical input :) * Apply suggestions from code review update fix Co-Authored-By: moxian <moxian@users.noreply.github.com> * fix maturation var Co-authored-by: moxian <moxian@users.noreply.github.com> * changes variant stuff * Apply suggestions from code review Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * requested changes * ui_act stuff ui_act stuff Co-authored-by: moxian <moxian@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
97 lines
2.8 KiB
Plaintext
97 lines
2.8 KiB
Plaintext
// Atoms
|
|
#define isatom(A) (isloc(A))
|
|
|
|
// Mobs
|
|
#define ismegafauna(A) istype(A, /mob/living/simple_animal/hostile/megafauna)
|
|
|
|
//Simple animals
|
|
#define isshade(A) (istype(A, /mob/living/simple_animal/shade))
|
|
|
|
#define isconstruct(A) (istype(A, /mob/living/simple_animal/hostile/construct))
|
|
|
|
//Objects
|
|
#define isobj(A) istype(A, /obj) //override the byond proc because it returns true on children of /atom/movable that aren't objs
|
|
|
|
#define isitem(A) (istype(A, /obj/item))
|
|
|
|
#define ismachinery(A) (istype(A, /obj/machinery))
|
|
|
|
#define ismecha(A) (istype(A, /obj/mecha))
|
|
|
|
#define iseffect(A) (istype(A, /obj/effect))
|
|
|
|
#define isclothing(A) (istype(A, /obj/item/clothing))
|
|
|
|
#define is_pen(W) (istype(W, /obj/item/pen))
|
|
|
|
#define isstorage(A) (istype(A, /obj/item/storage))
|
|
|
|
GLOBAL_LIST_INIT(pointed_types, typecacheof(list(
|
|
/obj/item/pen,
|
|
/obj/item/screwdriver,
|
|
/obj/item/reagent_containers/syringe,
|
|
/obj/item/kitchen/utensil/fork)))
|
|
|
|
#define is_pointed(W) (is_type_in_typecache(W, GLOB.pointed_types))
|
|
|
|
GLOBAL_LIST_INIT(glass_sheet_types, typecacheof(list(
|
|
/obj/item/stack/sheet/glass,
|
|
/obj/item/stack/sheet/rglass,
|
|
/obj/item/stack/sheet/plasmaglass,
|
|
/obj/item/stack/sheet/plasmarglass,
|
|
/obj/item/stack/sheet/titaniumglass,
|
|
/obj/item/stack/sheet/plastitaniumglass)))
|
|
|
|
#define is_glass_sheet(O) (is_type_in_typecache(O, GLOB.glass_sheet_types))
|
|
|
|
//Turfs
|
|
#define issimulatedturf(A) istype(A, /turf/simulated)
|
|
|
|
#define isspaceturf(A) istype(A, /turf/space)
|
|
|
|
#define istransparentturf(A) istype(A, /turf/simulated/floor/transparent)
|
|
|
|
#define isfloorturf(A) istype(A, /turf/simulated/floor)
|
|
|
|
#define iswallturf(A) istype(A, /turf/simulated/wall)
|
|
|
|
#define isreinforcedwallturf(A) istype(A, /turf/simulated/wall/r_wall)
|
|
|
|
#define ismineralturf(A) istype(A, /turf/simulated/mineral)
|
|
|
|
#define islava(A) (istype(A, /turf/simulated/floor/plating/lava))
|
|
|
|
#define ischasm(A) (istype(A, /turf/simulated/floor/chasm))
|
|
|
|
//Mobs
|
|
#define isliving(A) (istype(A, /mob/living))
|
|
|
|
#define isbrain(A) (istype(A, /mob/living/carbon/brain))
|
|
|
|
//Carbon mobs
|
|
#define iscarbon(A) (istype(A, /mob/living/carbon))
|
|
|
|
#define ishuman(A) (istype(A, /mob/living/carbon/human))
|
|
|
|
//more carbon mobs
|
|
#define isalien(A) (istype(A, /mob/living/carbon/alien))
|
|
|
|
#define islarva(A) (istype(A, /mob/living/carbon/alien/larva))
|
|
|
|
#define isalienadult(A) (istype(A, /mob/living/carbon/alien/humanoid))
|
|
|
|
#define isalienhunter(A) (istype(A, /mob/living/carbon/alien/humanoid/hunter))
|
|
|
|
#define isaliensentinel(A) (istype(A, /mob/living/carbon/alien/humanoid/sentinel))
|
|
|
|
#define isslime(A) (istype((A), /mob/living/simple_animal/slime))
|
|
|
|
//Structures
|
|
#define isstructure(A) (istype((A), /obj/structure))
|
|
|
|
// Misc
|
|
#define isclient(A) istype(A, /client)
|
|
#define isradio(A) istype(A, /obj/item/radio)
|
|
#define ispill(A) istype(A, /obj/item/reagent_containers/food/pill)
|
|
|