Build 0.20.12.0
This commit is contained in:
@@ -1020,12 +1020,15 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
if (ic.statusEffectLists == null) { continue; }
|
||||
|
||||
if (statusEffectLists == null)
|
||||
if (ic.InheritStatusEffects)
|
||||
{
|
||||
statusEffectLists = new Dictionary<ActionType, List<StatusEffect>>();
|
||||
// Inherited status effects are added when the ItemComponent is initialized at ItemComponent.cs:332.
|
||||
// Don't create duplicate effects here.
|
||||
continue;
|
||||
}
|
||||
|
||||
statusEffectLists ??= new Dictionary<ActionType, List<StatusEffect>>();
|
||||
|
||||
//go through all the status effects of the component
|
||||
//and add them to the corresponding statuseffect list
|
||||
foreach (List<StatusEffect> componentEffectList in ic.statusEffectLists.Values)
|
||||
|
||||
Reference in New Issue
Block a user