Skip to content

Commit

Permalink
Campaign loadout fixes and improvements (#16331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Jul 13, 2024
1 parent a5870ee commit 44439c9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@

/datum/loadout_item/suit_store/main_gun/som_engineer/mpi
name = "MPi-KM"
desc = "Equipped with a mag harness and laser sight. The MPi-KM is a modern reproduction based off several variants of kalashnikov type rifles used during the original Martian rebellion. \
desc = "Equipped with a red dot sight and underslung grenade launcher. The MPi-KM is a modern reproduction based off several variants of kalashnikov type rifles used during the original Martian rebellion. \
These weapons were already ancient at that time, and their continued use by the SOM speaks more to their cultural legacy than any tactical benefits. \
Despite having relatively poor mobility and handling, it never the less has fearsome firepower and good capacity, ensuring it stays a relevant weapon choice for the SOM. Uses 7.62x39mm ammunition."
ui_icon = "ak47"
item_typepath = /obj/item/weapon/gun/rifle/mpi_km/black/magharness
item_typepath = /obj/item/weapon/gun/rifle/mpi_km/black/grenadier

/datum/loadout_item/suit_store/main_gun/som_engineer/mpi/post_equip(mob/living/carbon/human/wearer, datum/outfit/quick/loadout)
. = ..()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@

/datum/loadout_item/suit_store/main_gun/som_medic/mpi
name = "MPi-KM"
desc = "Equipped with a mag harness and laser sight. The MPi-KM is a modern reproduction based off several variants of kalashnikov type rifles used during the original Martian rebellion. \
desc = "Equipped with a red dot sight and underslung grenade launcher. The MPi-KM is a modern reproduction based off several variants of kalashnikov type rifles used during the original Martian rebellion. \
These weapons were already ancient at that time, and their continued use by the SOM speaks more to their cultural legacy than any tactical benefits. \
Despite having relatively poor mobility and handling, it never the less has fearsome firepower and good capacity, ensuring it stays a relevant weapon choice for the SOM. Uses 7.62x39mm ammunition."
ui_icon = "ak47"
item_typepath = /obj/item/weapon/gun/rifle/mpi_km/black/magharness
item_typepath = /obj/item/weapon/gun/rifle/mpi_km/black/grenadier

/datum/loadout_item/suit_store/main_gun/som_medic/mpi/post_equip(mob/living/carbon/human/wearer, datum/outfit/quick/loadout)
. = ..()
Expand Down
12 changes: 12 additions & 0 deletions code/datums/gamemodes/campaign/loadout_items/_TGMC/belt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
desc = "The M276 is the standard load-bearing equipment of the TGMC. It consists of a modular belt with various clips. \
This version is designed for the SMG-25, and features a larger frame to support the gun. Due to its unorthodox design, it isn't a very common sight, and is only specially issued."
ui_icon = "m25"
req_desc = "Requires an SMG-25, MG-27 or FL-84."
item_typepath = /obj/item/storage/holster/m25
jobs_supported = list(SQUAD_MARINE)
item_whitelist = list(
Expand All @@ -78,6 +79,17 @@

/datum/loadout_item/belt/smg_holster/post_equip(mob/living/carbon/human/wearer, datum/outfit/quick/loadout)
wearer.equip_to_slot_or_del(new /obj/item/weapon/gun/smg/m25/holstered(wearer), SLOT_IN_HOLSTER)
var/ammo_type = /obj/item/ammo_magazine/smg/m25
if(istype(wearer.r_store, /obj/item/storage/pouch/magazine))
wearer.equip_to_slot_or_del(new ammo_type, SLOT_IN_R_POUCH)
wearer.equip_to_slot_or_del(new ammo_type, SLOT_IN_R_POUCH)
wearer.equip_to_slot_or_del(new ammo_type, SLOT_IN_R_POUCH)
if(wearer.skills.getRating(SKILL_SMGS) >= SKILL_SMGS_TRAINED)
ammo_type = /obj/item/ammo_magazine/smg/m25/ap
if(istype(wearer.l_store, /obj/item/storage/pouch/magazine))
wearer.equip_to_slot_or_del(new ammo_type, SLOT_IN_L_POUCH)
wearer.equip_to_slot_or_del(new ammo_type, SLOT_IN_L_POUCH)
wearer.equip_to_slot_or_del(new ammo_type, SLOT_IN_L_POUCH)

/datum/loadout_item/belt/machete
name = "Machete"
Expand Down
2 changes: 1 addition & 1 deletion code/datums/gamemodes/campaign/perks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Needed both for a purchase list and effected list (if one perk impacts multiple
else if(owner_stats.faction == FACTION_SOM)
owner_stats.replace_loadout_option(/datum/loadout_item/suit_store/main_gun/som_marine/smg/enhanced, /datum/loadout_item/suit_store/main_gun/som_marine/smg, SOM_SQUAD_MARINE)
owner_stats.replace_loadout_option(/datum/loadout_item/suit_store/main_gun/som_marine/smg_and_shield/enhanced, /datum/loadout_item/suit_store/main_gun/som_marine/smg_and_shield, SOM_SQUAD_MARINE)
owner_stats.replace_loadout_option(/datum/loadout_item/suit_store/main_gun/som_marine/smg/enhanced, /datum/loadout_item/suit_store/main_gun/som_marine/smg, SOM_SQUAD_CORPSMAN)
owner_stats.replace_loadout_option(/datum/loadout_item/suit_store/main_gun/som_medic/smg/enhanced, /datum/loadout_item/suit_store/main_gun/som_medic/smg, SOM_SQUAD_CORPSMAN)
owner_stats.replace_loadout_option(/datum/loadout_item/suit_store/main_gun/som_engineer/smg/enhanced, /datum/loadout_item/suit_store/main_gun/som_engineer/smg, SOM_SQUAD_ENGINEER)

/datum/perk/skill_mod/heavy_weapons
Expand Down

0 comments on commit 44439c9

Please sign in to comment.