Reworked the warning system, warns are now persistent and warn bans are exponentialy longer based on how many times youve been banned.

This commit is contained in:
d3athrow
2013-11-11 14:48:52 -06:00
parent 198e82847a
commit 3227232476
4 changed files with 24 additions and 15 deletions

View File

@@ -34,6 +34,7 @@ datum/preferences
//non-preference stuff
var/warns = 0
var/warnbans = 0
var/muted = 0
var/last_ip
var/last_id

View File

@@ -54,6 +54,8 @@
S["be_special"] >> be_special
S["default_slot"] >> default_slot
S["toggles"] >> toggles
S["warns"] >> warns
S["warnbans"] >> warnbans
//Sanitize
ooccolor = sanitize_hexcolor(ooccolor, initial(ooccolor))
@@ -62,7 +64,6 @@
be_special = sanitize_integer(be_special, 0, 65535, initial(be_special))
default_slot = sanitize_integer(default_slot, 1, MAX_SAVE_SLOTS, initial(default_slot))
toggles = sanitize_integer(toggles, 0, 65535, initial(toggles))
return 1
/datum/preferences/proc/save_preferences()
@@ -80,6 +81,8 @@
S["be_special"] << be_special
S["default_slot"] << default_slot
S["toggles"] << toggles
S["warns"] << warns
S["warnbans"] << warnbans
return 1