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

Fixer Office Gamemode (Lowpop Fixers for local play) #2599

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 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
3 changes: 2 additions & 1 deletion ModularTegustation/tegu_items/associations/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@
icon = 'ModularTegustation/Teguicons/teguitems.dmi'
icon_state = "tcorp_syringe"
amount = 1
var/list/usable_roles = list("Civillian", "Office Director", "Office Fixer")
Kitsunemitsu marked this conversation as resolved.
Show resolved Hide resolved

/obj/item/attribute_increase/fixer/attack_self(mob/living/carbon/human/user)
//only civilians can use this.
if(user?.mind?.assigned_role != "Civilian")
if(!(user?.mind?.assigned_role in usable_roles))
to_chat(user, span_danger("You cannot use this item, as you must not belong to an association."))
return

Expand Down
Loading
Loading