Skip to content

Commit

Permalink
mod-inspect2
Browse files Browse the repository at this point in the history
  • Loading branch information
Builder13 committed Dec 24, 2024
1 parent 407ca82 commit 10b0bad
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
16 changes: 12 additions & 4 deletions mods/item_identification/code/item_identification.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
/obj/item/proc/update_mod_identification()
return

/mob/verb/mod_skill_examine(obj/item/I as obj in view())
/mob/verb/mod_skill_examine(obj/item/I as obj in view(1))
set name = "Inspect"
set category = "IC"

if(I in usr.contents)
if(!usr.isEquipped(I) || !usr.canUnEquip(I))
return

mod_skill_examinate(usr, I)

/proc/mod_skill_examinate(mob/user, atom/A)
Expand Down Expand Up @@ -107,14 +111,18 @@
if(!max_skills[S.type] || max_skills[S.type] < skill_val)
max_skills[S.type] = skill_val

var/starting_message = "[user] начал детальный осмотр [identify_item.name]"
var/starting_message = "[user] начинает детальный осмотр [identify_item.name]"

if(LAZYLEN(additional_users))
var/list/additional_names = list()
starting_message += " вместе с:"
for(var/auser in additional_users)
var/auser_name = additional_users[auser]["name"]
starting_message += " [auser_name]"
starting_message += "."
additional_names.Add(auser_name)

starting_message += jointext(additional_names, ", ")

starting_message += "."

user.visible_message(starting_message)

Expand Down
13 changes: 13 additions & 0 deletions mods/item_identification/code/items/traitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -665,4 +665,17 @@
),
"LOGIC" = "AND"
)
)

/obj/item/card/emag_broken/update_mod_identification()
mod_skill_identification = list(
"device_info" = list(
"success" = SPAN_GOOD("Вашей экспертизы в электротехнике и криминалистике достаточно, для того чтобы сказать, что магнитная лента данной карты могла использоваться для нестандартного подключения к устройствам. Невозможно определить функционал. Плата, подключенная к этой ленте, уже полностью выгорела."),
"failure" = SPAN_BAD("Выглядит как пустая идентификационная карта с кучей проводов, которых там точно не должно быть. Также выглядит немного сгоревшей при внешнем осмотре."),
"skillcheck" = list(
SKILL_ELECTRICAL = SKILL_EXPERIENCED,
SKILL_FORENSICS = SKILL_EXPERIENCED
),
"LOGIC" = "AND"
)
)

0 comments on commit 10b0bad

Please sign in to comment.