mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-04-28 11:22:30 +01:00
Refactors smiting out from being a large switch/case into datums. Adds a new smite option to build mode. This lets you choose a smite and rapidly apply it to a lot of people, presumably for EORG. Requested for by...one of the admins, I forget which.
13 lines
598 B
Plaintext
13 lines
598 B
Plaintext
GLOBAL_LIST_EMPTY(stickybanadminexemptions) //stores a list of ckeys exempted from a stickyban (workaround for a bug)
|
|
GLOBAL_LIST_EMPTY(stickybanadmintexts) //stores the entire stickyban list temporarily
|
|
GLOBAL_VAR(stickbanadminexemptiontimerid) //stores the timerid of the callback that restores all stickybans after an admin joins
|
|
|
|
/proc/init_smites()
|
|
var/list/smites = list()
|
|
for (var/_smite_path in subtypesof(/datum/smite))
|
|
var/datum/smite/smite_path = _smite_path
|
|
smites[initial(smite_path.name)] = smite_path
|
|
return smites
|
|
|
|
GLOBAL_LIST_INIT_TYPED(smites, /datum/smite, init_smites())
|