Files
Polaris/code/game/machinery/buttons.dm
SpookertonandGitHub 9a1b8322bd trained drakes can collect/drop items and use buttons, fire alarms, and levers (#8734)
* drakes can collect/drop items and use buttons

* add a basic implementation of mob dexterity levels

* trained drake emotes are less visually intrusive

also fixes being able to take anchored items as a drake
also fixes some double messages on drake storage
also fixes animals being able to attack/scratch doors without a cooldown
also adds optional scratch_sound on simple_mob for when scratching a door

* fire alarm & conveyor switch drake interactions

also fix runes for actions
also fix not showing progress for dropping an item

* trained drake button/inventory review tweaks

* animal harness suggestions early return tweak
2022-10-13 17:59:35 -08:00

20 lines
520 B
Plaintext

/obj/machinery/button
name = "button"
icon = 'icons/obj/objects.dmi'
icon_state = "launcherbtt"
layer = ABOVE_WINDOW_LAYER
desc = "A remote control switch for something."
var/id = null
var/active = 0
anchored = 1.0
use_power = USE_POWER_IDLE
idle_power_usage = 2
active_power_usage = 4
required_dexterity = MOB_DEXTERITY_SIMPLE_MACHINES
/obj/machinery/button/attack_ai(mob/user)
return attack_hand(user)
/obj/machinery/button/attackby(obj/item/item, mob/user)
return attack_hand(user)