Removes something god awful

This commit is contained in:
AffectedArc07
2019-05-04 09:37:22 +01:00
parent 096d72f7f3
commit f37cfe498d
2 changed files with 8 additions and 10 deletions
+8 -1
View File
@@ -1,7 +1,8 @@
SUBSYSTEM_DEF(jobs)
name = "Jobs"
init_order = INIT_ORDER_JOBS // 12
flags = SS_NO_FIRE
wait = 30000 // 5 minutes (Deciseconds)
runlevels = RUNLEVEL_GAME
//List of all jobs
var/list/occupations = list()
@@ -21,6 +22,12 @@ SUBSYSTEM_DEF(jobs)
LoadJobs("config/jobs.txt")
return ..()
// Only fires every 5 minutes
/datum/controller/subsystem/jobs/fire()
if(!config.sql_enabled || !config.use_exp_tracking)
return
update_exp(5,0)
/datum/controller/subsystem/jobs/proc/SetupOccupations(var/list/faction = list("Station"))
occupations = list()
var/list/all_jobs = subtypesof(/datum/job)
-9
View File
@@ -292,12 +292,3 @@ var/global/list/role_playtime_requirements = list(
log_game("SQL ERROR during exp_update_client write. Error : \[[err]\]\n")
message_admins("SQL ERROR during exp_update_client write. Error : \[[err]\]\n")
return
/hook/roundstart/proc/exptimer()
if(!config.sql_enabled || !config.use_exp_tracking)
return 1
spawn(0)
while(TRUE)
sleep(5 MINUTES)
update_exp(5,0)
return 1