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

View File

@@ -877,7 +877,7 @@ Note that amputating the affected organ does in fact remove the infection from t
if(DROPLIMB_BURN)
new /obj/effect/decal/cleanable/ash(get_turf(victim))
for(var/obj/item/I in src)
if(I.w_class > 2 && !istype(I,/obj/item/organ))
if(I.w_class > ITEMSIZE_SMALL && !istype(I,/obj/item/organ))
I.loc = get_turf(src)
qdel(src)
if(DROPLIMB_BLUNT)
@@ -899,7 +899,7 @@ Note that amputating the affected organ does in fact remove the infection from t
I.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30)
for(var/obj/item/I in src)
if(I.w_class <= 2)
if(I.w_class <= ITEMSIZE_SMALL)
qdel(I)
continue
I.loc = get_turf(src)
@@ -1144,7 +1144,7 @@ Note that amputating the affected organ does in fact remove the infection from t
for(var/atom/movable/implant in implants)
//large items and non-item objs fall to the floor, everything else stays
var/obj/item/I = implant
if(istype(I) && I.w_class < 3)
if(istype(I) && I.w_class < ITEMSIZE_NORMAL)
implant.loc = get_turf(victim.loc)
else
implant.loc = src