mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 12:05:59 +01:00
[MIRROR] A few minor tape recorder fixes (#2454)
* A few minor tape recorder fixes (#55881) Tape recorder cassette can no longer be rewound with a pen if it is not unwound. Tape recorder transcript should look like it has text written on it! Tape recorder can now play full tapes. * A few minor tape recorder fixes Co-authored-by: prodirus <44090982+prodirus@users.noreply.github.com>
This commit is contained in:
@@ -191,7 +191,7 @@
|
||||
to_chat(usr, "<span class='notice'>Playing started.</span>")
|
||||
var/used = mytape.used_capacity //to stop runtimes when you eject the tape
|
||||
var/max = mytape.max_capacity
|
||||
for(var/i = 1, used < max, sleep(10 * playsleepseconds))
|
||||
for(var/i = 1, used <= max, sleep(10 * playsleepseconds))
|
||||
if(!mytape)
|
||||
break
|
||||
if(playing == FALSE)
|
||||
@@ -263,6 +263,7 @@
|
||||
t1 += "[mytape.storedinfo[i]]<BR>"
|
||||
P.info = t1
|
||||
P.name = "paper- 'Transcript'"
|
||||
P.update_icon_state()
|
||||
usr.put_in_hands(P)
|
||||
canprint = FALSE
|
||||
addtimer(VARSET_CALLBACK(src, canprint, TRUE), 30 SECONDS)
|
||||
@@ -315,7 +316,7 @@
|
||||
|
||||
|
||||
/obj/item/tape/attackby(obj/item/I, mob/user, params)
|
||||
if(ruined && I.tool_behaviour == TOOL_SCREWDRIVER || istype(I, /obj/item/pen))
|
||||
if(ruined && (I.tool_behaviour == TOOL_SCREWDRIVER || istype(I, /obj/item/pen)))
|
||||
to_chat(user, "<span class='notice'>You start winding the tape back in...</span>")
|
||||
if(I.use_tool(src, user, 120))
|
||||
to_chat(user, "<span class='notice'>You wound the tape back in.</span>")
|
||||
|
||||
Reference in New Issue
Block a user