Fixes drone pulling.

This commit is contained in:
Zuhayr
2015-08-13 03:31:57 +09:30
parent 565ccc2baa
commit 9831aede3f

View File

@@ -265,19 +265,17 @@
/mob/living/silicon/robot/drone/start_pulling(var/atom/movable/AM) /mob/living/silicon/robot/drone/start_pulling(var/atom/movable/AM)
if(istype(AM,/obj/item/pipe) || istype(AM,/obj/structure/disposalconstruct)) if(!(istype(AM,/obj/item/pipe) || istype(AM,/obj/structure/disposalconstruct)))
..() if(istype(AM,/obj/item))
else if(istype(AM,/obj/item)) var/obj/item/O = AM
var/obj/item/O = AM if(O.w_class > can_pull_size)
if(O.w_class > can_pull_size) src << "<span class='warning'>You are too small to pull that.</span>"
src << "<span class='warning'>You are too small to pull that.</span>" return
return
else else
..() if(!can_pull_mobs)
else src << "<span class='warning'>You are too small to pull that.</span>"
if(!can_pull_mobs) return
src << "<span class='warning'>You are too small to pull that.</span>" ..()
return
/mob/living/silicon/robot/drone/add_robot_verbs() /mob/living/silicon/robot/drone/add_robot_verbs()
src.verbs |= silicon_subsystems src.verbs |= silicon_subsystems