Skip to content

Commit

Permalink
vox should correctly spawn with selected mask and tank at roundstart (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
13spacemen authored Dec 3, 2024
1 parent a3fac96 commit 1ee50c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/_job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
if(outfit_override || outfit)
H.equipOutfit(outfit_override ? outfit_override : outfit, visualsOnly)

H.dna.species.after_equip_job(src, H, visualsOnly)
H.dna.species.after_equip_job(src, H, preference_source)

if(!visualsOnly && announce)
announce(H)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/_species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ GLOBAL_LIST_EMPTY(features_by_species)
/datum/species/proc/before_equip_job(datum/job/J, mob/living/carbon/human/H)
return

/datum/species/proc/after_equip_job(datum/job/J, mob/living/carbon/human/H)
/datum/species/proc/after_equip_job(datum/job/J, mob/living/carbon/human/H, client/preference_source)
H.update_mutant_bodyparts()

// Do species-specific reagent handling here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@
soon_added_items += pick(possible_masks)
..()

/datum/species/vox/after_equip_job(datum/job/J, mob/living/carbon/human/H, visualsOnly = FALSE) // Don't forget your voxygen tank
/datum/species/vox/after_equip_job(datum/job/J, mob/living/carbon/human/H, client/preference_source) // Don't forget your voxygen tank
if(!H.can_breathe_mask())
var/obj/item/clothing/mask/current_mask = H.get_item_by_slot(ITEM_SLOT_MASK)
if(!H.equip_to_slot_if_possible(current_mask, ITEM_SLOT_BACKPACK, disable_warning = TRUE))
H.put_in_hands(current_mask)
var/obj/item/clothing/mask/vox_mask
var/mask_pref = H.client?.prefs?.read_preference(/datum/preference/choiced/vox_mask)
var/mask_pref = preference_source?.prefs?.read_preference(/datum/preference/choiced/vox_mask)
if(mask_pref == "Respirator")
vox_mask = new /obj/item/clothing/mask/breath/vox/respirator
else
vox_mask = new /obj/item/clothing/mask/breath/vox
H.equip_to_slot_or_del(vox_mask, ITEM_SLOT_MASK)
var/obj/item/tank/internals_tank
var/tank_pref = H.client?.prefs?.read_preference(/datum/preference/choiced/vox_tank_type)
var/tank_pref = preference_source?.prefs?.read_preference(/datum/preference/choiced/vox_tank_type)
if(tank_pref == "Large")
internals_tank = new /obj/item/tank/internals/nitrogen
else
Expand Down

0 comments on commit 1ee50c0

Please sign in to comment.