Merge branch 'master' into hooks-part4

This commit is contained in:
AffectedArc07
2019-05-07 21:22:59 +01:00
committed by GitHub
32 changed files with 142 additions and 90 deletions
-7
View File
@@ -9,10 +9,3 @@
* Called in gameticker.dm when a round starts.
*/
/hook/roundstart
/**
* Captain spawned hook.
* Called in supervisor.dm when a captain spawns
* Parameters: var/mob/living/carbon/human/captain
*/
/hook/captain_spawned
+8 -1
View File
@@ -1,7 +1,8 @@
SUBSYSTEM_DEF(jobs)
name = "Jobs"
init_order = INIT_ORDER_JOBS // 12
flags = SS_NO_FIRE
wait = 3000 // 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)