Merged master/dev config.txt.

This commit is contained in:
Zuhayr
2014-12-10 16:35:39 +10:30
5 changed files with 45 additions and 27 deletions

View File

@@ -699,34 +699,32 @@ proc // Creates a single icon from a given /atom or /image. Only the first argu
while(TRUE) while(TRUE)
if(curIndex<=process.len) if(curIndex<=process.len)
current = process[curIndex] current = process[curIndex]
if(!current) continue if(current)
currentLayer = current:layer currentLayer = current:layer
if(currentLayer<0) // Special case for FLY_LAYER if(currentLayer<0) // Special case for FLY_LAYER
if(currentLayer <= -1000) return flat if(currentLayer <= -1000) return flat
if(pSet == 0) // Underlay if(pSet == 0) // Underlay
currentLayer = A.layer+currentLayer/1000 currentLayer = A.layer+currentLayer/1000
else // Overlay else // Overlay
currentLayer = A.layer+(1000+currentLayer)/1000 currentLayer = A.layer+(1000+currentLayer)/1000
// Sort add into layers list // Sort add into layers list
for(cmpIndex=1,cmpIndex<=layers.len,cmpIndex++) for(cmpIndex=1,cmpIndex<=layers.len,cmpIndex++)
compare = layers[cmpIndex] compare = layers[cmpIndex]
if(currentLayer < layers[compare]) // Associated value is the calculated layer if(currentLayer < layers[compare]) // Associated value is the calculated layer
layers.Insert(cmpIndex,current) layers.Insert(cmpIndex,current)
layers[current] = currentLayer layers[current] = currentLayer
break break
if(cmpIndex>layers.len) // Reached end of list without inserting if(cmpIndex>layers.len) // Reached end of list without inserting
layers[current]=currentLayer // Place at end layers[current]=currentLayer // Place at end
curIndex++ curIndex++
else if(pSet == 0) // Switch to overlays
if(curIndex>process.len) curIndex = 1
if(pSet == 0) // Switch to overlays pSet = 1
curIndex = 1 process = A.overlays
pSet = 1 else // All done
process = A.overlays break
else // All done
break
var/icon/add // Icon of overlay being added var/icon/add // Icon of overlay being added

View File

@@ -83,6 +83,8 @@
var/limitalienplayers = 0 var/limitalienplayers = 0
var/alien_to_human_ratio = 0.5 var/alien_to_human_ratio = 0.5
var/debugparanoid = 0
var/server var/server
var/banappeals var/banappeals
var/wikiurl var/wikiurl
@@ -244,6 +246,9 @@
if ("log_say") if ("log_say")
config.log_say = 1 config.log_say = 1
if ("debug_paranoid")
config.debugparanoid = 1
if ("log_admin") if ("log_admin")
config.log_admin = 1 config.log_admin = 1

View File

@@ -156,6 +156,12 @@ var/list/admin_verbs_debug = list(
/client/proc/SDQL_query, /client/proc/SDQL_query,
/client/proc/SDQL2_query, /client/proc/SDQL2_query,
) )
var/list/admin_verbs_paranoid_debug = list(
/client/proc/callproc,
/client/proc/debug_controller
)
var/list/admin_verbs_possess = list( var/list/admin_verbs_possess = list(
/proc/possess, /proc/possess,
/proc/release /proc/release
@@ -274,7 +280,10 @@ var/list/admin_verbs_mentor = list(
if(holder.rights & R_BAN) verbs += admin_verbs_ban if(holder.rights & R_BAN) verbs += admin_verbs_ban
if(holder.rights & R_FUN) verbs += admin_verbs_fun if(holder.rights & R_FUN) verbs += admin_verbs_fun
if(holder.rights & R_SERVER) verbs += admin_verbs_server if(holder.rights & R_SERVER) verbs += admin_verbs_server
if(holder.rights & R_DEBUG) verbs += admin_verbs_debug if(holder.rights & R_DEBUG)
verbs += admin_verbs_debug
if(config.debugparanoid && !check_rights(R_ADMIN))
verbs.Remove(admin_verbs_paranoid_debug) //Right now it's just callproc but we can easily add others later on.
if(holder.rights & R_POSSESS) verbs += admin_verbs_possess if(holder.rights & R_POSSESS) verbs += admin_verbs_possess
if(holder.rights & R_PERMISSIONS) verbs += admin_verbs_permissions if(holder.rights & R_PERMISSIONS) verbs += admin_verbs_permissions
if(holder.rights & R_STEALTH) verbs += /client/proc/stealth if(holder.rights & R_STEALTH) verbs += /client/proc/stealth

View File

@@ -30,6 +30,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
set name = "Advanced ProcCall" set name = "Advanced ProcCall"
if(!check_rights(R_DEBUG)) return if(!check_rights(R_DEBUG)) return
if(config.debugparanoid && !check_rights(R_ADMIN)) return
spawn(0) spawn(0)
var/target = null var/target = null

View File

@@ -291,4 +291,9 @@ EVENT_DELAY_UPPER 15;45;70
## Unset setting use the EVENT_DELAY_LOWER and EVENT_DELAY_UPPER values instead. ## Unset setting use the EVENT_DELAY_LOWER and EVENT_DELAY_UPPER values instead.
# EVENT_CUSTOM_START_MINOR 10;15 # EVENT_CUSTOM_START_MINOR 10;15
# EVENT_CUSTOM_START_MODERATE 30;45 # EVENT_CUSTOM_START_MODERATE 30;45
EVENT_CUSTOM_START_MAJOR 80;100 EVENT_CUSTOM_START_MAJOR 80;100
## Uncomment to make proccall require R_ADMIN instead of R_DEBUG
## designed for environments where you have testers but don't want them
## able to use the more powerful debug options.
#DEBUG_PARANOID