diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm index 2f56fa82206..5b8100857c1 100644 --- a/code/game/machinery/atmoalter/scrubber.dm +++ b/code/game/machinery/atmoalter/scrubber.dm @@ -181,6 +181,7 @@ Power regulator: - - The bolts are too tight for you to unscrew!" + return if(on) user << "Turn it off first!" return @@ -210,16 +214,10 @@ Power regulator: - You [anchored ? "wrench" : "unwrench"] \the [src]." - return + else if ((istype(W, /obj/item/device/analyzer)) && get_dist(user, src) <= 1) + atmosanalyzer_scan(air_contents, user) - ..() /obj/machinery/portable_atmospherics/scrubber/huge/stationary name = "stationary air scrubber" - -/obj/machinery/portable_atmospherics/scrubber/huge/stationary/attackby(obj/item/weapon/W, mob/user) - if(istype(W, /obj/item/weapon/wrench)) - user << "The bolts are too tight for you to unscrew!" - return - - ..() \ No newline at end of file + stationary = 0 diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index 858e4f42e97..ecb7eca0247 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -48,15 +48,19 @@ var/obj/item/radio/integrated/signal/sradio // AI's signaller -/mob/living/silicon/pai/New(var/obj/item/device/paicard) +/mob/living/silicon/pai/New(var/obj/item/device/paicard/P) make_laws() canmove = 0 - src.loc = paicard - card = paicard + if(!istype(P)) //when manually spawning a pai, we create a card to put it into. + var/newcardloc = P + P = new /obj/item/device/paicard(newcardloc) + P.setPersonality(src) + loc = P + card = P sradio = new(src) if(card) if(!card.radio) - card.radio = new /obj/item/device/radio(src.card) + card.radio = new /obj/item/device/radio(card) radio = card.radio //PDA