mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
- The soymilk + enzyme reaction to create tofu will now make multiple pieces of tofu depending on how much you are mixing together instead of just 1 no matter how much you mix together. - Deleted some garbage code that I'm no longer going to implement (at least not any time soon). - Candy Corn nutriment value reduced to something sensible rather then AUTO FAT - By popular admin request, Guest accounts are not allowed to be any head of staff, the AI, or any security position. Unfortunately, that means if your BYOND name begins with "Guest-", you can't be those positions either. However, that's your own problem. I'll enable the config.txt setup for it later. - Napalm actually works now. It's Aluminum + Plasma + Sulfuric Acid. It creates a relatively short but intense fire over an area and will spread like a normal toxin's fire. - Incendiary grenades redone into a normal chem grenade that makes napalm. Old style incendiary grenade code removed since it didn't work anyway. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@750 316c924e-a436-60f5-8080-3fe189b3f50e
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
var
|
|
jobban_runonce // Updates legacy bans with new info
|
|
jobban_keylist[0] //to store the keys & ranks
|
|
|
|
/proc/jobban_fullban(mob/M, rank)
|
|
if (!M || !M.key || !M.client) return
|
|
jobban_keylist.Add(text("[M.ckey] - [rank]"))
|
|
jobban_savebanfile()
|
|
|
|
/proc/jobban_isbanned(mob/M, rank)
|
|
if(M)
|
|
if (rank == "Captain" || rank == "AI" || rank == "Head of Personnel" || rank == "Head of Security" || rank == "Chief Engineer" || rank == "Research Director" || rank == "Warden" || rank == "Detective" || rank == "Chief Medical Officer")
|
|
if(IsGuestKey(M.key)/* && config.guest_jobban*/)
|
|
return 1
|
|
if (jobban_keylist.Find(text("[M.ckey] - [rank]")))
|
|
return 1
|
|
else
|
|
return 0
|
|
|
|
/proc/jobban_loadbanfile()
|
|
var/savefile/S=new("data/job_full.ban")
|
|
S["keys[0]"] >> jobban_keylist
|
|
log_admin("Loading jobban_rank")
|
|
S["runonce"] >> jobban_runonce
|
|
if (!length(jobban_keylist))
|
|
jobban_keylist=list()
|
|
log_admin("jobban_keylist was empty")
|
|
|
|
/proc/jobban_savebanfile()
|
|
var/savefile/S=new("data/job_full.ban")
|
|
S["keys[0]"] << jobban_keylist
|
|
|
|
/proc/jobban_unban(mob/M, rank)
|
|
jobban_keylist.Remove(text("[M.ckey] - [rank]"))
|
|
jobban_savebanfile()
|
|
|
|
/proc/jobban_updatelegacybans()
|
|
if(!jobban_runonce)
|
|
log_admin("Updating jobbanfile!")
|
|
// Updates bans.. Or fixes them. Either way.
|
|
for(var/T in jobban_keylist)
|
|
if(!T) continue
|
|
jobban_runonce++ //don't run this update again
|
|
|
|
/proc/jobban_remove(X)
|
|
if(jobban_keylist.Find(X))
|
|
jobban_keylist.Remove(X)
|
|
jobban_savebanfile()
|
|
return 1
|
|
return 0 |