Configurable Age Restrictions

Makes the age restrictions on jobs editable on the fly from a new config file.
This commit is contained in:
skull132
2015-10-23 06:41:54 +03:00
parent 5229c0ac16
commit a12ec65678
7 changed files with 102 additions and 7 deletions
+4
View File
@@ -26,6 +26,10 @@ var/jobban_keylist[0] //to store the keys & ranks
if(config.usewhitelist && !check_whitelist(M))
return "Whitelisted Job"
if (config.use_age_restriction_for_jobs)
if (config.age_restrictions[rank] && M.client.player_age < config.age_restrictions[rank])
return "Age Restricted"
for (var/s in jobban_keylist)
if( findtext(s,"[M.ckey] - [rank]") == 1 )
var/startpos = findtext(s, "## ")+3