TG Double Examine (#23477)

* nice

* Apply suggestions from code review

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>

* Update mod_control.dm

* fixes and modsuit fix

* Apply suggestions from code review

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* think i did it right

* Apply suggestions from code review

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update code/__DEFINES/mob_defines.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update atoms.dm

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
Octus
2024-01-06 16:30:38 -06:00
committed by GitHub
parent 0ba861d0b1
commit e91dce3ee7
6 changed files with 36 additions and 3 deletions
+3
View File
@@ -125,6 +125,9 @@
/// The client's movement keybindings to directions, which work regardless of modifiers.
var/list/movement_kb_dirs = list()
///A lazy list of atoms we've examined in the last RECENT_EXAMINE_MAX_WINDOW (default 2) seconds, so that we will call [/atom/proc/examine_more] instead of [/atom/proc/examine] on them when examining
var/list/recent_examines
/client/vv_edit_var(var_name, var_value)
switch(var_name)
// I know we will never be in a world where admins are editing client vars to let people bypass TOS
+19 -1
View File
@@ -628,7 +628,25 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
return 1
face_atom(A)
var/list/result = A.examine(src)
if(!client)
var/list/result = A.examine(src)
to_chat(src, chat_box_examine(result.Join("\n")))
return
var/list/result
LAZYINITLIST(client.recent_examines)
for(var/key in client.recent_examines)
if(client.recent_examines[key] < world.time)
client.recent_examines -= key
var/ref_to_atom = A.UID()
if(LAZYACCESS(client.recent_examines, ref_to_atom))
result = A.examine_more(src)
if(!length(result))
result += "<span class='notice'><i>You examine [A] closer, but find nothing of interest...</i></span>"
else
result = A.examine(src)
client.recent_examines[ref_to_atom] = world.time + EXAMINE_MORE_WINDOW // set to when we should not examine something
to_chat(src, chat_box_examine(result.Join("\n")))
/mob/proc/ret_grab(obj/effect/list_container/mobl/L as obj, flag)
+4 -1
View File
@@ -203,7 +203,10 @@
. += "You could remove [core] with a <b>wrench</b>."
else
. += "You could use a <b>MOD core</b> on it to install one."
. += "<i>[extended_desc]</i>" //god is dead
/obj/item/mod/control/examine_more(mob/user)
. = ..()
. += "<i>[extended_desc]</i>"
/obj/item/mod/control/process()
if(seconds_electrified > 0)
+1 -1
View File
@@ -289,7 +289,7 @@
offering full view of the land and its soon-to-be-dead inhabitants. The armor plating has been trimmed down to \
the bare essentials, geared far more for environmental hazards than combat against fauna; however, \
this gives way to incredible protection against corrosives and thermal protection good enough for \
both casual backstroking through molten magma and romantic walks through arctic terrain. \
traversing the hostile climate of scorching hot barren planets, molten, and volcanic worlds like Epsilon Eridanii II. \
Instead, the suit is capable of using its' anomalous properties to attract and \
carefully distribute layers of ash or ice across the surface; these layers are ablative, but incredibly strong. \
However, all of this has proven to be straining on all Nanotrasen-approved cells, \