Skip to content

Commit

Permalink
Fixes corpse's broken paygrades, and a couple others (#7973)
Browse files Browse the repository at this point in the history
# About the pull request

As title

# Explain why it's good for the game

Seeing corpses, and particularly seeing a pizza fellow, come up as ???
was annoying, and my fault.


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: Preset corpses and pizza ERTs now have correct paygrade displays.
/:cl:

Co-authored-by: forest2001 <[email protected]>
  • Loading branch information
realforest2001 and forest2001 authored Jan 4, 2025
1 parent 75311ed commit 6508634
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/gear_presets/cia.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
name = "CIA Agent (Civilian Clothing)"
rank = "Intelligence Analyst"
paygrades = list(PAY_SHORT_CIV = JOB_PLAYTIME_TIER_0)
role_comm_title = PAY_SHORT_CIV
role_comm_title = "CIV"
minimap_background = "background_civillian"
minimap_icon = "io"
idtype = /obj/item/card/id/adaptive
Expand Down
10 changes: 10 additions & 0 deletions code/modules/gear_presets/corpses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
faction = FACTION_COLONIST
languages = list()
access = list(ACCESS_CIVILIAN_PUBLIC)
paygrades = list(PAY_SHORT_CIV = JOB_PLAYTIME_TIER_0)
skills = /datum/skills/civilian
idtype = /obj/item/card/id/lanyard
var/xenovictim = FALSE //Set to true to make the corpse spawn as a victim of a xeno burst
Expand Down Expand Up @@ -95,6 +96,7 @@
idtype = /obj/item/card/id/silver/clearance_badge
xenovictim = TRUE
access = list(ACCESS_CIVILIAN_PUBLIC, ACCESS_CIVILIAN_RESEARCH, ACCESS_CIVILIAN_MEDBAY)
paygrades = list(PAY_SHORT_CDOC = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/doctor/load_gear(mob/living/carbon/human/new_human)
add_ice_colony_survivor_equipment(new_human)
Expand Down Expand Up @@ -138,6 +140,7 @@
idtype = /obj/item/card/id/silver/clearance_badge/scientist
xenovictim = TRUE
access = list(ACCESS_CIVILIAN_PUBLIC, ACCESS_CIVILIAN_LOGISTICS, ACCESS_CIVILIAN_RESEARCH, ACCESS_CIVILIAN_MEDBAY)
paygrades = list(PAY_SHORT_CDOC = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/scientist/load_gear(mob/living/carbon/human/new_human)
add_ice_colony_survivor_equipment(new_human)
Expand Down Expand Up @@ -182,6 +185,7 @@
assignment = "Security Officer"
xenovictim = TRUE
access = list(ACCESS_CIVILIAN_PUBLIC, ACCESS_CIVILIAN_BRIG, ACCESS_CIVILIAN_MEDBAY, ACCESS_CIVILIAN_COMMAND)
paygrades = list(PAY_SHORT_CPO = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/security/load_gear(mob/living/carbon/human/new_human)
add_ice_colony_survivor_equipment(new_human)
Expand Down Expand Up @@ -326,6 +330,7 @@
ACCESS_CIVILIAN_MEDBAY,
ACCESS_CIVILIAN_COMMAND,
)
paygrades = list(PAY_SHORT_CPO = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/prison_guard/load_gear(mob/living/carbon/human/new_human)
add_ice_colony_survivor_equipment(new_human)
Expand Down Expand Up @@ -444,6 +449,7 @@
ACCESS_WY_COLONIAL,
ACCESS_WY_GENERAL,
)
paygrades = list(PAY_SHORT_CPO = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/wysec/load_gear(mob/living/carbon/human/new_human)
add_ice_colony_survivor_equipment(new_human)
Expand Down Expand Up @@ -611,6 +617,7 @@
idtype = /obj/item/card/id/data
rank = JOB_CLF
faction = FACTION_CLF
paygrades = list(PAY_SHORT_REB = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/clf/New()
. = ..()
Expand Down Expand Up @@ -1443,6 +1450,7 @@
assignment = "Civilian - Medical Doctor"
idtype = /obj/item/card/id/silver/clearance_badge
flags = EQUIPMENT_PRESET_START_OF_ROUND
paygrades = list(PAY_SHORT_CDOC = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/hybrisa/medical_doctor_corpse/load_gear(mob/living/carbon/human/new_human)

Expand Down Expand Up @@ -1480,6 +1488,7 @@
assignment = "Xenobiologist"
flags = EQUIPMENT_PRESET_START_OF_ROUND
idtype = /obj/item/card/id/silver/clearance_badge/scientist
paygrades = list(PAY_SHORT_CDOC = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/hybrisa/scientist_xenobiologist/load_gear(mob/living/carbon/human/new_human)
var/random_gear = rand(1,50)
Expand Down Expand Up @@ -1518,6 +1527,7 @@
assignment = "Xenoarchaeologist"
flags = EQUIPMENT_PRESET_START_OF_ROUND
idtype = /obj/item/card/id/silver/clearance_badge/scientist
paygrades = list(PAY_SHORT_CDOC = JOB_PLAYTIME_TIER_0)

/datum/equipment_preset/corpse/hybrisa/scientist_xenoarchaeologist/load_gear(mob/living/carbon/human/new_human)
var/random_gear = rand(1,55)
Expand Down
1 change: 1 addition & 0 deletions code/modules/gear_presets/other.dm
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@
assignment = "Pizza Deliverer"
rank = FACTION_PIZZA
skills = /datum/skills/civilian
paygrades = list(PAY_SHORT_CIV = JOB_PLAYTIME_TIER_0)
faction = FACTION_PIZZA

/datum/equipment_preset/other/pizza/New()
Expand Down

0 comments on commit 6508634

Please sign in to comment.