From: beck-thompson <107373427+beck-thompson@users.noreply.github.com>
Date: Mon, 17 Mar 2025 18:39:04 +0000 (-0700)
Subject: Chameleon vests now act like winter coats (#34929)
X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=15a5cebdcddeafe9840016d99274f8b937a8d2e9;p=space-station-14.git
Chameleon vests now act like winter coats (#34929)
First commit
---
diff --git a/Content.Shared/Armor/ArmorComponent.cs b/Content.Shared/Armor/ArmorComponent.cs
index 8ffbb5a4f8..38f5f2cb1b 100644
--- a/Content.Shared/Armor/ArmorComponent.cs
+++ b/Content.Shared/Armor/ArmorComponent.cs
@@ -23,6 +23,12 @@ public sealed partial class ArmorComponent : Component
///
[DataField]
public float PriceMultiplier = 1;
+
+ ///
+ /// If true, you can examine the armor to see the protection. If false, the verb won't appear.
+ ///
+ [DataField]
+ public bool ShowArmorOnExamine = true;
}
///
diff --git a/Content.Shared/Armor/SharedArmorSystem.cs b/Content.Shared/Armor/SharedArmorSystem.cs
index bea875256f..1ff1bbc073 100644
--- a/Content.Shared/Armor/SharedArmorSystem.cs
+++ b/Content.Shared/Armor/SharedArmorSystem.cs
@@ -51,7 +51,7 @@ public abstract class SharedArmorSystem : EntitySystem
private void OnArmorVerbExamine(EntityUid uid, ArmorComponent component, GetVerbsEvent args)
{
- if (!args.CanInteract || !args.CanAccess)
+ if (!args.CanInteract || !args.CanAccess || !component.ShowArmorOnExamine)
return;
var examineMarkup = GetArmorExamine(component.Modifiers);
diff --git a/Resources/Prototypes/Entities/Clothing/OuterClothing/specific.yml b/Resources/Prototypes/Entities/Clothing/OuterClothing/specific.yml
index c3d9bb1224..aec34e80ca 100644
--- a/Resources/Prototypes/Entities/Clothing/OuterClothing/specific.yml
+++ b/Resources/Prototypes/Entities/Clothing/OuterClothing/specific.yml
@@ -18,3 +18,12 @@
interfaces:
enum.ChameleonUiKey.Key:
type: ChameleonBoundUserInterface
+ - type: TemperatureProtection # Same as a basic winter coat.
+ heatingCoefficient: 1.1
+ coolingCoefficient: 0.1
+ - type: Armor
+ modifiers:
+ coefficients:
+ Slash: 0.95
+ Heat: 0.90
+ showArmorOnExamine: false