Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suit fixes #16646

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions code/datums/components/shield.dm
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,8 @@
. = ..()
if(!shield_integrity)
return
var/obj/item/clothing/suit/reactive_suit = parent
var/mob/living/carbon/human/affected_human = affected
affected_human.overlays_standing[OVERHEALTH_SHIELD_LAYER] = list(mutable_appearance('icons/effects/effects.dmi', reactive_suit.shield_state, affected.layer + 0.01))
affected_human.overlays_standing[OVERHEALTH_SHIELD_LAYER] = list(mutable_appearance('icons/effects/effects.dmi', "shield-blue", affected.layer + 0.01))
affected_human.apply_overlay(OVERHEALTH_SHIELD_LAYER)

/datum/component/shield/overhealth/deactivate_with_user()
Expand Down
7 changes: 2 additions & 5 deletions code/modules/clothing/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,11 @@
w_class = WEIGHT_CLASS_NORMAL
attachments_by_slot = list(ATTACHMENT_SLOT_BADGE)
attachments_allowed = list(/obj/item/armor_module/armor/badge)
var/supporting_limbs = NONE
var/blood_overlay_type = "suit"
var/shield_state = "shield-blue"

// Strength of the armor light used by [proc/set_light()]
light_power = 3
light_range = 4
light_system = MOVABLE_LIGHT
///Blood overlay icon_state
var/blood_overlay_type = "suit"

/obj/item/clothing/suit/Initialize(mapload)
. = ..()
Expand Down
1 change: 1 addition & 0 deletions code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
)
icon_state = "tdf_helmet_hardsuit"
worn_icon_state = "tdf_helmet_hardsuit"
item_map_variant_flags = NONE

/obj/item/clothing/head/helmet/marine/grenadier
name = "\improper B17 helmet"
Expand Down
6 changes: 2 additions & 4 deletions code/modules/clothing/modular_armor/attachments/modules.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,18 @@
slowdown = 0.3
slot = ATTACHMENT_SLOT_MODULE
variants_by_parent_type = list(/obj/item/clothing/suit/modular/xenonauten = "mod_autodoc_xn", /obj/item/clothing/suit/modular/tdf = "")
///The limbs this module supports
var/static/list/supported_limbs = list(CHEST, GROIN, ARM_LEFT, ARM_RIGHT, HAND_LEFT, HAND_RIGHT, LEG_LEFT, LEG_RIGHT, FOOT_LEFT, FOOT_RIGHT)

/obj/item/armor_module/module/valkyrie_autodoc/on_attach(obj/item/attaching_to, mob/user)
. = ..()
var/list/tricord = list(/datum/reagent/medicine/tricordrazine)
var/list/tramadol = list(/datum/reagent/medicine/tramadol)
/// This will do nothing without the autodoc update
parent.AddComponent(/datum/component/suit_autodoc, 4 MINUTES, tricord, tricord, tricord, tricord, tramadol, 0.5)
parent.AddElement(/datum/element/limb_support, supported_limbs)
parent.AddElement(/datum/element/limb_support)

/obj/item/armor_module/module/valkyrie_autodoc/on_detach(obj/item/detaching_from, mob/user)
detaching_from.remove_component(/datum/component/suit_autodoc)
detaching_from.RemoveElement(/datum/element/limb_support, supported_limbs)
detaching_from.RemoveElement(/datum/element/limb_support)
return ..()

/obj/item/armor_module/module/valkyrie_autodoc/som
Expand Down
13 changes: 6 additions & 7 deletions code/modules/clothing/suits/marine_armor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,14 @@
icon_state = "xarmor"
soft_armor = list(MELEE = 75, BULLET = 80, LASER = 80, ENERGY = 85, BOMB = 85, BIO = 70, FIRE = 85, ACID = 70)
slowdown = SLOWDOWN_ARMOR_MEDIUM
supporting_limbs = CHEST | GROIN | ARM_LEFT | ARM_RIGHT | HAND_LEFT | HAND_RIGHT | LEG_LEFT | LEG_RIGHT | FOOT_LEFT | FOOT_RIGHT | HEAD //B18 effectively stabilizes these.
resistance_flags = UNACIDABLE
item_flags = AUTOBALANCE_CHECK

/obj/item/clothing/suit/storage/marine/specialist/Initialize(mapload, ...)
. = ..()
AddComponent(/datum/component/suit_autodoc)
AddComponent(/datum/component/stun_mitigation, slot_override = SLOT_WEAR_SUIT, shield_cover = list(MELEE = 50, BULLET = 50, LASER = 50, ENERGY = 50, BOMB = 50, BIO = 50, FIRE = 50, ACID = 50))
AddElement(/datum/element/limb_support, supporting_limbs)
AddElement(/datum/element/limb_support)
if(item_flags & AUTOBALANCE_CHECK)
SSmonitor.stats.b18_in_use += src

Expand All @@ -172,6 +171,9 @@
SSmonitor.stats.b18_in_use -= src
return ..()

/obj/item/clothing/suit/storage/marine/specialist/valhalla
item_flags = NONE

/obj/item/clothing/suit/storage/marine/specialist/tdf
name = "\improper Ace class hardsuit"
desc = "The Ace class is what would be called a light hardsuit, good mobility and good protection compared to the standard TDF battle armor but pales in comparison to the more advanced and heavier hardsuits out there and not as fancy, it's integrated SMES only provides enough power for its powered exoskeleton and the autodoc system to run for several hours. Provides excellent protection however it does reduce mobility somewhat. Alt-Click to remove attached items. Use it to toggle the built-in flashlight."
Expand All @@ -183,9 +185,7 @@
)
icon_state = "tdf_hardsuit"
worn_icon_state = "tdf_hardsuit"

/obj/item/clothing/suit/storage/marine/specialist/valhalla
item_flags = NONE
item_map_variant_flags = NONE

/obj/item/clothing/suit/storage/marine/B17
name = "\improper B17 defensive armor"
Expand Down Expand Up @@ -313,13 +313,12 @@
attachments_by_slot = list(ATTACHMENT_SLOT_STORAGE)
attachments_allowed = list(/obj/item/armor_module/storage/grenade)
starting_attachments = list(/obj/item/armor_module/storage/grenade)
supporting_limbs = CHEST | GROIN | ARM_LEFT | ARM_RIGHT | HAND_LEFT | HAND_RIGHT | LEG_LEFT | LEG_RIGHT | FOOT_LEFT | FOOT_RIGHT | HEAD //B18 effectively stabilizes these.
resistance_flags = UNACIDABLE

/obj/item/clothing/suit/storage/marine/veteran/pmc/commando/Initialize(mapload, ...)
. = ..()
AddComponent(/datum/component/suit_autodoc)
AddElement(/datum/element/limb_support, supporting_limbs)
AddElement(/datum/element/limb_support)

/*===========================I.o.M================================*/

Expand Down
Binary file modified icons/mob/modular/tdf_armor.dmi
Binary file not shown.
Binary file modified icons/mob/modular/tdf_helmets.dmi
Binary file not shown.
Loading