Medibots now have the proper icons (#2099)
This commit is contained in:
committed by
kevinz000
parent
584a127883
commit
9ec9842f39
@@ -343,8 +343,7 @@
|
||||
build_step++
|
||||
to_chat(user, "<span class='notice'>You complete the Medibot. Beep boop!</span>")
|
||||
var/turf/T = get_turf(src)
|
||||
var/mob/living/simple_animal/bot/medbot/S = new /mob/living/simple_animal/bot/medbot(T)
|
||||
S.skin = skin
|
||||
var/mob/living/simple_animal/bot/medbot/S = new /mob/living/simple_animal/bot/medbot(T, skin)
|
||||
S.name = created_name
|
||||
qdel(src)
|
||||
|
||||
|
||||
@@ -76,6 +76,9 @@
|
||||
treatment_tox = "sodium_thiopental"
|
||||
|
||||
/mob/living/simple_animal/bot/medbot/update_icon()
|
||||
cut_overlays()
|
||||
if(skin)
|
||||
add_overlay("medskin_[skin]")
|
||||
if(!on)
|
||||
icon_state = "medibot0"
|
||||
return
|
||||
@@ -90,17 +93,14 @@
|
||||
else
|
||||
icon_state = "medibot1"
|
||||
|
||||
/mob/living/simple_animal/bot/medbot/Initialize()
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
if(skin)
|
||||
add_overlay("medskin_[skin]")
|
||||
|
||||
/mob/living/simple_animal/bot/medbot/Initialize(mapload, new_skin)
|
||||
. = ..()
|
||||
var/datum/job/doctor/J = new /datum/job/doctor
|
||||
access_card.access += J.get_access()
|
||||
prev_access = access_card.access
|
||||
qdel(J)
|
||||
skin = new_skin
|
||||
update_icon()
|
||||
|
||||
/mob/living/simple_animal/bot/medbot/update_canmove()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user