From 4abe623a53d034d61354b4daca916f9d462124f2 Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Fri, 10 Sep 2010 00:05:11 +0000 Subject: [PATCH] Disconnected revolutionaries regain their indicator icons when they log back in. Rev converting is now limited to carbon-based life. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@84 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/devices/flash.dm | 2 +- code/modules/mob/login.dm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/objects/devices/flash.dm b/code/game/objects/devices/flash.dm index 95b80fd8165..1adf7f162da 100644 --- a/code/game/objects/devices/flash.dm +++ b/code/game/objects/devices/flash.dm @@ -44,7 +44,7 @@ if (prob(M.eye_stat - 20 + 1)) M << "\red You go blind!" M.sdisabilities |= 1 - if(ticker.mode.name == "revolution") + if(ticker.mode.name == "revolution" && istype(M, /mob/living/carbon)) if(user.mind in ticker.mode:head_revolutionaries) ticker.mode:add_revolutionary(M.mind) diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index dc8296273a2..97cb425a888 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -37,4 +37,8 @@ src.logged_in = 1 if (!src.client.changes) src.changes() + if(ticker) + if(ticker.mode.name == "revolution") + if ((src.mind in ticker.mode:revolutionaries) || (src.mind in ticker.mode:head_revolutionaries)) + ticker.mode:update_rev_icons_added(src.mind) ..()