Files
Bubberstation/code/datums/wires/conveyor.dm
Bloop 69f51c6c65 Fixes typo 'transfered', olive oil reaction repath (#78064)
## 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
2023-09-02 18:23:18 +01: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