Fireaxe now has 18 force when wielded instead of 30. It destroys windows and grilles in one hit, however.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2492 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-11-05 20:50:12 +00:00
parent c266a2513f
commit c4b1663853
3 changed files with 27 additions and 13 deletions
+14
View File
@@ -201,3 +201,17 @@
for(var/mob/O in viewers(src, null))
O.show_message(text("\red <B>The mousetrap is triggered by [A].</B>"), 1)
src.triggered(null)
/obj/item/weapon/fireaxe/afterattack(atom/A as mob|obj|turf|area, mob/user as mob)
..()
if(A && wielded && (istype(A,/obj/structure/window) || istype(A,/obj/structure/grille))) //destroys windows and grilles in one hit
if(istype(A,/obj/structure/window)) //should just make a window.Break() proc but couldn't bother with it
var/obj/structure/window/W = A
new /obj/item/weapon/shard( W.loc )
if(W.reinf) new /obj/item/stack/rods( W.loc)
if (W.dir == SOUTHWEST)
new /obj/item/weapon/shard( W.loc )
if(W.reinf) new /obj/item/stack/rods( W.loc)
del(A)