mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Merge branch 'master' into development
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/datum/antagonist/proc/can_become_antag(var/datum/mind/player, var/ignore_role)
|
||||
if (!player.current)
|
||||
return 0
|
||||
if(player.current && jobban_isbanned(player.current, bantype))
|
||||
if(jobban_isbanned(player.current, bantype) || jobban_isbanned(player.current, "Antagonist"))
|
||||
return 0
|
||||
if(!ignore_role)
|
||||
if(player.assigned_role in restricted_jobs)
|
||||
|
||||
@@ -340,9 +340,7 @@
|
||||
|
||||
if( "activate" )
|
||||
src.timer_start()
|
||||
log_debug("Updating record")
|
||||
for (var/datum/data/record/E in data_core.general)
|
||||
log_debug("Searching for criminal with name: [incident.criminal.name]")
|
||||
if(E.fields["name"] == incident.criminal.name)
|
||||
for (var/datum/data/record/R in data_core.security)
|
||||
if(R.fields["id"] == E.fields["id"])
|
||||
|
||||
@@ -16,10 +16,6 @@ var/jobban_keylist[0] //to store the keys & ranks
|
||||
//returns a reason if M is banned from rank, returns 0 otherwise
|
||||
/proc/jobban_isbanned(mob/M, rank)
|
||||
if(M && rank)
|
||||
/*
|
||||
if(_jobban_isbanned(M, rank)) return "Reason Unspecified" //for old jobban
|
||||
*/
|
||||
|
||||
if (guest_jobbans(rank))
|
||||
if(config.guest_jobban && IsGuestKey(M.key))
|
||||
return "Guest Job-ban"
|
||||
|
||||
@@ -35,10 +35,11 @@
|
||||
/datum/category_item/player_setup_item/antagonism/candidacy/content(var/mob/user)
|
||||
. += "<b>Special Role Availability:</b><br>"
|
||||
. += "<table>"
|
||||
var/is_global_banned = jobban_isbanned(preference_mob(), "Antagonist")
|
||||
for(var/antag_type in all_antag_types)
|
||||
var/datum/antagonist/antag = all_antag_types[antag_type]
|
||||
. += "<tr><td>[antag.role_text]: </td><td>"
|
||||
if(jobban_isbanned(preference_mob(), antag.bantype))
|
||||
if(is_global_banned || jobban_isbanned(preference_mob(), antag.bantype))
|
||||
. += "<span class='danger'>\[BANNED\]</span><br>"
|
||||
else if(antag.role_type in pref.be_special_role)
|
||||
. += "<b>Yes</b> / <a href='?src=\ref[src];del_special=[antag.role_type]'>No</a></br>"
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
infraction.fine = text2num(char_infraction_query.item[10])
|
||||
infraction.felony = text2num(char_infraction_query.item[11])
|
||||
pref.incidents.Add(infraction)
|
||||
log_debug("Added infraction with [infraction.UID]")
|
||||
|
||||
/datum/category_item/player_setup_item/other/incidents/content(var/mob/user)
|
||||
pref.incidents = list()
|
||||
|
||||
+2
-2
@@ -35,8 +35,8 @@ em {font-style: normal;font-weight: bold;}
|
||||
.mod_channel {color: #735638; font-weight: bold;}
|
||||
.mod_channel .admin {color: #b82e00; font-weight: bold;}
|
||||
.admin_channel {color: #9611D4; font-weight: bold;}
|
||||
.cciaasay {color: #521590;}
|
||||
.devsay {color: #02280D;}
|
||||
.cciaasay {color: #BD871B;}
|
||||
.devsay {color: #5C7463;}
|
||||
|
||||
/* Radio: Misc */
|
||||
.deadsay {color: #530FAD;}
|
||||
|
||||
Reference in New Issue
Block a user