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

Fixes training officers tool not working #2379

Merged
merged 1 commit into from
Aug 9, 2024
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
Binary file modified ModularTegustation/Teguicons/teguitems.dmi
Binary file not shown.
7 changes: 5 additions & 2 deletions code/modules/jobs/job_types/mentor/trainingofficer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,19 @@
/obj/item/stat_equalizer
name = "training stat equalizer"
desc = "A localized source of stats, only usable by the Training Officers to equalize the stats of them and any interns."
icon = 'ModularTegustation/Teguicons/teguitems.dmi'
icon_state = "records_stats"
w_class = WEIGHT_CLASS_SMALL
slot_flags = ITEM_SLOT_BELT | ITEM_SLOT_POCKETS

/obj/item/stat_equalizer/attack_self(mob/living/carbon/human/user)
if(!istype(user) || user?.mind?.assigned_role != "Records Agent")
if(!istype(user) || user?.mind?.assigned_role != "Training Officer")
to_chat(user, span_notice("The Gadget's light flashes red. You aren't a Training Officer. Check the label before use."))
return
update_stats(user)

/obj/item/stat_equalizer/attack(mob/living/M, mob/user)
if(!istype(user) || user?.mind?.assigned_role != "Records Agent")
if(!istype(user) || user?.mind?.assigned_role != "Training Officer")
to_chat(user, span_notice("The Gadget's light flashes red. You aren't a Training Officer. Check the label before use."))
return
update_stats(M)
Expand Down
Loading