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
+2 -2
View File
@@ -461,7 +461,7 @@
if (stat & MAINT)
user << "<span class='warning'>There is no connector for your power cell.</span>"
return
if(W.w_class != 3)
if(W.w_class != ITEMSIZE_NORMAL)
user << "\The [W] is too [W.w_class < 3? "small" : "large"] to fit here."
return
@@ -631,7 +631,7 @@
if (((stat & BROKEN) || hacker) \
&& !opened \
&& W.force >= 5 \
&& W.w_class >= 3.0 \
&& W.w_class >= ITEMSIZE_NORMAL \
&& prob(20) )
opened = 2
user.visible_message("<span class='danger'>The APC cover was knocked down with the [W.name] by [user.name]!</span>", \