Modular Wristbound Sprite Revert (#10206)

This commit is contained in:
Geeves
2020-10-23 16:45:51 +02:00
committed by GitHub
parent 3154376d3f
commit 788b02086f
4 changed files with 7 additions and 31 deletions
@@ -4,7 +4,6 @@
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
@@ -14,29 +13,6 @@
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
flipped = !flipped
if(flipped)
overlay_state = "[item_state]_alt"
item_state = "[item_state]_alt"
else
item_state = initial(item_state)
overlay_state = initial(overlay_state)
to_chat(usr, SPAN_NOTICE("You change \the [src] to be on your [src.flipped ? "left" : "right"] hand."))
if(ismob(loc))
var/mob/M = src.loc
M.update_inv_gloves()
M.update_inv_wear_id()
/obj/item/modular_computer/CouldUseTopic(var/mob/user)
..()
@@ -21,25 +21,21 @@
/obj/item/modular_computer/wristbound/preset/advanced/cargo
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
@@ -49,13 +45,11 @@
/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
@@ -82,4 +76,4 @@
/obj/item/modular_computer/wristbound/preset/advanced/representative
_app_preset_type = /datum/modular_computer_app_presets/representative
enrolled = 1
enrolled = 1