Pulling & Size Fixes

Fixes inability for mobs to pull certain structures like mining crates.
Fixes w_class numbers I missed.
This commit is contained in:
Neerti
2016-09-24 16:18:32 -04:00
parent 57c5de6d1c
commit 6f8603e042
16 changed files with 29 additions and 29 deletions
@@ -18,7 +18,7 @@
..()
pixel_x = rand(-10,10)
pixel_y = rand(-10,10)
if(w_class > 0 && w_class < 4)
if(w_class > 0 && w_class < ITEMSIZE_LARGE)
icon_state = "gift[w_class]"
else
icon_state = "gift[pick(1, 2, 3)]"
@@ -128,7 +128,7 @@
..()
if (!( locate(/obj/structure/table, src.loc) ))
user << "<span class='warning'>You MUST put the paper on a table!</span>"
if (W.w_class < 4)
if (W.w_class < ITEMSIZE_LARGE)
if (user.get_type_in_hands(/obj/item/weapon/wirecutters))
var/a_used = 2 ** (src.w_class - 1)
if (src.amount < a_used)