Files
SkyratBot 87bfa7a61a [MIRROR] Fixes typo 'transfered', olive oil reaction repath [MDB IGNORE] (#23469)
* 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>
2023-09-04 08:49:33 -04:00

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