From b1990d4293e885fff6a9db98f0fac5e8bef06333 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Sat, 21 May 2016 17:51:39 -0700 Subject: [PATCH] You can now wipe and rename tapes --- .../objects/items/devices/taperecorder.dm | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/taperecorder.dm b/code/game/objects/items/devices/taperecorder.dm index ef79d5c2a35..9ea2f17378a 100644 --- a/code/game/objects/items/devices/taperecorder.dm +++ b/code/game/objects/items/devices/taperecorder.dm @@ -233,7 +233,6 @@ sleep(300) canprint = 1 - //empty tape recorders /obj/item/device/taperecorder/empty/New() return @@ -260,12 +259,29 @@ to_chat(user, "You pull out all the tape!") ruin() +/obj/item/device/tape/verb/wipe() + set name = "Wipe Tape" + set category = "Object" + + if(usr.stat) + return + if(ruined) + return + + to_chat(usr, "You erase the data from the [src]") + clear() + +/obj/item/device/tape/proc/clear() + used_capacity = 0 + storedinfo.Cut() + timestamp.Cut() /obj/item/device/tape/proc/ruin() overlays += "ribbonoverlay" ruined = 1 + /obj/item/device/tape/proc/fix() overlays -= "ribbonoverlay" ruined = 0 @@ -277,6 +293,12 @@ if(do_after(user, 120, target = src)) to_chat(user, "You wound the tape back in!") fix() + else if(istype(I, /obj/item/weapon/pen)) + var/title = stripped_input(usr,"What do you want to name the tape?", "Tape Renaming", name, MAX_NAME_LEN) + if(!title || !length(title)) + name = initial(name) + return + name = "tape - [title]" //Random colour tapes