From 1033650c66cbce1d90e76b6025bf6a9d01977cec Mon Sep 17 00:00:00 2001 From: Verkister Date: Wed, 6 Apr 2022 15:16:54 +0300 Subject: [PATCH] Makes mobs not spawn with id unless defined so Makes mob ids only spawn on mobs that should come with them rather than jamming one into every single mouse and cockroach and so on. --- code/modules/mob/living/simple_mob/simple_mob.dm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/living/simple_mob/simple_mob.dm b/code/modules/mob/living/simple_mob/simple_mob.dm index 46af0b5269..c2174e820e 100644 --- a/code/modules/mob/living/simple_mob/simple_mob.dm +++ b/code/modules/mob/living/simple_mob/simple_mob.dm @@ -164,15 +164,17 @@ 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() + var/obj/item/weapon/card/id/mobcard = null //VOREStation Edit + var/list/mobcard_access = list() //VOREStation Edit + var/mobcard_provided = FALSE //VOREStation Edit /mob/living/simple_mob/Initialize() verbs -= /mob/verb/observe health = maxHealth - mobcard = new /obj/item/weapon/card/id(src) - mobcard.access = mobcard_access.Copy() + if(mobcard_provided) + mobcard = new /obj/item/weapon/card/id(src) + mobcard.access = mobcard_access.Copy() for(var/L in has_langs) languages |= GLOB.all_languages[L] @@ -311,4 +313,4 @@ D.open() else ..() -//Vorestation Add End \ No newline at end of file +//Vorestation Add End