mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
weh (#1253)
This commit is contained in:
@@ -470,8 +470,8 @@ SUBSYSTEM_DEF(job)
|
||||
if(job)
|
||||
var/new_mob = job.equip(living_mob, null, null, joined_late , null, M.client)//silicons override this proc to return a mob
|
||||
//SKYRAT CHANGE ADDITION BEGIN - CUSTOMIZATION
|
||||
if(job.no_dresscode)
|
||||
if(M.client && isliving(new_mob))
|
||||
if(job.no_dresscode && job.loadout)
|
||||
if(M.client)
|
||||
packed_items = M.client.prefs.equip_preference_loadout(M, FALSE, job)
|
||||
//SKYRAT CHANGE ADDITION END
|
||||
if(ismob(new_mob))
|
||||
@@ -505,7 +505,7 @@ SUBSYSTEM_DEF(job)
|
||||
if(job && living_mob)
|
||||
job.after_spawn(living_mob, M, joined_late) // note: this happens before the mob has a key! M will always have a client, H might not.
|
||||
//SKYRAT CHANGE ADDITION BEGIN - CUSTOMIZATION
|
||||
if(!job.no_dresscode)
|
||||
if(!job.no_dresscode && job.loadout)
|
||||
if(M.client)
|
||||
packed_items = M.client.prefs.equip_preference_loadout(M, FALSE, job)
|
||||
if(packed_items)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
/datum/job
|
||||
///With this set to TRUE, the loadout will be applied before a job clothing will be
|
||||
var/no_dresscode
|
||||
//Whether the job can use the loadout system
|
||||
var/loadout = TRUE
|
||||
//List of banned quirks in their names(dont blame me, that's how they're stored), players can't join as the job if they have the quirk. Associative for the purposes of performance
|
||||
var/list/banned_quirks
|
||||
|
||||
@@ -45,3 +47,9 @@
|
||||
|
||||
/datum/job/qm
|
||||
banned_quirks = list(HEAD_RESTRICTED_QUIRKS)
|
||||
|
||||
/datum/job/ai
|
||||
loadout = FALSE
|
||||
|
||||
/datum/job/cyborg
|
||||
loadout = FALSE
|
||||
|
||||
Reference in New Issue
Block a user