@@ -23,6 +23,12 @@ public sealed partial class ArmorComponent : Component
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField]
|
[DataField]
|
||||||
public float PriceMultiplier = 1;
|
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>
|
/// <summary>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public abstract class SharedArmorSystem : EntitySystem
|
|||||||
|
|
||||||
private void OnArmorVerbExamine(EntityUid uid, ArmorComponent component, GetVerbsEvent<ExamineVerb> args)
|
private void OnArmorVerbExamine(EntityUid uid, ArmorComponent component, GetVerbsEvent<ExamineVerb> args)
|
||||||
{
|
{
|
||||||
if (!args.CanInteract || !args.CanAccess)
|
if (!args.CanInteract || !args.CanAccess || !component.ShowArmorOnExamine)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var examineMarkup = GetArmorExamine(component.Modifiers);
|
var examineMarkup = GetArmorExamine(component.Modifiers);
|
||||||
|
|||||||
@@ -18,3 +18,12 @@
|
|||||||
interfaces:
|
interfaces:
|
||||||
enum.ChameleonUiKey.Key:
|
enum.ChameleonUiKey.Key:
|
||||||
type: ChameleonBoundUserInterface
|
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