Add ability to add additional friendly and hostile factions in prototypes (#29636)
* Make friendly and hostile factions in NpcFactionMemberComponent datafiels * :trollface: * :trollface:
This commit is contained in:
@@ -25,4 +25,16 @@ public sealed partial class NpcFactionMemberComponent : Component
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public readonly HashSet<ProtoId<NpcFactionPrototype>> HostileFactions = new();
|
||||
|
||||
/// <summary>
|
||||
/// Used to add friendly factions in prototypes.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables]
|
||||
public HashSet<ProtoId<NpcFactionPrototype>>? AddFriendlyFactions;
|
||||
|
||||
/// <summary>
|
||||
/// Used to add hostile factions in prototypes.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables]
|
||||
public HashSet<ProtoId<NpcFactionPrototype>>? AddHostileFactions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user