Skip to content

Commit

Permalink
Fixes training officers tool not working (#2379)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Gboster-0 authored Aug 9, 2024
1 parent ae6f363 commit b63ba72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit b63ba72

Please sign in to comment.