Chameleon vests now act like winter coats (#34929)

First commit
This commit is contained in:
beck-thompson
2025-03-17 11:39:04 -07:00
committed by GitHub
parent 1367ae5703
commit 15a5cebdcd
3 changed files with 16 additions and 1 deletions

View File

@@ -23,6 +23,12 @@ public sealed partial class ArmorComponent : Component
/// </summary>
[DataField]
public float PriceMultiplier = 1;
/// <summary>
/// If true, you can examine the armor to see the protection. If false, the verb won't appear.
/// </summary>
[DataField]
public bool ShowArmorOnExamine = true;
}
/// <summary>

View File

@@ -51,7 +51,7 @@ public abstract class SharedArmorSystem : EntitySystem
private void OnArmorVerbExamine(EntityUid uid, ArmorComponent component, GetVerbsEvent<ExamineVerb> args)
{
if (!args.CanInteract || !args.CanAccess)
if (!args.CanInteract || !args.CanAccess || !component.ShowArmorOnExamine)
return;
var examineMarkup = GetArmorExamine(component.Modifiers);

View File

@@ -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