Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed May 16, 2024
1 parent 5da327a commit 16bd88b
Show file tree
Hide file tree
Showing 35 changed files with 357 additions and 379 deletions.
2 changes: 1 addition & 1 deletion code/game/jobs/job/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
if(!gear_preset)
return ""
if(GLOB.gear_path_presets_list[gear_preset])
return GLOB.gear_path_presets_list[gear_preset].paygrade
return GLOB.gear_path_presets_list[gear_preset].paygrade_base
return ""

/datum/job/proc/get_comm_title()
Expand Down
24 changes: 21 additions & 3 deletions code/modules/gear_presets/_select_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
var/list/access = list()
var/assignment
var/rank
var/paygrade
/// Default Paygrade
var/paygrade_base
/// Paygrade for having less than 10 hours in a role. Ignores playtime perk prefs.
var/paygrade_low
/// Paygrade for hitting 70 hours in a role. As of May 2024 only used for Corporate Liaison & Marine Raiders.
var/paygrade_mid
/// Paygrade for hitting 175 hours in a role.
var/paygrade_high
var/role_comm_title
var/minimum_age
var/faction = FACTION_NEUTRAL
Expand Down Expand Up @@ -96,7 +103,18 @@
new_human.age = minimum_age

/datum/equipment_preset/proc/load_rank(mob/living/carbon/human/new_human, client/mob_client)
return paygrade
if(mob_client)
var/playtime = get_job_playtime(mob_client, rank)
if(paygrade_low && playtime < JOB_PLAYTIME_TIER_1)
return paygrade_low
if(new_human.client.prefs.playtime_perks)
if(paygrade_high && playtime > JOB_PLAYTIME_TIER_4)
return paygrade_high
if(paygrade_mid && playtime < JOB_PLAYTIME_TIER_3)
return paygrade_mid
else
return paygrade_base
return paygrade_base

/datum/equipment_preset/proc/load_gear(mob/living/carbon/human/new_human, client/mob_client)
return
Expand Down Expand Up @@ -185,7 +203,7 @@
new_human.equip_to_slot_or_del(equipping_gear, WEAR_IN_BACK)

//Gives ranks to the ranked
var/current_rank = paygrade
var/current_rank = paygrade_base
var/obj/item/card/id/I = new_human.get_idcard()
if(I)
current_rank = I.paygrade
Expand Down
6 changes: 3 additions & 3 deletions code/modules/gear_presets/agents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
)
assignment = JOB_STOWAWAY
rank = JOB_STOWAWAY
paygrade = "???"
paygrade_base = "???"
role_comm_title = "???"
skills = /datum/skills/civilian/survivor

Expand Down Expand Up @@ -69,7 +69,7 @@
)
assignment = JOB_UPP_REPRESENTATIVE
rank = JOB_UPP_REPRESENTATIVE
paygrade = PAY_SHORT_CREP
paygrade_base = PAY_SHORT_CREP
role_comm_title = "UPP Rep."
skills = /datum/skills/civilian/survivor

Expand Down Expand Up @@ -105,7 +105,7 @@
)
assignment = JOB_TWE_REPRESENTATIVE
rank = JOB_TWE_REPRESENTATIVE
paygrade = PAY_SHORT_CREP
paygrade_base = PAY_SHORT_CREP
role_comm_title = "TWE Rep."
skills = /datum/skills/civilian/survivor

Expand Down
10 changes: 5 additions & 5 deletions code/modules/gear_presets/cbrn.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "Generic CBRN" //Parent type for easier gear
assignment = JOB_SQUAD_MARINE
rank = JOB_SQUAD_MARINE
paygrade = PAY_SHORT_ME3
paygrade_base = PAY_SHORT_ME3
role_comm_title = "CBRN"
flags = EQUIPMENT_PRESET_EXTRA
auto_squad_name = SQUAD_CBRN
Expand Down Expand Up @@ -67,7 +67,7 @@

/datum/equipment_preset/uscm/cbrn/engineer
name = "CBRN Combat Technician"
paygrade = PAY_SHORT_ME4
paygrade_base = PAY_SHORT_ME4
assignment = JOB_SQUAD_ENGI
rank = JOB_SQUAD_ENGI
role_comm_title = "ComTech"
Expand Down Expand Up @@ -111,7 +111,7 @@

/datum/equipment_preset/uscm/cbrn/medic
name = "CBRN Hospital Corpsman"
paygrade = PAY_SHORT_ME4
paygrade_base = PAY_SHORT_ME4
assignment = JOB_SQUAD_MEDIC
rank = JOB_SQUAD_MEDIC
role_comm_title = "HM"
Expand Down Expand Up @@ -154,7 +154,7 @@

/datum/equipment_preset/uscm/cbrn/leader
name = "CBRN Fireteam Leader"
paygrade = PAY_SHORT_ME5
paygrade_base = PAY_SHORT_ME5
assignment = JOB_SQUAD_TEAM_LEADER
rank = JOB_SQUAD_TEAM_LEADER
role_comm_title = "TL"
Expand Down Expand Up @@ -189,7 +189,7 @@

/datum/equipment_preset/uscm/cbrn/specialist
name = "CBRN Specialist"
paygrade = PAY_SHORT_OPR
paygrade_base = PAY_SHORT_OPR
assignment = JOB_SQUAD_SPECIALIST
rank = JOB_SQUAD_SPECIALIST
role_comm_title = "Spc"
Expand Down
8 changes: 4 additions & 4 deletions code/modules/gear_presets/clf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
languages = list(LANGUAGE_JAPANESE, LANGUAGE_ENGLISH)
assignment = JOB_CLF
rank = FACTION_CLF
paygrade = PAY_SHORT_REB
paygrade_base = PAY_SHORT_REB
faction = FACTION_CLF
origin_override = ORIGIN_CIVILIAN
idtype = /obj/item/card/id/data
Expand Down Expand Up @@ -284,7 +284,7 @@
assignment = JOB_CLF_MEDIC
rank = JOB_CLF_MEDIC
role_comm_title = "MED"
paygrade = PAY_SHORT_CDOC
paygrade_base = PAY_SHORT_CDOC
skills = /datum/skills/clf/combat_medic

/datum/equipment_preset/clf/medic/load_gear(mob/living/carbon/human/new_human)
Expand Down Expand Up @@ -716,7 +716,7 @@
skills = /datum/skills/colonial_synthetic
assignment = JOB_CLF_SYNTH
rank = JOB_CLF_SYNTH
paygrade = PAY_SHORT_SYN
paygrade_base = PAY_SHORT_SYN
role_comm_title = "Syn"

/datum/equipment_preset/clf/synth/New()
Expand Down Expand Up @@ -960,7 +960,7 @@
flags = EQUIPMENT_PRESET_EXTRA
assignment = JOB_CLF_COMMANDER
rank = JOB_CLF_COMMANDER
paygrade = PAY_SHORT_REBC
paygrade_base = PAY_SHORT_REBC
role_comm_title = "CMDR"
skills = /datum/skills/clf/commander

Expand Down
20 changes: 10 additions & 10 deletions code/modules/gear_presets/cmb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

/datum/equipment_preset/cmb/standard
name = "CMB - Colonial Marshal Deputy"
paygrade = PAY_SHORT_CMBD
paygrade_base = PAY_SHORT_CMBD
role_comm_title = "CMB DEP"
flags = EQUIPMENT_PRESET_EXTRA
assignment = "CMB Deputy"
Expand Down Expand Up @@ -141,7 +141,7 @@

/datum/equipment_preset/cmb/leader
name = "CMB - The Colonial Marshal"
paygrade = PAY_SHORT_CMBM
paygrade_base = PAY_SHORT_CMBM
idtype = /obj/item/card/id/marshal
role_comm_title = "CMB MAR"
flags = EQUIPMENT_PRESET_EXTRA
Expand Down Expand Up @@ -195,7 +195,7 @@
//*****************************************************************************************************/
/datum/equipment_preset/cmb/synth
name = "CMB - Colonial Marshal Investigative Synthetic"
paygrade = PAY_SHORT_CMBS
paygrade_base = PAY_SHORT_CMBS
idtype = /obj/item/card/id/deputy
role_comm_title = "CMB Syn"
flags = EQUIPMENT_PRESET_EXTRA
Expand Down Expand Up @@ -297,7 +297,7 @@

/datum/equipment_preset/cmb/liaison
name = "CMB - ICC Liaison"
paygrade = PAY_SHORT_ICCL
paygrade_base = PAY_SHORT_ICCL
idtype = /obj/item/card/id/silver/cl
role_comm_title = "ICC Rep."
flags = EQUIPMENT_PRESET_EXTRA
Expand Down Expand Up @@ -356,7 +356,7 @@

/datum/equipment_preset/cmb/observer
name = "CMB - Interstellar Human Rights Observer"
paygrade = PAY_SHORT_IHRO
paygrade_base = PAY_SHORT_IHRO
idtype = /obj/item/card/id/lanyard
role_comm_title = "OBS"
flags = EQUIPMENT_PRESET_EXTRA
Expand Down Expand Up @@ -415,7 +415,7 @@

assignment = "Anchorpoint Station Marine Rifleman"
rank = JOB_SQUAD_MARINE
paygrade = PAY_SHORT_ME2
paygrade_base = PAY_SHORT_ME2
role_comm_title = "A-RFN"
skills = /datum/skills/pfc/crafty
faction = FACTION_MARSHAL
Expand Down Expand Up @@ -465,7 +465,7 @@

assignment = "Anchorpoint Station Marine Team Leader"
rank = JOB_SQUAD_LEADER
paygrade = PAY_SHORT_ME6
paygrade_base = PAY_SHORT_ME6
role_comm_title = "A-TL"
minimum_age = 25
skills = /datum/skills/SL
Expand Down Expand Up @@ -510,7 +510,7 @@

assignment = "Anchorpoint Station Marine Technical Specialist"
rank = JOB_SQUAD_TEAM_LEADER
paygrade = PAY_SHORT_ME4
paygrade_base = PAY_SHORT_ME4
role_comm_title = "A-TS"
skills = /datum/skills/tl

Expand Down Expand Up @@ -555,7 +555,7 @@

assignment = "Anchorpoint Station Hospital Corpsman"
rank = JOB_SQUAD_MEDIC
paygrade = PAY_SHORT_ME3
paygrade_base = PAY_SHORT_ME3
role_comm_title = "A-HM"
skills = /datum/skills/combat_medic

Expand Down Expand Up @@ -616,7 +616,7 @@

assignment = "Anchorpoint Station Marine Smartgunner"
rank = JOB_SQUAD_SMARTGUN
paygrade = PAY_SHORT_ME3
paygrade_base = PAY_SHORT_ME3
role_comm_title = "A-SG"
skills = /datum/skills/smartgunner

Expand Down
24 changes: 12 additions & 12 deletions code/modules/gear_presets/contractor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

/datum/equipment_preset/contractor/duty/standard
name = "Military Contractor (Standard)"
paygrade = PAY_SHORT_VAI_S
paygrade_base = PAY_SHORT_VAI_S
role_comm_title = "Merc"
flags = EQUIPMENT_PRESET_EXTRA
assignment = "VAIPO Mercenary"
Expand Down Expand Up @@ -160,7 +160,7 @@

/datum/equipment_preset/contractor/duty/heavy
name = "Military Contractor (Machinegunner)"
paygrade = PAY_SHORT_VAI_G
paygrade_base = PAY_SHORT_VAI_G
role_comm_title = "MG"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -205,7 +205,7 @@
//*****************************************************************************************************/
/datum/equipment_preset/contractor/duty/engi
name = "Military Contractor (Engineer)"
paygrade = PAY_SHORT_VAI_E
paygrade_base = PAY_SHORT_VAI_E

role_comm_title = "Eng"
flags = EQUIPMENT_PRESET_EXTRA
Expand Down Expand Up @@ -252,7 +252,7 @@

/datum/equipment_preset/contractor/duty/medic
name = "Military Contractor (Medic)"
paygrade = PAY_SHORT_VAI_M
paygrade_base = PAY_SHORT_VAI_M
role_comm_title = "Med"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -298,7 +298,7 @@

/datum/equipment_preset/contractor/duty/leader
name = "Military Contractor (Leader)"
paygrade = PAY_SHORT_VAI_L
paygrade_base = PAY_SHORT_VAI_L
role_comm_title = "TL"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -348,7 +348,7 @@
//*****************************************************************************************************/
/datum/equipment_preset/contractor/duty/synth
name = "Military Contractor (Synthetic)"
paygrade = PAY_SHORT_VAI_SN
paygrade_base = PAY_SHORT_VAI_SN
role_comm_title = "Syn"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -438,7 +438,7 @@

/datum/equipment_preset/contractor/covert/standard
name = "Military Contractor (Covert Standard)"
paygrade = PAY_SHORT_VAI_S
paygrade_base = PAY_SHORT_VAI_S
role_comm_title = "Merc"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -539,7 +539,7 @@

/datum/equipment_preset/contractor/covert/heavy
name = "Military Contractor (Covert Machinegunner)"
paygrade = PAY_SHORT_VAI_G
paygrade_base = PAY_SHORT_VAI_G
role_comm_title = "MG"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -586,7 +586,7 @@
//*****************************************************************************************************/
/datum/equipment_preset/contractor/covert/engi
name = "Military Contractor (Covert Engineer)"
paygrade = PAY_SHORT_VAI_E
paygrade_base = PAY_SHORT_VAI_E

role_comm_title = "Eng"
flags = EQUIPMENT_PRESET_EXTRA
Expand Down Expand Up @@ -634,7 +634,7 @@

/datum/equipment_preset/contractor/covert/medic
name = "Military Contractor (Covert Medic)"
paygrade = PAY_SHORT_VAI_M
paygrade_base = PAY_SHORT_VAI_M
role_comm_title = "Med"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -681,7 +681,7 @@

/datum/equipment_preset/contractor/covert/leader
name = "Military Contractor (Covert Leader)"
paygrade = PAY_SHORT_VAI_L
paygrade_base = PAY_SHORT_VAI_L
role_comm_title = "TL"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down Expand Up @@ -732,7 +732,7 @@
//*****************************************************************************************************/
/datum/equipment_preset/contractor/covert/synth
name = "Military Contractor (Covert Synthetic)"
paygrade = PAY_SHORT_VAI_SN
paygrade_base = PAY_SHORT_VAI_SN
role_comm_title = "Syn"
flags = EQUIPMENT_PRESET_EXTRA

Expand Down
Loading

0 comments on commit 16bd88b

Please sign in to comment.