mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 10:04:30 +01:00
87bfa7a61a
* Fixes typo 'transfered', olive oil reaction repath * Modular * Update condiment.dm * Update recipes_guide.dm * Update _cup.dm --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
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
|