Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Небольшое дополнение к осмотру #3035

Open
wants to merge 1 commit into
base: dev-sierra
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
)
)
Loading