Skip to content

Commit

Permalink
Ограничения на лейт-джоин
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Dec 9, 2024
1 parent 11698b6 commit 142ba05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/client/preference/character.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2084,9 +2084,11 @@
if(restrictions)
html += "<del class='dark'>[rank]</del></td><td class='bad'><b> \[[restrictions]]</b></td></tr>"
continue
// SS220 EDIT START - RACE/JOB BANS
if(job.species_ban(user.client))
html += "<del class='dark'>[rank]</del></td><td class='bad'><b> \[WRONG SPECIES\]</b></td></tr>"
html += "<del class='dark'>[rank]</del></td><td class='bad'><b> \[SPECIES BLOCK\]</b></td></tr>"
continue
// SS220 EDIT END - RACE/JOB BANS
if(job.barred_by_disability(user.client))
html += "<del class='dark'>[rank]</del></td><td class='bad'><b> \[DISABILITY\]</b></td></tr>"
continue
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@
return FALSE
if(job.get_exp_restrictions(client))
return FALSE
// SS220 EDIT START - RACE/JOB BANS
if(job.species_ban(client))
return FALSE
// SS220 EDIT END - RACE/JOB BANS

if(GLOB.configuration.jobs.assistant_limit)
if(job.title == "Assistant")
Expand Down

0 comments on commit 142ba05

Please sign in to comment.