Fixes Naming ED-209 and ED-CLN

Naming the ED-209 and ED-CLN will now result in the bot keeping its assigned name.

Also removes maintenance access from ED-CLN (like the cleanbot previously) so it doesn't get stuck in maintenance.
This commit is contained in:
Nalarac
2019-11-28 13:43:05 -06:00
parent 4aecbd344d
commit d814936b7e
3 changed files with 42 additions and 3 deletions
+2 -1
View File
@@ -203,7 +203,8 @@
build_step++
to_chat(user, "<span class='notice'>You complete the ED-209.</span>")
var/turf/T = get_turf(src)
new /mob/living/bot/secbot/ed209(T,created_name,lasercolor)
var/mob/living/bot/secbot/ed209/S = new /mob/living/bot/secbot/ed209(T)
S.name = created_name
user.drop_item()
qdel(W)
user.drop_from_inventory(src)
+3 -2
View File
@@ -3,7 +3,7 @@
desc = "A large cleaning robot. It looks rather efficient."
icon_state = "edCLN0"
req_one_access = list(access_robotics, access_janitor)
botcard_access = list(access_janitor, access_maint_tunnels)
botcard_access = list(access_janitor)
locked = 0 // Start unlocked so roboticist can set them to patrol.
wait_if_pulled = 0 // One big boi.
@@ -229,7 +229,8 @@
build_step++
to_chat(user, "<span class='notice'>You complete the ED-CLN.</span>")
var/turf/T = get_turf(src)
new /mob/living/bot/cleanbot/edCLN(T,created_name)
var/mob/living/bot/cleanbot/edCLN/S = new /mob/living/bot/cleanbot/edCLN(T)
S.name = created_name
user.drop_item()
qdel(W)
user.drop_from_inventory(src)