From 0ab00bb9ffc1240bfec3abf414146becb87124f5 Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Mon, 29 Jul 2019 21:18:42 +0200 Subject: [PATCH] More refactor + wrong item used fix --- .../crates_lockers/closets/fireaxe.dm | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm index 640583adaf2..d22f0a59a61 100644 --- a/code/game/objects/structures/crates_lockers/closets/fireaxe.dm +++ b/code/game/objects/structures/crates_lockers/closets/fireaxe.dm @@ -55,15 +55,14 @@ if(!fireaxe) var/obj/item/twohanded/fireaxe/F = O if(F.wielded) - to_chat(user, "Unwield the axe first.") + to_chat(user, "Unwield \the [F] first.") return - if(!user.canUnEquip(F, FALSE)) - to_chat(user, "\The [src] stays stuck to your hands!") + if(!user.unEquip(F, FALSE)) + to_chat(user, "\The [F] stays stuck to your hands!") return fireaxe = F - user.drop_item(F) contents += F - to_chat(user, "You place the fire axe back in the [name].") + to_chat(user, "You place \the [F] back in the [name].") update_icon() else if(smashed) @@ -103,8 +102,9 @@ if(localopened) if(fireaxe) user.put_in_hands(fireaxe) + to_chat(user, "You take \the [fireaxe] from the [src].") fireaxe = null - to_chat(user, "You take the fire axe from the [name].") + add_fingerprint(user) update_icon() else @@ -127,7 +127,7 @@ /obj/structure/closet/fireaxecabinet/attack_tk(mob/user as mob) if(localopened && fireaxe) fireaxe.forceMove(loc) - to_chat(user, "You telekinetically remove the fire axe.") + to_chat(user, "You telekinetically remove \the [fireaxe].") fireaxe = null update_icon() return @@ -157,12 +157,12 @@ if(localopened) if(fireaxe) usr.put_in_hands(fireaxe) + to_chat(usr, "You take \the [fireaxe] from the [src].") fireaxe = null - to_chat(usr, "You take the Fire axe from the [name].") else - to_chat(usr, "The [name] is empty.") + to_chat(usr, "The [src] is empty.") else - to_chat(usr, "The [name] is closed.") + to_chat(usr, "The [src] is closed.") update_icon() /obj/structure/closet/fireaxecabinet/attack_ai(mob/user as mob)