* Cleanbot sounds.

* Floorbot sounds.

* grammer

* Update floorbot.dm
This commit is contained in:
Belsima
2017-11-27 15:38:00 -06:00
committed by Anewbe
parent 1cb9503790
commit b44924b156
2 changed files with 11 additions and 6 deletions
+6 -4
View File
@@ -1,6 +1,6 @@
/mob/living/bot/cleanbot
name = "Cleanbot"
desc = "A little cleaning robot, he looks so excited!"
desc = "A little cleaning robot, it looks so excited!"
icon_state = "cleanbot0"
req_one_access = list(access_robotics, access_janitor)
botcard_access = list(access_janitor, access_maint_tunnels)
@@ -21,7 +21,8 @@
/mob/living/bot/cleanbot/handleIdle()
if(!screwloose && !oddbutton && prob(5))
custom_emote(2, "makes an excited beeping booping sound!")
custom_emote(2, "makes an excited booping sound!")
playsound(src.loc, 'sound/machines/synth_yes.ogg', 50, 0)
if(screwloose && prob(5)) // Make a mess
if(istype(loc, /turf/simulated))
@@ -29,7 +30,7 @@
T.wet_floor()
if(oddbutton && prob(5)) // Make a big mess
visible_message("Something flies out of [src]. He seems to be acting oddly.")
visible_message("Something flies out of [src]. It seems to be acting oddly.")
var/obj/effect/decal/cleanable/blood/gibs/gib = new /obj/effect/decal/cleanable/blood/gibs(loc)
// TODO - I have a feeling weakrefs will not work in ignore_list, verify this ~Leshana
var/weakref/g = weakref(gib)
@@ -150,6 +151,7 @@
if(!screwloose || !oddbutton)
if(user)
user << "<span class='notice'>The [src] buzzes and beeps.</span>"
playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0)
oddbutton = 1
screwloose = 1
return 1
@@ -199,4 +201,4 @@
return
if(!in_range(src, usr) && src.loc != usr)
return
created_name = t
created_name = t
+5 -2
View File
@@ -6,7 +6,7 @@
/mob/living/bot/floorbot
name = "Floorbot"
desc = "A little floor repairing robot, he looks so excited!"
desc = "A little floor repairing robot, it looks so excited!"
icon_state = "floorbot0"
req_one_access = list(access_robotics, access_construction)
wait_if_pulled = 1
@@ -58,6 +58,7 @@
emagged = 1
if(user)
user << "<span class='notice'>The [src] buzzes and beeps.</span>"
playsound(src.loc, 'sound/machines/buzzbeep.ogg', 50, 0)
return 1
/mob/living/bot/floorbot/Topic(href, href_list)
@@ -100,7 +101,8 @@
addTiles(1)
if(prob(1))
custom_emote(2, "makes an excited booping beeping sound!")
custom_emote(2, "makes an excited beeping sound!")
playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0)
/mob/living/bot/floorbot/handleAdjacentTarget()
if(get_turf(target) == src.loc)
@@ -276,6 +278,7 @@
/mob/living/bot/floorbot/explode()
turn_off()
visible_message("<span class='danger'>\The [src] blows apart!</span>")
playsound(src.loc, "sparks", 50, 1)
var/turf/Tsec = get_turf(src)
var/obj/item/weapon/storage/toolbox/mechanical/N = new /obj/item/weapon/storage/toolbox/mechanical(Tsec)