Adds onmob sprites for wristbound computers (#9463)

This commit is contained in:
Wowzewow (Wezzy)
2020-08-26 08:41:29 +08:00
committed by GitHub
parent 9165e7e06e
commit acb9a9db7a
5 changed files with 76 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
desc_info = "A NanoTrasen design, this wristbound computer allows the user to quickly and safely access critical info, without taking their hands out of the equation."
icon = 'icons/obj/modular_wristbound.dmi'
icon_state = "wristbound"
item_state = "wristbound"
icon_state_menu = "menu"
icon_state_screensaver = "standby"
hardware_flag = PROGRAM_WRISTBOUND
@@ -13,6 +14,31 @@
w_class = ITEMSIZE_NORMAL
light_strength = 1
menu_light_color = COLOR_GREEN
var/flipped = FALSE
contained_sprite = TRUE
/obj/item/modular_computer/wristbound/verb/swapwrists()
set category = "Object"
set name = "Flip Wristbound Computer Wrist"
set src in usr
if(usr.stat || usr.restrained())
return
src.flipped = !src.flipped
if(src.flipped)
src.item_state = "[item_state]_alt"
else
src.item_state = initial(item_state)
to_chat(usr, "You change \the [src] to be on your [src.flipped ? "left" : "right"] hand.")
if(ismob(src.loc))
var/mob/M = src.loc
M.update_inv_gloves()
/obj/item/modular_computer/CouldUseTopic(var/mob/user)
..()
if(iscarbon(user))
playsound(src, 'sound/machines/pda_click.ogg', 20)
/obj/item/modular_computer/wristbound/Initialize()
icon_state_unpowered = icon_state

View File

@@ -20,22 +20,26 @@
battery_module.charge_to_full()
/obj/item/modular_computer/wristbound/preset/advanced/cargo
icon_state = "wristbound_supply"
icon_state = "wristbound_cargo"
item_state = "wristbound_cargo"
_app_preset_type = /datum/modular_computer_app_presets/cargo_delivery
enrolled = 1
/obj/item/modular_computer/wristbound/preset/advanced/engineering
icon_state = "wristbound_engineering"
item_state = "wristbound_engineering"
_app_preset_type = /datum/modular_computer_app_presets/engineering
enrolled = 1
/obj/item/modular_computer/wristbound/preset/advanced/medical
icon_state = "wristbound_medical"
item_state = "wristbound_medical"
_app_preset_type = /datum/modular_computer_app_presets/medical
enrolled = 1
/obj/item/modular_computer/wristbound/preset/advanced/security
icon_state = "wristbound_security"
item_state = "wristbound_security"
_app_preset_type = /datum/modular_computer_app_presets/security
enrolled = 1
@@ -45,11 +49,13 @@
/obj/item/modular_computer/wristbound/preset/advanced/research
icon_state = "wristbound_science"
item_state = "wristbound_science"
_app_preset_type = /datum/modular_computer_app_presets/research
enrolled = 1
/obj/item/modular_computer/wristbound/preset/advanced/command
icon_state = "wristbound_command"
item_state = "wristbound_command"
_app_preset_type = /datum/modular_computer_app_presets/command
enrolled = 1