Skip to content

Commit

Permalink
init (#5167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iajret authored Nov 12, 2024
1 parent f6ff0e2 commit 26ada05
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/~ff_defines/flavor_misc.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define GWAISTBAG "Grey Waisbag"
#define DWAISTBAG "Department Waisbag"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/datum/preference/choiced/backpack/icon_for(value)
. = ..()
switch (value)
if (GWAISTBAG)
return /obj/item/storage/backpack/waistbag
if (DWAISTBAG)
return /obj/item/storage/backpack/waistbag/med

/datum/preference/choiced/backpack/init_possible_values()
. = ..()
. += list(
GWAISTBAG,
DWAISTBAG,
)

/datum/outfit/job/pre_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
. = ..()
if(ispath(back, /obj/item/storage/backpack))
switch(H.backpack)
if(GWAISTBAG)
back = /obj/item/storage/backpack/waistbag
if(DWAISTBAG)
back = waistbag
95 changes: 95 additions & 0 deletions tff_modular/master_files/code/modules/job/job_outfit.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/datum/outfit/job
var/waistbag = /obj/item/storage/backpack/waistbag

/datum/outfit/job/atmos
waistbag = /obj/item/storage/backpack/waistbag/eng

/datum/outfit/job/botanist
waistbag = /obj/item/storage/backpack/waistbag/srv

/datum/outfit/job/chaplain
waistbag = /obj/item/storage/backpack/waistbag/srv

/datum/outfit/job/chemist
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/ce
waistbag = /obj/item/storage/backpack/waistbag/eng

/datum/outfit/job/cmo
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/clown
waistbag = /obj/item/storage/backpack/waistbag/srv

/datum/outfit/job/coroner
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/geneticist
waistbag = /obj/item/storage/backpack/waistbag/sci

/datum/outfit/job/hos
waistbag = /obj/item/storage/backpack/waistbag/redsec

/datum/outfit/job/doctor
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/mime
waistbag = /obj/item/storage/backpack/waistbag/srv

/datum/outfit/job/paramedic
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/psychologist
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/rd
waistbag = /obj/item/storage/backpack/waistbag/sci

/datum/outfit/job/scientist
waistbag = /obj/item/storage/backpack/waistbag/sci

/datum/outfit/job/security
waistbag = /obj/item/storage/backpack/waistbag/bluesec

/datum/outfit/job/miner
waistbag = /obj/item/storage/backpack/waistbag/cargo

/datum/outfit/job/engineer
waistbag = /obj/item/storage/backpack/waistbag/eng

/datum/outfit/job/warden
waistbag = /obj/item/storage/backpack/waistbag/bluesec

/datum/outfit/job/roboticist
waistbag = /obj/item/storage/backpack/waistbag/sci

/datum/outfit/job/virologist
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/blueshield
waistbag = /obj/item/storage/backpack/waistbag/camo

/datum/outfit/job/science_guard
waistbag = /obj/item/storage/backpack/waistbag/sci

/datum/outfit/job/orderly
waistbag = /obj/item/storage/backpack/waistbag/med

/datum/outfit/job/engineering_guard
waistbag = /obj/item/storage/backpack/waistbag/eng

/datum/outfit/job/customs_agent
waistbag = /obj/item/storage/backpack/waistbag/cargo

/datum/outfit/job/bouncer
waistbag = /obj/item/storage/backpack/waistbag/srv

/datum/outfit/job/nanotrasen_consultant
waistbag = /obj/item/storage/backpack/waistbag/camo

/datum/outfit/job/corrections_officer
waistbag = /obj/item/storage/backpack/waistbag/redsec

/datum/outfit/job/telecomms_specialist
waistbag = /obj/item/storage/backpack/waistbag/eng
3 changes: 3 additions & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
#include "code\__DEFINES\traits\sources.dm"
#include "code\__DEFINES\~ff_defines\barsigns.dm"
#include "code\__DEFINES\~ff_defines\DNA.dm"
#include "code\__DEFINES\~ff_defines\flavor_misc.dm"
#include "code\__DEFINES\~ff_defines\nabber_clothes_pathes.dm"
#include "code\__DEFINES\~ff_defines\say.dm"
#include "code\__DEFINES\~ff_defines\text.dm"
Expand Down Expand Up @@ -8756,7 +8757,9 @@
#include "tff_modular\master_files\code\_HELPERS\global_lists.dm"
#include "tff_modular\master_files\code\datum\quirks\neutral_quirks\burr.dm"
#include "tff_modular\master_files\code\game\objects\items\tools\weldingtool.dm"
#include "tff_modular\master_files\code\modules\client\preferences\clothing.dm"
#include "tff_modular\master_files\code\modules\job\job_blacklist.dm"
#include "tff_modular\master_files\code\modules\job\job_outfit.dm"
#include "tff_modular\master_files\code\modules\mapping\space_ruins.dm"
#include "tff_modular\master_files\code\modules\power\cable.dm"
#include "tff_modular\master_files\code\modules\reagents\recipe\coagulant_recipe.dm"
Expand Down

0 comments on commit 26ada05

Please sign in to comment.