Skip to content

Commit

Permalink
Sections From The Tech Man Are Now Properly Referenced (#516)
Browse files Browse the repository at this point in the history
Co-authored-by: Dumbgunner <[email protected]>
  • Loading branch information
Max-023 and Dumbgunner authored Oct 30, 2024
1 parent 58ec7e3 commit e17be1b
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions code/__DEFINES/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

// Job name defines
#define JOB_SQUAD_MARINE "Rifleman"
#define JOB_SQUAD_LEADER "Platoon Sergeant"
#define JOB_SQUAD_LEADER "Section Sergeant"
#define JOB_SQUAD_ENGI "Combat Technician"
#define JOB_SQUAD_MEDIC "Platoon Corpsman"
#define JOB_SQUAD_MEDIC "Corpsman"
#define JOB_SQUAD_SPECIALIST "Weapons Specialist"
#define JOB_SQUAD_TEAM_LEADER "Squad Sergeant"
#define JOB_SQUAD_SMARTGUN "Smartgunner"
Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/marine/squad/leader.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
flags_startup_parameters = ROLE_ADD_TO_DEFAULT|ROLE_ADD_TO_SQUAD
gear_preset = /datum/equipment_preset/uscm/leader
gear_preset_secondary = /datum/equipment_preset/uscm/leader/lesser_rank
entry_message_body = "<a href='"+WIKI_PLACEHOLDER+"'>You are responsible for the men and women of your entire platoon.</a> Make sure they are on task, working together, and communicating. You are also in charge of communicating with command and letting them know about the situation first hand. Keep out of harm's way.<br><b>You remember that you've stored your personal gear and uniform are located in the dorm or locker rooms.</b>"
entry_message_body = "<a href='"+WIKI_PLACEHOLDER+"'>You are responsible for the men and women of your entire section.</a> Make sure they are on task, working together, and communicating. You are also in charge of communicating with command and letting them know about the situation first hand. Keep out of harm's way.<br><b>You remember that you've stored your personal gear and uniform are located in the dorm or locker rooms.</b>"

job_options = list(GYSGT_VARIANT = "GYSGT", SSGT_VARIANT = "SSGT")

Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/marine/squad/medic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
flags_startup_parameters = ROLE_ADD_TO_DEFAULT|ROLE_ADD_TO_SQUAD
gear_preset = /datum/equipment_preset/uscm/medic
gear_preset_secondary = /datum/equipment_preset/uscm/medic/lesser_rank
entry_message_body = "<a href='"+WIKI_PLACEHOLDER+"'>You tend the wounds of your squad mates</a> and make sure they are healthy and active. You may not be a fully-fledged doctor, but you stand between life and death when it matters.<br><b>You remember that you've stored your personal gear and uniform are located in your medical office.</b>"
entry_message_body = "<a href='"+WIKI_PLACEHOLDER+"'>You tend the wounds of your fellow Marines</a> and make sure they are healthy and active. You may not be a fully-fledged doctor, but you stand between life and death when it matters.<br><b>You remember that you've stored your personal gear and uniform are located in your medical office.</b>"

job_options = list(CPL_VARIANT = "CPL", LCPL_VARIANT = "LCPL")

Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/marine/squad/tl.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
allow_additional = 1
flags_startup_parameters = ROLE_ADD_TO_DEFAULT|ROLE_ADD_TO_SQUAD
gear_preset = /datum/equipment_preset/uscm/tl
entry_message_body = "You are the <a href='"+WIKI_PLACEHOLDER+"'>Squad Leader.</a> Your task is leading the designated squad and utilize available ordnance. If the platoon leader dies, you are expected to lead in their place.<br><b>You remember that you've stored your personal gear and uniform are located in the dorm or locker rooms.</b>"
entry_message_body = "You are the <a href='"+WIKI_PLACEHOLDER+"'>Squad Leader.</a> Your task is leading the designated squad and utilize available ordnance. If the section sergeant dies, you are expected to lead in their place.<br><b>You remember that you've stored your personal gear and uniform are located in the dorm or locker rooms.</b>"

job_options = list(SGT_VARIANT = "SGT")

Expand Down
28 changes: 14 additions & 14 deletions code/game/jobs/job/marine/squad_info.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
update_all_squad_info()
if(squad_info_data["total_mar"] != count) //updates for new marines
update_free_mar()
if(squad_leader && squad_info_data["pltsgt"]["name"] != squad_leader.real_name)
if(squad_leader && squad_info_data["sctsgt"]["name"] != squad_leader.real_name)
update_squad_leader()
var/list/data = squad_info_data.Copy()
data["squad"] = name
Expand All @@ -29,7 +29,7 @@
/datum/squad/proc/get_leadership(mob/user)
var/mob/living/carbon/human/H = user
if (squad_leader && H.name == squad_leader.name)
return "pltsgt"
return "sctsgt"
else
for(var/fireteam in fireteams)
var/mob/living/carbon/human/ftl = fireteam_leaders[fireteam]
Expand Down Expand Up @@ -58,7 +58,7 @@
var/target_marine = params["target_marine"]
var/target_team = params["target_ft"]

if (islead != "pltsgt")
if (islead != "sctsgt")
return

var/mob/living/carbon/human/target = get_marine_from_name(target_marine)
Expand All @@ -72,7 +72,7 @@
if ("unassign_ft")
var/target_marine = params["target_marine"]

if (islead != "pltsgt")
if (islead != "sctsgt")
return

var/mob/living/carbon/human/target = get_marine_from_name(target_marine)
Expand All @@ -85,7 +85,7 @@
if ("demote_ftl")
var/target_team = params["target_ft"]

if (islead != "pltsgt")
if (islead != "sctsgt")
return

unassign_ft_leader(target_team, FALSE, TRUE)
Expand All @@ -96,7 +96,7 @@
var/target_marine = params["target_marine"]
var/target_team = params["target_ft"]

if (islead != "pltsgt")
if (islead != "sctsgt")
return

var/mob/living/carbon/human/target = get_marine_from_name(target_marine)
Expand All @@ -108,7 +108,7 @@

//used once on first opening
/datum/squad/proc/update_all_squad_info()
squad_info_data["pltsgt"] = list()
squad_info_data["sctsgt"] = list()
update_squad_leader()
squad_info_data["fireteams"] = list()
var/i = 1
Expand All @@ -120,14 +120,14 @@
squad_info_data["mar_free"] = list()
update_free_mar()

//pltsgt update. Should always be paired up with FT or free marines update
//sctsgt update. Should always be paired up with FT or free marines update
/datum/squad/proc/update_squad_leader()
var/obj/item/card/id/ID = null
if(squad_leader)
ID = squad_leader.get_idcard()
squad_info_data["pltsgt"]["name"] = squad_leader ? squad_leader.real_name : "None"
squad_info_data["pltsgt"]["refer"] = squad_leader ? "\ref[squad_leader]" : null
squad_info_data["pltsgt"]["paygrade"] = ID ? get_paygrades(ID.paygrade, 1) : ""
squad_info_data["sctsgt"]["name"] = squad_leader ? squad_leader.real_name : "None"
squad_info_data["sctsgt"]["refer"] = squad_leader ? "\ref[squad_leader]" : null
squad_info_data["sctsgt"]["paygrade"] = ID ? get_paygrades(ID.paygrade, 1) : ""

//fireteam and TL update
/datum/squad/proc/update_fireteam(team)
Expand Down Expand Up @@ -173,7 +173,7 @@
if(JOB_SQUAD_TEAM_LEADER)
rank = "SqSgt"
if(JOB_SQUAD_LEADER)
rank = "PltSgt"
rank = "SctSgt"
if(JOB_SQUAD_RTO)
rank = "RTO"
else
Expand Down Expand Up @@ -252,7 +252,7 @@
if(JOB_SQUAD_TEAM_LEADER)
rank = "SqSgt"
if(JOB_SQUAD_LEADER)
rank = "PltSgt"
rank = "SctSgt"
if(JOB_SQUAD_RTO)
rank = "RTO"
else
Expand Down Expand Up @@ -301,7 +301,7 @@
if(JOB_SQUAD_TEAM_LEADER)
rank = "SqSgt"
if(JOB_SQUAD_LEADER)
rank = "PltSgt"
rank = "SctSgt"
if(JOB_SQUAD_RTO)
rank = "RTO"
else
Expand Down
6 changes: 3 additions & 3 deletions code/game/jobs/job/marine/squads.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
var/sub_leader

/datum/squad_type/marine_squad
name = "Platoon"
lead_name = "Platoon Sergeant"
name = "Section"
lead_name = "Section Sergeant"
lead_icon = "leader"
sub_squad = "Squad"
sub_leader = "Squad Sergeant"
Expand Down Expand Up @@ -701,7 +701,7 @@
old_lead.comm_title = "SG"
if(JOB_SQUAD_LEADER)
if(!leader_killed)
old_lead.comm_title = "PltSgt"
old_lead.comm_title = "SctSgt"
if(JOB_SQUAD_RTO)
old_lead.comm_title = "RTO"
if(JOB_MARINE_RAIDER)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/asset_cache/asset_list_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
list("SG", "hudsquad_gun"),
list("Spc", "hudsquad_spec"),
list("SqSgt", "hudsquad_tl"),
list("PltSgt", "hudsquad_leader"),
list("SctSgt", "hudsquad_leader"),
list("RTO", "hudsquad_rto"),
)

Expand Down
8 changes: 4 additions & 4 deletions code/modules/gear_presets/uscm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,13 @@
//*****************************************************************************************************/

/datum/equipment_preset/uscm/leader
name = "USCM Platoon Sergeant"
name = "USCM Section Sergeant"
flags = EQUIPMENT_PRESET_EXTRA|EQUIPMENT_PRESET_MARINE
access = list(ACCESS_MARINE_PREP, ACCESS_MARINE_LEADER, ACCESS_MARINE_DROPSHIP)
assignment = JOB_SQUAD_LEADER
rank = JOB_SQUAD_LEADER
paygrades = list(PAY_SHORT_ME7 = JOB_PLAYTIME_TIER_0)
role_comm_title = "PltSgt"
role_comm_title = "SctSgt"
minimum_age = 27
skills = /datum/skills/SL

Expand Down Expand Up @@ -605,14 +605,14 @@
//*****************************************************************************************************/

/datum/equipment_preset/uscm/leader_equipped
name = "USCM Platoon Sergeant (Equipped)"
name = "USCM Section Sergeant (Equipped)"
flags = EQUIPMENT_PRESET_EXTRA|EQUIPMENT_PRESET_MARINE

access = list(ACCESS_MARINE_PREP, ACCESS_MARINE_LEADER, ACCESS_MARINE_DROPSHIP)
assignment = JOB_SQUAD_LEADER
rank = JOB_SQUAD_LEADER
paygrades = list(PAY_SHORT_ME7 = JOB_PLAYTIME_TIER_0)
role_comm_title = "PltSgt"
role_comm_title = "SctSgt"
minimum_age = 27
skills = /datum/skills/SL

Expand Down

0 comments on commit e17be1b

Please sign in to comment.