Files
fulpstation/code/modules/mining/machine_unloading.dm
SgtHunk 0e81dab0cf TGU: Agent ID buff, Even more Circuit stuff, Spectroscopy, DBcore subsystem to help with crashes (#238)
* lol 882 conflicts

* build.js never forget

* um

* and this

* sure

* i refuse to see life in black and white

* oh Lord, don't ask me what I mean

* Just say that it's on meeee

* that's just the weight of the world

* of course the british file gives me trouble

fuck you british people

* wow, this is your room? it's so cool!

[png of a bloodsucker lair full of dead bloodless people]

* Make a lot of money and feel dead inside

* tell me you didnt test your code without telling me you didnt test your code

* stay winning

* mech toy repath

* yea

add this to the readme john!!!!! (haha)

* you mean trolling the right-click functions?

* yea

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>

* yea 2

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>

* span macros

* virtual insanity is what we're living

it's aaaalright now

* um

* yeah

* lol

* this makes it compile i think

why beefman code be like this

* i knew it was going to happen i just hoped it wouldn't

* forgot this

Co-authored-by: Enricode <SgtHunk@users.noreply.github.com>
Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
2021-06-29 21:23:35 -06:00

24 lines
712 B
Plaintext

/**********************Unloading unit**************************/
/obj/machinery/mineral/unloading_machine
name = "unloading machine"
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "unloader"
density = TRUE
input_dir = WEST
output_dir = EAST
needs_item_input = TRUE
processing_flags = START_PROCESSING_MANUALLY
/obj/machinery/mineral/unloading_machine/pickup_item(datum/source, atom/movable/target, direction)
if(QDELETED(target))
return
if(istype(target, /obj/structure/ore_box))
var/obj/structure/ore_box/box = target
for(var/obj/item/stack/ore/O in box)
unload_mineral(O)
else if(istype(target, /obj/item/stack/ore))
var/obj/item/stack/ore/O = target
unload_mineral(O)