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

Removes Synthetic whitelist requirements for synth pref menu #380

Merged
merged 23 commits into from
Aug 17, 2024
Merged
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
18 changes: 7 additions & 11 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ var/const/MAX_SAVE_SLOTS = 10
dat += "<a[current_menu == MENU_XENOMORPH ? " class='linkOff'" : ""] href=\"byond://?src=\ref[user];preference=change_menu;menu=[MENU_XENOMORPH]\"><b>Xenomorph</b></a> - "
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_COMMANDER)
dat += "<a[current_menu == MENU_CO ? " class='linkOff'" : ""] href=\"byond://?src=\ref[user];preference=change_menu;menu=[MENU_CO]\"><b>Commanding Officer</b></a> - "
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_SYNTHETIC)
dat += "<a[current_menu == MENU_SYNTHETIC ? " class='linkOff'" : ""] href=\"byond://?src=\ref[user];preference=change_menu;menu=[MENU_SYNTHETIC]\"><b>Synthetic</b></a> - "
dat += "<a[current_menu == MENU_SYNTHETIC ? " class='linkOff'" : ""] href=\"byond://?src=\ref[user];preference=change_menu;menu=[MENU_SYNTHETIC]\"><b>Synthetic</b></a> - "
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_PREDATOR)
dat += "<a[current_menu == MENU_YAUTJA ? " class='linkOff'" : ""] href=\"byond://?src=\ref[user];preference=change_menu;menu=[MENU_YAUTJA]\"><b>Yautja</b></a> - "
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_MENTOR)
Expand Down Expand Up @@ -495,15 +494,12 @@ var/const/MAX_SAVE_SLOTS = 10
else
dat += "<b>You do not have the whitelist for this role.</b>"
if(MENU_SYNTHETIC)
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_SYNTHETIC)
dat += "<div id='column1'>"
dat += "<h2><b><u>Synthetic Settings:</u></b></h2>"
dat += "<b>Synthetic Name:</b> <a href='?_src_=prefs;preference=synth_name;task=input'><b>[synthetic_name]</b></a><br>"
dat += "<b>Synthetic Type:</b> <a href='?_src_=prefs;preference=synth_type;task=input'><b>[synthetic_type]</b></a><br>"
dat += "<b>Synthetic Whitelist Status:</b> <a href='?_src_=prefs;preference=synth_status;task=input'><b>[synth_status]</b></a><br>"
dat += "</div>"
else
dat += "<b>You do not have the whitelist for this role.</b>"
dat += "<div id='column1'>"
dat += "<h2><b><u>Synthetic Settings:</u></b></h2>"
dat += "<b>Synthetic Name:</b> <a href='?_src_=prefs;preference=synth_name;task=input'><b>[synthetic_name]</b></a><br>"
dat += "<b>Synthetic Type:</b> <a href='?_src_=prefs;preference=synth_type;task=input'><b>[synthetic_type]</b></a><br>"
dat += "<b>Synthetic Whitelist Status:</b> <a href='?_src_=prefs;preference=synth_status;task=input'><b>[synth_status]</b></a><br>"
dat += "</div>"
if(MENU_YAUTJA)
if(RoleAuthority.roles_whitelist[user.ckey] & WHITELIST_PREDATOR)
dat += "<div id='column1'>"
Expand Down
Loading