mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 00:51:23 +00:00
* Fermichem part 2.2 Adds new tools, crafts and methods for ghetto chemists to handle the new reaction mechanics. (#56871) Since reactions now require a bit more involvement from chemists, ghetto chemistry is a bit harder. This seeks to help some of those problems by providing new tools for those without a chem heater/reaction chamber. Also some of these might be useful for chemists in the lab too! Here's what you can make: image the burners are similar to candles - except they burn their internal reagents. The temperature they heat by is dependant on the flame, fuel and oil burn for a lower amount, ethanol for a higher amount and plasma for the highest amount. They can be put on tables and bonked with beakers for a quick way to heat them (similar to lighters). You'll need to light them with a match or lighter too, though, and can be put out by use in hand. The thermometer looks like this and gives you temperature readings! thermom The pH booklets are the same as before - but you can now craft them by making universal indicator. These are the best way for a ghetto chemist to check their pH, and multiple sheets should be used over a reaction. The improvised chem heater looks like this, and is a reconfigured space heater, it requires more materials and tools lending itself to a static drug den, but has the best method of adjusting temperature and fighting against exo/endo thermic reactions: Improv_heater Finally, the cooling spray lets chemists do the oposite of a lighter on their beaker - cooling the reagents within. In addition, fire extinquishers perform the same function. In addition ice and universal indicator have been added as reactions. Co-authored-by: Rohesie <rohesie@ gmail.com> Co-authored-by: Mothblocks <35135081+Jared-Fogle@ users.noreply.github.com> Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com> * Fermichem part 2.2 Adds new tools, crafts and methods for ghetto chemists to handle the new reaction mechanics. Co-authored-by: Thalpy <33956696+Thalpy@users.noreply.github.com> Co-authored-by: Rohesie <rohesie@ gmail.com> Co-authored-by: Mothblocks <35135081+Jared-Fogle@ users.noreply.github.com> Co-authored-by: Aleksej Komarov <stylemistake@ gmail.com>
236 lines
7.7 KiB
Plaintext
236 lines
7.7 KiB
Plaintext
// simple is_type and similar inline helpers
|
|
|
|
#define in_range(source, user) (get_dist(source, user) <= 1 && (get_step(source, 0)?:z) == (get_step(user, 0)?:z))
|
|
|
|
#define isatom(A) (isloc(A))
|
|
|
|
#define isweakref(D) (istype(D, /datum/weakref))
|
|
|
|
//Turfs
|
|
//#define isturf(A) (istype(A, /turf)) This is actually a byond built-in. Added here for completeness sake.
|
|
|
|
GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list(
|
|
/turf/open/space,
|
|
/turf/open/chasm,
|
|
/turf/open/lava,
|
|
/turf/open/water,
|
|
/turf/open/openspace
|
|
)))
|
|
|
|
#define isgroundlessturf(A) (is_type_in_typecache(A, GLOB.turfs_without_ground))
|
|
|
|
#define isopenturf(A) (istype(A, /turf/open))
|
|
|
|
#define isindestructiblefloor(A) (istype(A, /turf/open/indestructible))
|
|
|
|
#define isspaceturf(A) (istype(A, /turf/open/space))
|
|
|
|
#define isfloorturf(A) (istype(A, /turf/open/floor))
|
|
|
|
#define isclosedturf(A) (istype(A, /turf/closed))
|
|
|
|
#define isindestructiblewall(A) (istype(A, /turf/closed/indestructible))
|
|
|
|
#define iswallturf(A) (istype(A, /turf/closed/wall))
|
|
|
|
#define ismineralturf(A) (istype(A, /turf/closed/mineral))
|
|
|
|
#define islava(A) (istype(A, /turf/open/lava))
|
|
|
|
#define ischasm(A) (istype(A, /turf/open/chasm))
|
|
|
|
#define isplatingturf(A) (istype(A, /turf/open/floor/plating))
|
|
|
|
#define istransparentturf(A) (HAS_TRAIT(A, TURF_Z_TRANSPARENT_TRAIT))
|
|
|
|
//Mobs
|
|
#define isliving(A) (istype(A, /mob/living))
|
|
|
|
#define isbrain(A) (istype(A, /mob/living/brain))
|
|
|
|
//Carbon mobs
|
|
#define iscarbon(A) (istype(A, /mob/living/carbon))
|
|
|
|
#define ishuman(A) (istype(A, /mob/living/carbon/human))
|
|
|
|
//Human sub-species
|
|
#define isabductor(A) (is_species(A, /datum/species/abductor))
|
|
#define isgolem(A) (is_species(A, /datum/species/golem))
|
|
#define islizard(A) (is_species(A, /datum/species/lizard))
|
|
#define isplasmaman(A) (is_species(A, /datum/species/plasmaman))
|
|
#define ispodperson(A) (is_species(A, /datum/species/pod))
|
|
#define isflyperson(A) (is_species(A, /datum/species/fly))
|
|
#define isjellyperson(A) (is_species(A, /datum/species/jelly))
|
|
#define isslimeperson(A) (is_species(A, /datum/species/jelly/slime))
|
|
#define isluminescent(A) (is_species(A, /datum/species/jelly/luminescent))
|
|
#define iszombie(A) (is_species(A, /datum/species/zombie))
|
|
#define isskeleton(A) (is_species(A, /datum/species/skeleton))
|
|
#define ismoth(A) (is_species(A, /datum/species/moth))
|
|
//SKYRAT add
|
|
#define isinsect(A) (is_species(A, /datum/species/insect))
|
|
//SKYRAT add
|
|
#define ishumanbasic(A) (is_species(A, /datum/species/human))
|
|
#define isfelinid(A) (is_species(A, /datum/species/human/felinid))
|
|
#define isethereal(A) (is_species(A, /datum/species/ethereal))
|
|
#define isvampire(A) (is_species(A,/datum/species/vampire))
|
|
#define isdullahan(A) (is_species(A, /datum/species/dullahan))
|
|
#define ismonkey(A) (is_species(A, /datum/species/monkey))
|
|
|
|
//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) || istype(A, /mob/living/simple_animal/hostile/alien))
|
|
|
|
#define isalienhunter(A) (istype(A, /mob/living/carbon/alien/humanoid/hunter))
|
|
|
|
#define isaliensentinel(A) (istype(A, /mob/living/carbon/alien/humanoid/sentinel))
|
|
|
|
#define isalienroyal(A) (istype(A, /mob/living/carbon/alien/humanoid/royal))
|
|
|
|
#define isalienqueen(A) (istype(A, /mob/living/carbon/alien/humanoid/royal/queen))
|
|
|
|
//Silicon mobs
|
|
#define issilicon(A) (istype(A, /mob/living/silicon))
|
|
|
|
#define issiliconoradminghost(A) (istype(A, /mob/living/silicon) || isAdminGhostAI(A))
|
|
|
|
#define iscyborg(A) (istype(A, /mob/living/silicon/robot))
|
|
|
|
#define isAI(A) (istype(A, /mob/living/silicon/ai))
|
|
|
|
#define ispAI(A) (istype(A, /mob/living/silicon/pai))
|
|
|
|
//Simple animals
|
|
#define isanimal(A) (istype(A, /mob/living/simple_animal))
|
|
|
|
#define isrevenant(A) (istype(A, /mob/living/simple_animal/revenant))
|
|
|
|
#define isbot(A) (istype(A, /mob/living/simple_animal/bot))
|
|
|
|
#define isshade(A) (istype(A, /mob/living/simple_animal/shade))
|
|
|
|
#define ismouse(A) (istype(A, /mob/living/simple_animal/mouse))
|
|
|
|
#define iscow(A) (istype(A, /mob/living/simple_animal/cow))
|
|
|
|
#define isslime(A) (istype(A, /mob/living/simple_animal/slime))
|
|
|
|
#define isdrone(A) (istype(A, /mob/living/simple_animal/drone))
|
|
|
|
#define iscat(A) (istype(A, /mob/living/simple_animal/pet/cat))
|
|
|
|
#define isdog(A) (istype(A, /mob/living/simple_animal/pet/dog))
|
|
|
|
#define iscorgi(A) (istype(A, /mob/living/simple_animal/pet/dog/corgi))
|
|
|
|
#define ishostile(A) (istype(A, /mob/living/simple_animal/hostile))
|
|
|
|
#define israt(A) (istype(A, /mob/living/simple_animal/hostile/rat))
|
|
|
|
#define isregalrat(A) (istype(A, /mob/living/simple_animal/hostile/regalrat))
|
|
|
|
#define isswarmer(A) (istype(A, /mob/living/simple_animal/hostile/swarmer))
|
|
|
|
#define isguardian(A) (istype(A, /mob/living/simple_animal/hostile/guardian))
|
|
|
|
#define isconstruct(A) (istype(A, /mob/living/simple_animal/hostile/construct))
|
|
|
|
#define ismegafauna(A) (istype(A, /mob/living/simple_animal/hostile/megafauna))
|
|
|
|
#define isclown(A) (istype(A, /mob/living/simple_animal/hostile/retaliate/clown))
|
|
|
|
|
|
//Misc mobs
|
|
#define isobserver(A) (istype(A, /mob/dead/observer))
|
|
|
|
#define isdead(A) (istype(A, /mob/dead))
|
|
|
|
#define isnewplayer(A) (istype(A, /mob/dead/new_player))
|
|
|
|
#define isovermind(A) (istype(A, /mob/camera/blob))
|
|
|
|
#define iscameramob(A) (istype(A, /mob/camera))
|
|
|
|
#define isaicamera(A) (istype(A, /mob/camera/ai_eye))
|
|
|
|
//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 isstack(A) (istype(A, /obj/item/stack))
|
|
|
|
#define isgrenade(A) (istype(A, /obj/item/grenade))
|
|
|
|
#define islandmine(A) (istype(A, /obj/effect/mine))
|
|
|
|
#define issupplypod(A) (istype(A, /obj/structure/closet/supplypod))
|
|
|
|
#define isammocasing(A) (istype(A, /obj/item/ammo_casing))
|
|
|
|
#define isidcard(I) (istype(I, /obj/item/card/id))
|
|
|
|
#define isstructure(A) (istype(A, /obj/structure))
|
|
|
|
#define ismachinery(A) (istype(A, /obj/machinery))
|
|
|
|
#define isvehicle(A) (istype(A, /obj/vehicle))
|
|
|
|
#define ismecha(A) (istype(A, /obj/vehicle/sealed/mecha))
|
|
|
|
#define ismedicalmecha(A) (istype(A, /obj/vehicle/sealed/mecha/medical))
|
|
|
|
#define ismopable(A) (A && (A.layer <= HIGH_SIGIL_LAYER)) //If something can be cleaned by floor-cleaning devices such as mops or clean bots
|
|
|
|
#define isorgan(A) (istype(A, /obj/item/organ))
|
|
|
|
#define isclothing(A) (istype(A, /obj/item/clothing))
|
|
|
|
#define iscash(A) (istype(A, /obj/item/coin) || istype(A, /obj/item/stack/spacecash) || istype(A, /obj/item/holochip))
|
|
|
|
#define isbodypart(A) (istype(A, /obj/item/bodypart))
|
|
|
|
#define isprojectile(A) (istype(A, /obj/projectile))
|
|
|
|
#define isgun(A) (istype(A, /obj/item/gun))
|
|
|
|
#define is_reagent_container(O) (istype(O, /obj/item/reagent_containers))
|
|
|
|
//Assemblies
|
|
#define isassembly(O) (istype(O, /obj/item/assembly))
|
|
|
|
#define isigniter(O) (istype(O, /obj/item/assembly/igniter))
|
|
|
|
#define isprox(O) (istype(O, /obj/item/assembly/prox_sensor))
|
|
|
|
#define issignaler(O) (istype(O, /obj/item/assembly/signaler))
|
|
|
|
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))
|
|
|
|
#define iseffect(O) (istype(O, /obj/effect))
|
|
|
|
#define isholoeffect(O) (istype(O, /obj/effect/holodeck_effect))
|
|
|
|
#define isblobmonster(O) (istype(O, /mob/living/simple_animal/hostile/blob))
|
|
|
|
#define isshuttleturf(T) (length(T.baseturfs) && (/turf/baseturf_skipover/shuttle in T.baseturfs))
|
|
|
|
#define isProbablyWallMounted(O) (O.pixel_x > 20 || O.pixel_x < -20 || O.pixel_y > 20 || O.pixel_y < -20)
|
|
#define isbook(O) (is_type_in_typecache(O, GLOB.book_types))
|
|
|
|
GLOBAL_LIST_INIT(book_types, typecacheof(list(
|
|
/obj/item/book,
|
|
/obj/item/spellbook,
|
|
/obj/item/storage/book)))
|