Fixes issue 942, patch by Aranclanos. Wood now autostacks as well.

Commiting my spooky october ghosts!

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4763 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
d_h2005@yahoo.com
2012-09-28 02:55:05 +00:00
parent a6e7c085ef
commit c6068fab48
2 changed files with 10 additions and 1 deletions

View File

@@ -1051,10 +1051,18 @@
if(istype(W, /obj/item/weapon/circular_saw) || istype(W, /obj/item/weapon/hatchet) || (istype(W, /obj/item/weapon/twohanded/fireaxe) && W:wielded) || istype(W, /obj/item/weapon/melee/energy))
user.show_message("<span class='notice'>You make planks out of the [src]!</span>", 1)
for(var/i=0,i<2,i++)
new /obj/item/stack/sheet/wood (src.loc)
var/obj/item/stack/sheet/wood/NG = new (user.loc)
for (var/obj/item/stack/sheet/wood/G in user.loc)
if(G==NG)
continue
if(G.amount>=G.max_amount)
continue
G.attackby(NG, user)
usr << "You add the newly-formed wood to the stack. It now contains [NG.amount] planks."
del(src)
return
/obj/item/weapon/grown/sunflower // FLOWER POWER!
name = "sunflower"
desc = "It's beautiful! A certain person might beat you to death if you trample these."
@@ -1319,3 +1327,4 @@
src.pixel_x = rand(-5.0, 5)
src.pixel_y = rand(-5.0, 5)