mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 01:13:18 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
/datum/wires/mulebot
|
|
holder_type = /mob/living/simple_animal/bot/mulebot
|
|
proper_name = "Mulebot"
|
|
randomize = TRUE
|
|
|
|
/datum/wires/mulebot/New(atom/holder)
|
|
wires = list(
|
|
WIRE_POWER1, WIRE_POWER2,
|
|
WIRE_AVOIDANCE, WIRE_LOADCHECK,
|
|
WIRE_MOTOR1, WIRE_MOTOR2,
|
|
WIRE_RX, WIRE_TX, WIRE_BEACON
|
|
)
|
|
..()
|
|
|
|
/datum/wires/mulebot/interactable(mob/user)
|
|
if(!..())
|
|
return FALSE
|
|
var/mob/living/simple_animal/bot/mulebot/M = holder
|
|
if(M.open)
|
|
return TRUE
|
|
|
|
/datum/wires/mulebot/on_pulse(wire)
|
|
var/mob/living/simple_animal/bot/mulebot/M = holder
|
|
if(!M.has_power(TRUE))
|
|
return //logically mulebots can't flash and beep if they don't have power.
|
|
switch(wire)
|
|
if(WIRE_POWER1, WIRE_POWER2)
|
|
holder.visible_message(span_notice("[icon2html(M, viewers(holder))] The charge light flickers."))
|
|
if(WIRE_AVOIDANCE)
|
|
holder.visible_message(span_notice("[icon2html(M, viewers(holder))] The external warning lights flash briefly."))
|
|
flick("[M.base_icon]1", M)
|
|
if(WIRE_LOADCHECK)
|
|
holder.visible_message(span_notice("[icon2html(M, viewers(holder))] The load platform clunks."))
|
|
if(WIRE_MOTOR1, WIRE_MOTOR2)
|
|
holder.visible_message(span_notice("[icon2html(M, viewers(holder))] The drive motor whines briefly."))
|
|
else
|
|
holder.visible_message(span_notice("[icon2html(M, viewers(holder))] You hear a radio crackle."))
|