Makes mechas able to suck ore into boxes.

I forgot ripleys were even a thing for the 50th time.
This commit is contained in:
C.L
2022-09-26 01:19:14 -04:00
parent 670e91c80a
commit 8ca1b30f5a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -48,7 +48,8 @@
if(ore_box)
for(var/obj/item/weapon/ore/ore in range(chassis,1))
if(get_dir(chassis,ore)&chassis.dir)
ore.forceMove(ore_box)
ore_box.stored_ore[ore.material]++
qdel(ore)
else if(isliving(target))
drill_mob(target, chassis.occupant)
return 1
+2 -1
View File
@@ -38,7 +38,8 @@
if(ore_box)
for(var/obj/item/weapon/ore/ore in range(1, src))
if(ore.Adjacent(src) && ((get_dir(src, ore) & dir) || ore.loc == loc)) //we can reach it and it's in front of us? grab it!
ore.forceMove(ore_box)
ore_box.stored_ore[ore.material]++
qdel(ore)
/obj/mecha/working/ripley/Destroy()
for(var/atom/movable/A in src.cargo)