diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm index 8cc5ef81761e2..6bbba8dcd59d9 100644 --- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm +++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm @@ -1,7 +1,7 @@ /mob/living/simple_animal/bot/secbot/ed209 name = "\improper ED-209 Security Robot" desc = "A security robot. He looks less than thrilled." - icon_state = "ed2090" + icon_state = "ed209" density = TRUE health = 100 maxHealth = 100 @@ -16,8 +16,8 @@ var/lastfired = 0 var/shot_delay = 15 var/shoot_sound = 'sound/weapons/laser.ogg' - var/projectile = /obj/item/projectile/beam/disabler - var/fair_market_projectile = /obj/item/projectile/bullet/c38 // For shooting the worst scumbags of all: the poor + var/projectile = /obj/projectile/beam/disabler + var/fair_market_projectile = /obj/projectile/bullet/c38 // For shooting the worst scumbags of all: the poor do_footstep = TRUE /mob/living/simple_animal/bot/secbot/ed209/Initialize(mapload) @@ -62,9 +62,9 @@ /mob/living/simple_animal/bot/secbot/ed209/proc/set_weapon() //used to update the projectile type and firing sound shoot_sound = 'sound/weapons/laser.ogg' if(emagged == 2) - projectile = /obj/item/projectile/beam + projectile = /obj/projectile/beam else - projectile = /obj/item/projectile/beam/disabler + projectile = /obj/projectile/beam/disabler /mob/living/simple_animal/bot/secbot/ed209/proc/shootAt(mob/target) if(world.time <= lastfired + shot_delay) diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index ea13abdc3e379..03fad04c2826f 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -68,7 +68,8 @@ /mob/living/simple_animal/bot/secbot/Initialize(mapload) . = ..() - update_icon() + update_appearance(UPDATE_ICON) + var/datum/job/J = SSjob.GetJob(JOB_NAME_DETECTIVE) access_card.access = J.get_access() prev_access = access_card.access.Copy() @@ -81,11 +82,11 @@ ) AddElement(/datum/element/connect_loc, loc_connections) -/mob/living/simple_animal/bot/secbot/update_icon() +/mob/living/simple_animal/bot/secbot/update_icon_state() if(mode == BOT_HUNT) icon_state = "[initial(icon_state)]-c" return - ..() + return ..() /mob/living/simple_animal/bot/secbot/turn_off() ..() @@ -196,7 +197,7 @@ oldtarget_name = user.name audible_message("[src] buzzes oddly!") declare_arrests = FALSE - update_icon() + update_appearance() /mob/living/simple_animal/bot/secbot/bullet_act(obj/projectile/Proj) if(istype(Proj , /obj/projectile/beam)||istype(Proj, /obj/projectile/bullet)) @@ -239,7 +240,7 @@ if(!C.handcuffed) C.handcuffed = new /obj/item/restraints/handcuffs/cable/zipties/used(C) C.update_handcuffed() - playsound(src, "law", 50, 0) + playsound(src, "law", 50, FALSE) back_to_idle() /mob/living/simple_animal/bot/secbot/proc/stun_attack(mob/living/carbon/C) @@ -267,7 +268,7 @@ log_combat(src, C, "stunned") playsound(src, 'sound/weapons/egloves.ogg', 50, TRUE, -1) icon_state = "[initial(icon_state)]-c" - addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon)), 2) + addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_appearance)), 0.2 SECONDS) /mob/living/simple_animal/bot/secbot/handle_automated_action() if(!..()) diff --git a/code/modules/spells/spell_types/conjure.dm b/code/modules/spells/spell_types/conjure.dm index 9415f0a35cb1e..d1d2dd29f66a5 100644 --- a/code/modules/spells/spell_types/conjure.dm +++ b/code/modules/spells/spell_types/conjure.dm @@ -57,7 +57,13 @@ summon_type = list(/mob/living/simple_animal/bot/secbot/ed209) summon_amt = 10 range = 3 - newVars = list("emagged" = 2, "remote_disabled" = 1, "projectile" = /obj/item/projectile/beam/laser, "declare_arrests" = 0,"name" = "Wizard's Justicebot") + newVars = list( + "emagged" = 2, + "remote_disabled" = 1, + "projectile" = /obj/projectile/beam/laser, + "declare_arrests" = 0, + "name" = "Wizard's Justicebot" + ) /obj/effect/proc_holder/spell/aoe_turf/conjure/linkWorlds name = "Link Worlds" diff --git a/icons/mob/aibots.dmi b/icons/mob/aibots.dmi index 84deedc5c5c4b..710686d82e66d 100644 Binary files a/icons/mob/aibots.dmi and b/icons/mob/aibots.dmi differ