Skip to content

Commit

Permalink
Update _job.dm (#22912)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToasterBiome authored Jan 13, 2025
1 parent a968f42 commit 269458f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/jobs/job_types/_job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@

//If the configuration option is set to require players to be logged as old enough to play certain jobs, then this proc checks that they are, otherwise it just returns 1
/datum/job/proc/player_old_enough(client/C)
var/isexempt = C.prefs.db_flags & DB_FLAG_EXEMPT //if we're exempt from job EXP requirements we also should be exempt from account age probably
if(isexempt)
return TRUE
if(available_in_days(C) == 0)
return TRUE //Available in 0 days = available right now = player is old enough to play.
return FALSE
Expand Down

0 comments on commit 269458f

Please sign in to comment.