From d44b1dadf079378e6627c6ebccc6e18a2b2d6c20 Mon Sep 17 00:00:00 2001
From: Nadyr <41974248+Darlantanis@users.noreply.github.com>
Date: Mon, 11 Mar 2019 02:08:08 -0500
Subject: [PATCH] Fixed five errors: -Three uses of 'AddUses' proc, ours is
defined as 'add_uses' -Removed two uses of 'status_string' proc. We don't
have that proc and probably not important as it's for display messages.
---
code/game/objects/items/devices/lightreplacer.dm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm
index 4fd75b1b49..855cab29ef 100644
--- a/code/game/objects/items/devices/lightreplacer.dm
+++ b/code/game/objects/items/devices/lightreplacer.dm
@@ -88,7 +88,7 @@
if(uses < max_uses)
if(!user.unEquip(W))
return
- AddUses(1)
+ add_uses(1)
qdel(L)
else
if(!user.unEquip(W))
@@ -97,7 +97,7 @@
qdel(L)
if(new_bulbs != 0)
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1)
- to_chat(user, "You insert the [L.name] into the [src.name]. " + status_string() + "")
+ to_chat(user, "You insert \the [L.name] into \the [src.name]. You have [uses] light\s remaining.")
return
if(istype(W, /obj/item/weapon/storage))
@@ -113,7 +113,7 @@
break
if(L.status == LIGHT_OK)
replaced_something = TRUE
- AddUses(1)
+ add_uses(1)
qdel(L)
else if(L.status == LIGHT_BROKEN || L.status == LIGHT_BURNED)
@@ -129,7 +129,7 @@
to_chat(user, "\The [src] is full!")
return
- to_chat(user, "You fill \the [src] with lights from \the [S]. " + status_string() + "")
+ to_chat(user, "You fill \the [src] with lights from \the [S].")
/obj/item/device/lightreplacer/attack_self(mob/user)
/* // This would probably be a bit OP. If you want it though, uncomment the code.
@@ -161,7 +161,7 @@
bulb_shards += amount
var/new_bulbs = round(bulb_shards / shards_required)
if(new_bulbs > 0)
- AddUses(new_bulbs)
+ add_uses(new_bulbs)
bulb_shards = bulb_shards % shards_required
return new_bulbs