mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Object Examine Text Overhaul (#20923)
Extends and reworks how various extended information text (desc_info, desc_build, desc_upgrades) are handled to make object interactions and mechanics A.) much more clearly documented in-game and B.) much easier to support from the back-end. Almost certainly a candidate for test merge. Assembly/Disassembly instructions are noticeably sporadic, largely due to our current lack of a unified framework. That's a future thing I'd like to attack so that it can be handled programmatically, but for now I only targeted the biggest culprits as I came across them. --------- Signed-off-by: Batrachophreno <Batrochophreno@gmail.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
name = "tablet computer"
|
||||
lexical_name = "tablet"
|
||||
desc = "A portable device for your needs on the go."
|
||||
desc_info = "To deploy the charging cable on this device, either drag and drop it over a nearby APC, or click on the APC with the computer in hand."
|
||||
icon = 'icons/obj/modular_tablet.dmi'
|
||||
icon_state = "tablet"
|
||||
icon_state_unpowered = "tablet"
|
||||
@@ -15,6 +14,10 @@
|
||||
w_class = WEIGHT_CLASS_SMALL
|
||||
looping_sound = FALSE
|
||||
|
||||
/obj/item/modular_computer/handheld/mechanics_hints(mob/user, distance, is_adjacent)
|
||||
. += ..()
|
||||
. += "To deploy the charging cable on this device, either drag and drop it over a nearby APC, or click on the APC with the computer in hand."
|
||||
|
||||
/obj/item/modular_computer/handheld/Initialize()
|
||||
. = ..()
|
||||
set_icon()
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
name = "laptop computer"
|
||||
lexical_name = "laptop"
|
||||
desc = "A portable computer."
|
||||
desc_info = "You can alt-click the laptop while it's set down on surface to open it up and work with it. Left clicking while it is open will allow you to operate it."
|
||||
hardware_flag = PROGRAM_LAPTOP
|
||||
can_reset = TRUE
|
||||
icon_state_unpowered = "laptop-open"
|
||||
@@ -21,6 +20,11 @@
|
||||
broken_damage = 25
|
||||
var/icon_state_closed = "laptop-closed"
|
||||
|
||||
/obj/item/modular_computer/laptop/mechanics_hints(mob/user, distance, is_adjacent)
|
||||
. += ..()
|
||||
. += "ALT-click the laptop while it's set down on a surface to open or close it."
|
||||
. += "Left-click on it while it is open to operate it."
|
||||
|
||||
/obj/item/modular_computer/laptop/AltClick()
|
||||
if(use_check(usr))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user