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

Скрытие верба Inspect #3048

Merged
merged 2 commits into from
Jan 4, 2025
Merged
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
1 change: 1 addition & 0 deletions mods/item_identification/_item_identification.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


#include "code/item_identification.dm"
#include "code/job.dm"
#include "code/items/traitor.dm"

#endif
22 changes: 20 additions & 2 deletions mods/item_identification/code/item_identification.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
/obj/item/proc/update_mod_identification()
return

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

to_chat(usr, SPAN_CLASS("interface", "Вы теперь можете производить инспекцию предметов через ПКМ и через верб."))
verbs -= /mob/verb/mod_skill_examine_init
verbs += /verb/mod_skill_examine
verbs += /verb/mod_skill_examine_hide

/verb/mod_skill_examine_hide()
set name = "Hide Inspect"
set category = "IC"

to_chat(usr, SPAN_CLASS("interface", "Верб Inspect вновь спрятан."))
usr.verbs += /mob/verb/mod_skill_examine_init
usr.verbs -= /verb/mod_skill_examine
usr.verbs -= /verb/mod_skill_examine_hide

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

Expand Down Expand Up @@ -115,7 +133,7 @@

if(LAZYLEN(additional_users))
var/list/additional_names = list()
starting_message += " вместе с:"
starting_message += " вместе с: "
for(var/auser in additional_users)
var/auser_name = additional_users[auser]["name"]
additional_names.Add(auser_name)
Expand Down
30 changes: 30 additions & 0 deletions mods/item_identification/code/job.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/datum/job/hos/post_equip_rank(mob/person, alt_title)
..()
person.verbs -= /mob/verb/mod_skill_examine_init
person.verbs += /verb/mod_skill_examine
person.verbs += /verb/mod_skill_examine_hide

/datum/job/warden/post_equip_rank(mob/person, alt_title)
..()
person.verbs -= /mob/verb/mod_skill_examine_init
person.verbs += /verb/mod_skill_examine
person.verbs += /verb/mod_skill_examine_hide

/datum/job/detective/post_equip_rank(mob/person, alt_title)
..()
person.verbs -= /mob/verb/mod_skill_examine_init
person.verbs += /verb/mod_skill_examine
person.verbs += /verb/mod_skill_examine_hide

/datum/job/officer/post_equip_rank(mob/person, alt_title)
..()
person.verbs -= /mob/verb/mod_skill_examine_init
person.verbs += /verb/mod_skill_examine
person.verbs += /verb/mod_skill_examine_hide

/datum/job/post_equip_rank(mob/person, alt_title)
..()
if(person.get_skill_value(SKILL_FORENSICS) > SKILL_UNSKILLED)
person.verbs -= /mob/verb/mod_skill_examine_init
person.verbs += /verb/mod_skill_examine
person.verbs += /verb/mod_skill_examine_hide
Loading