mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 20:52:41 +00:00
Flamethrower construction code cleaned up. Signalers on doors should work fine now. Changelog Updated. Weapons: Xbow radiation has been lowered from 100 to 20 and it has a 5% chance to do no rad damage Admin: Attempted to clean up the code a bit Commands Removed/CommentedOut: air_status, radio_report, toggletintedweldhelmets, modifytemperature, givetestverbs, restartcontroller, fix_next_move, Cell Renamed: edit_memory - show_traitor_panel un\stealthadmin - show/hide_verbs Cargo: Engineering crates cost 10 and contain: 1 mechanical toolbox, 1 electrical toolbox, 1 glove, 1 toolbelt, 1 vest, and 1 hard hat. PowerCell crates cost 10 and contain: 1 electrical toolbox, 2 wire coils, 2 power cells, and 1 high power cell. Water/Fuel tank crates cost 15 and contain: 1 water tank and 1 fuel tank. Cyborg: Fixed the open cover icons To override a cyborg's laws you must emag it when the cover is open Emags can now unlock the cover git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1995 316c924e-a436-60f5-8080-3fe189b3f50e
59 lines
1.4 KiB
Plaintext
59 lines
1.4 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(_jobban_isbanned(M, rank)) return 1//for old jobban
|
|
if(M)
|
|
if (is_important_job(rank))
|
|
if(config.guest_jobban && IsGuestKey(M.key))
|
|
return 1
|
|
if(config.usewhitelist && !check_whitelist(M))
|
|
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
|