Faction Test 100.11.0.0
This commit is contained in:
@@ -252,7 +252,9 @@ namespace Barotrauma.Items.Components
|
||||
/// Can be used by status effects or conditionals to the speed of the item
|
||||
/// </summary>
|
||||
public float Speed => item.Speed;
|
||||
|
||||
|
||||
public readonly bool InheritStatusEffects;
|
||||
|
||||
public ItemComponent(Item item, ContentXElement element)
|
||||
{
|
||||
this.item = item;
|
||||
@@ -313,6 +315,7 @@ namespace Barotrauma.Items.Components
|
||||
string inheritStatusEffectsFrom = element.GetAttributeString("inheritstatuseffectsfrom", "");
|
||||
if (!string.IsNullOrEmpty(inheritStatusEffectsFrom))
|
||||
{
|
||||
InheritStatusEffects = true;
|
||||
var component = item.Components.Find(ic => ic.Name.Equals(inheritStatusEffectsFrom, StringComparison.OrdinalIgnoreCase));
|
||||
if (component == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user