Skip to content

Commit

Permalink
manifest_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Feb 14, 2024
1 parent 5693dcb commit f08aee5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var/global/list/ROLES_ENGINEERING = list(JOB_CHIEF_ENGINEER, JOB_ORDNANCE_TECH,
var/global/list/ROLES_REQUISITION = list(JOB_CHIEF_REQUISITION, JOB_CARGO_TECH, JOB_WO_CHIEF_REQUISITION, JOB_WO_REQUISITION)
var/global/list/ROLES_MEDICAL = list(JOB_CMO, JOB_RESEARCHER, JOB_DOCTOR, JOB_NURSE, JOB_WO_CMO, JOB_WO_RESEARCHER, JOB_WO_DOCTOR)
var/global/list/ROLES_MARINES = list(JOB_SQUAD_LEADER, JOB_SQUAD_TEAM_LEADER, JOB_SQUAD_SPECIALIST, JOB_SQUAD_SMARTGUN, JOB_SQUAD_MEDIC, JOB_SQUAD_ENGI, JOB_SQUAD_MARINE)
var/global/list/ROLES_SQUAD_ALL = list(SQUAD_MARINE_1, SQUAD_MARINE_2, SQUAD_MARINE_3, SQUAD_MARINE_4, SQUAD_MARINE_5, SQUAD_MARINE_CRYO, SQUAD_MARINE_INTEL)
var/global/list/ROLES_SQUAD_ALL = list(SQUAD_MARINE_1, SQUAD_MARINE_2, SQUAD_MARINE_3, SQUAD_MARINE_4, SQUAD_MARINE_5, SQUAD_MARINE_CRYO, SQUAD_MARINE_INTEL, SQUAD_UPP)

//Groundside roles
var/global/list/ROLES_XENO = list(JOB_XENOMORPH_QUEEN, JOB_XENOMORPH)
Expand Down
4 changes: 0 additions & 4 deletions code/datums/datacore.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ GLOBAL_DATUM_INIT(data_core, /datum/datacore, new)
departments += marines_by_squad
var/list/manifest_out = list()
for(var/datum/data/record/t in GLOB.data_core.general)
if(t.fields["mob_faction"] != FACTION_MARINE) //we process only USCM humans
continue
var/name = t.fields["name"]
var/rank = t.fields["rank"]
var/squad = t.fields["squad"]
Expand Down Expand Up @@ -98,8 +96,6 @@ GLOBAL_DATUM_INIT(data_core, /datum/datacore, new)
var/list/squad_sublists = ROLES_SQUAD_ALL.Copy() //Are there any marines in the squad?

for(var/datum/data/record/t in GLOB.data_core.general)
if(t.fields["mob_faction"] != FACTION_MARINE) //we process only USCM humans
continue

var/name = t.fields["name"]
var/rank = t.fields["rank"]
Expand Down
2 changes: 1 addition & 1 deletion code/datums/factions/upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
hud_icon_state = "sl"
if(JOB_UPP_POLICE)
hud_icon_state = "mp"
if(JOB_UPP_LT_OFFICER, JOB_SO_UPP)
if(JOB_UPP_LT_OFFICER, JOB_SO)
hud_icon_state = "lt"
if(JOB_UPP_SRLT_OFFICER)
hud_icon_state = "slt"
Expand Down
1 change: 0 additions & 1 deletion code/modules/gear_presets/uscm_ship.dm
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@
/datum/equipment_preset/uscm_ship/so/upp
name = "UPP Platoon Commander (PltCo)"
assignment = JOB_SO_UPP
rank = JOB_SO_UPP
languages = list(LANGUAGE_RUSSIAN, LANGUAGE_ENGLISH, LANGUAGE_TSL, LANGUAGE_SPANISH, LANGUAGE_CHINESE)
paygrade = "UO2"
faction_group = list(FACTION_UPP)
Expand Down
9 changes: 4 additions & 5 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1076,12 +1076,11 @@
set name = "View Crew Manifest"
set category = "IC"

if(faction != FACTION_MARINE && !(faction in FACTION_LIST_WY))
if(job in ROLES_AI)
var/dat = GLOB.data_core.get_manifest()
show_browser(src, dat, "Crew Manifest", "manifest", "size=400x750")
else
to_chat(usr, SPAN_WARNING("You have no access to [MAIN_SHIP_NAME] crew manifest."))
return
var/dat = GLOB.data_core.get_manifest()

show_browser(src, dat, "Crew Manifest", "manifest", "size=400x750")

/mob/living/carbon/human/proc/set_species(new_species, default_colour)
if(!new_species)
Expand Down

0 comments on commit f08aee5

Please sign in to comment.