From 77e39ed5b6e665a9d9dbf430b7db0de628f68a90 Mon Sep 17 00:00:00 2001 From: Pandora Date: Mon, 4 Apr 2022 20:42:13 +0100 Subject: [PATCH] Add files via upload --- code/modules/mob/living/simple_mob/simple_mob.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/mob/living/simple_mob/simple_mob.dm b/code/modules/mob/living/simple_mob/simple_mob.dm index 8314736fa22..46af0b5269b 100644 --- a/code/modules/mob/living/simple_mob/simple_mob.dm +++ b/code/modules/mob/living/simple_mob/simple_mob.dm @@ -164,11 +164,16 @@ var/limb_icon_key var/understands_common = TRUE //VOREStation Edit - Makes it so that simplemobs can understand galcomm without being able to speak it. var/heal_countdown = 5 //VOREStation Edit - A cooldown ticker for passive healing + var/obj/item/weapon/card/id/mobcard = null + var/list/mobcard_access = list() /mob/living/simple_mob/Initialize() verbs -= /mob/verb/observe health = maxHealth + mobcard = new /obj/item/weapon/card/id(src) + mobcard.access = mobcard_access.Copy() + for(var/L in has_langs) languages |= GLOB.all_languages[L] if(languages.len) @@ -297,3 +302,13 @@ /decl/mob_organ_names var/list/hit_zones = list("body") //When in doubt, it's probably got a body. + +//VOREStation Add Start For allowing mobs with ID's door access +/mob/living/simple_mob/Bump(var/atom/A) + if(mobcard && istype(A, /obj/machinery/door)) + var/obj/machinery/door/D = A + if(!istype(D, /obj/machinery/door/firedoor) && !istype(D, /obj/machinery/door/blast) && !istype(D, /obj/machinery/door/airlock/lift) && D.check_access(mobcard)) + D.open() + else + ..() +//Vorestation Add End \ No newline at end of file