mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
## About The Pull Request Transferred. ## Why It's Good For The Game How did this get to be in 71 files?! This bothers me. Also changes 'quality_oil' typepath in the reactions to 'olive_oil' to match its rename post-foodening. ## Changelog N/A
21 lines
573 B
Plaintext
21 lines
573 B
Plaintext
/datum/wires/conveyor
|
|
holder_type = /obj/machinery/conveyor_switch
|
|
proper_name = "Conveyor"
|
|
/// var holder that logs who put the assembly inside and gets transferred to the switch on pulse
|
|
var/datum/weakref/fingerman_ref
|
|
|
|
/datum/wires/conveyor/New(atom/holder)
|
|
add_duds(1)
|
|
..()
|
|
|
|
/datum/wires/conveyor/on_pulse(wire)
|
|
var/obj/machinery/conveyor_switch/C = holder
|
|
var/mob/living/carbon/human/fingerman = fingerman_ref?.resolve()
|
|
C.interact(fingerman)
|
|
|
|
/datum/wires/conveyor/interactable(mob/user)
|
|
if(!..())
|
|
return FALSE
|
|
fingerman_ref = WEAKREF(user)
|
|
return TRUE
|