@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user