From fb335d3a4f602f7748160f084e4deabc7a467f9e Mon Sep 17 00:00:00 2001 From: GeneralChaos81 Date: Tue, 13 Sep 2016 11:28:28 +1000 Subject: [PATCH] to_chat and I.forcemove changes. Noticed half (almost exactly) of the conveyors weren't synced to their levers, so put Spawn(5) back in. --- code/modules/recycling/conveyor2.dm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 81c171d4031..39a4b1b86e8 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -131,20 +131,19 @@ var/obj/item/conveyor_construct/C = new/obj/item/conveyor_construct(src.loc) C.id = id transfer_fingerprints_to(C) - user << "You remove the conveyor belt." + to_chat(usr,"You remove the conveyor belt.") qdel(src) else if(istype(I, /obj/item/weapon/wrench)) if(!(stat & BROKEN)) playsound(loc, 'sound/items/Ratchet.ogg', 50, 1) - //setDir(turn(dir,-45)) //No such proc dir = turn(dir,-45) update_move_direction() - user << "You rotate [src]." + to_chat(user, "You rotate [src].") else if(user.a_intent != "harm") if(user.drop_item()) - I.loc = src.loc + I.forceMove(loc) else return ..() @@ -220,10 +219,11 @@ id = newid update() - conveyors = list() - for(var/obj/machinery/conveyor/C in machines) - if(C.id == id) - conveyors += C + spawn(5) + conveyors = list() + for(var/obj/machinery/conveyor/C in machines) + if(C.id == id) + conveyors += C // update the icon depending on the position @@ -250,7 +250,7 @@ CHECK_TICK /obj/machinery/conveyor_switch/oneway - convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) + convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.) - Cargo uses a reverse belt. // attack with hand, switch position /obj/machinery/conveyor_switch/attack_hand(mob/user) @@ -288,7 +288,7 @@ var/obj/item/conveyor_switch_construct/C = new/obj/item/conveyor_switch_construct(src.loc) C.id = id transfer_fingerprints_to(C) - user << "You deattach the conveyor switch." + to_chat(user,"You deattach the conveyor switch.") qdel(src) else if(istype(I, /obj/item/device/multitool)) @@ -325,7 +325,7 @@ /obj/item/conveyor_construct/attackby(obj/item/I, mob/user, params) ..() if(istype(I, /obj/item/conveyor_switch_construct)) - user << "You link the switch to the conveyor belt assembly." + to_chat(user, "You link the switch to the conveyor belt assembly.") var/obj/item/conveyor_switch_construct/C = I id = C.id @@ -334,7 +334,7 @@ return var/cdir = get_dir(A, user) if(A == user.loc) - user << "You cannot place a conveyor belt under yourself." + to_chat(user, "You cannot place a conveyor belt under yourself.") return var/obj/machinery/conveyor/C = new/obj/machinery/conveyor(A,cdir) C.id = id @@ -362,7 +362,7 @@ found = 1 break if(!found) - user << "\icon[src]The conveyor switch did not detect any linked conveyor belts in range." + to_chat(usr, "\icon[src]The conveyor switch did not detect any linked conveyor belts in range.") return var/obj/machinery/conveyor_switch/NC = new/obj/machinery/conveyor_switch(A, id) transfer_fingerprints_to(NC)