mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 11:35:19 +01:00
Makes mechas able to suck ore into boxes.
I forgot ripleys were even a thing for the 50th time.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user