- Fixes issue 812.

- Adds logging for throwing. Pulling and grabbing does not need to be logged in detail, since kill-intent grabbing is logged already.
- Something broke throwing, which made it runtime. This also fixes that.
- Fixes the problem of applying wires to a stack of glass, which only contains one piece of glass using wires, deleting the glass piece and not spawning a light tile. A call of the glass' use(1) was misplaced, which had the chance of deleting the object, thus stopping the proc, before it spawned the light tile.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4478 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-08-17 16:19:04 +00:00
parent f9d80e12ce
commit 3be7d6d8ef
3 changed files with 21 additions and 14 deletions
+1 -7
View File
@@ -19,15 +19,9 @@ SHARDS
user << "\b There is not enough wire in this coil. You need 5 lengths."
return
CC.use(5)
src.use(1)
user << "\blue You attach wire to the [name]."
new /obj/item/stack/light_w(user.loc)
if(CC && CC.amount <= 0) //CC may have already been deleted by 'CC.use(5)' a few lines up.
user.u_equip(CC)
del(CC)
if(src.amount <= 0)
user.u_equip(src)
del(src)
src.use(1)
else if( istype(W, /obj/item/stack/rods) )
var/obj/item/stack/rods/V = W
var/obj/item/stack/sheet/rglass/RG = new (user.loc)