mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-21 02:56:39 +01:00
The following items now have some functions triggered by alt click.
- Flashlight - geiger counter - T ray - Labcoats and such - Microwave Feel free to suggest more.
This commit is contained in:
@@ -221,6 +221,9 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
|
||||
if(video_source)
|
||||
watch_video(user)
|
||||
|
||||
/obj/item/device/communicator/AltClick(mob/user) //Chomp edit.
|
||||
attack_self(user) //wow big skill
|
||||
|
||||
// Proc: MouseDrop()
|
||||
//Same thing PDAs do
|
||||
/obj/item/device/communicator/MouseDrop(obj/over_object as obj)
|
||||
|
||||
@@ -116,6 +116,9 @@
|
||||
user.update_action_buttons()
|
||||
return 1
|
||||
|
||||
/obj/item/device/flashlight/AltClick(mob/user)//chomp edit
|
||||
attack_self(user)
|
||||
|
||||
/obj/item/device/flashlight/emp_act(severity)
|
||||
for(var/obj/O in contents)
|
||||
O.emp_act(severity)
|
||||
|
||||
@@ -58,6 +58,9 @@
|
||||
update_icon()
|
||||
to_chat(user, "<span class='notice'>\icon[src] You switch [scanning ? "on" : "off"] \the [src].</span>")
|
||||
|
||||
/obj/item/device/geiger/AltClick(mob/user)//chomp edit
|
||||
attack_self(user)
|
||||
|
||||
/obj/item/device/geiger/update_icon()
|
||||
if(!scanning)
|
||||
icon_state = "geiger_off"
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
/obj/item/device/t_scanner/attack_self(mob/user)
|
||||
set_active(!on)
|
||||
|
||||
/obj/item/device/t_scanner/AltClick(mob/user)//chomp edit
|
||||
attack_self(user)
|
||||
|
||||
/obj/item/device/t_scanner/proc/set_active(var/active)
|
||||
on = active
|
||||
if(on)
|
||||
|
||||
Reference in New Issue
Block a user