mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
20 lines
651 B
C#
20 lines
651 B
C#
using RimWorld;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Verse;
|
|
|
|
namespace RJWSexperience.Ideology.Precepts
|
|
{
|
|
public class Comp_KnowsMemoryThought_Gendered : PreceptComp_KnowsMemoryThought
|
|
{
|
|
[SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
|
|
public Gender doersGender;
|
|
|
|
public override void Notify_MemberWitnessedAction(HistoryEvent ev, Precept precept, Pawn member)
|
|
{
|
|
if (ev.args.TryGetArg(HistoryEventArgsNames.Doer, out Pawn doer) && doer.gender == doersGender)
|
|
{
|
|
base.Notify_MemberWitnessedAction(ev, precept, member);
|
|
}
|
|
}
|
|
}
|
|
}
|