mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
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:
@@ -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
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user