mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +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:
@@ -17,6 +17,10 @@
|
||||
var/diffuser_enabled = TRUE
|
||||
var/diffuser_range = 0 // 1x1 tiles, including the tile its on.
|
||||
|
||||
/obj/machinery/shield_diffuser/feedback_hints(mob/user, distance, is_adjacent)
|
||||
. += ..()
|
||||
. += "It is [diffuser_enabled ? "diffuser_enabled" : "disabled"]."
|
||||
|
||||
/obj/machinery/shield_diffuser/process()
|
||||
if(stat & BROKEN)
|
||||
return PROCESS_KILL
|
||||
@@ -49,10 +53,6 @@
|
||||
update_icon()
|
||||
to_chat(user, "You turn \the [src] [diffuser_enabled ? "on" : "off"].")
|
||||
|
||||
/obj/machinery/shield_diffuser/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
. += "It is [diffuser_enabled ? "diffuser_enabled" : "disabled"]."
|
||||
|
||||
/obj/machinery/shield_diffuser/power_change()
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user