mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
19 lines
642 B
C#
19 lines
642 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)
|
|
{
|
|
Pawn doer = ev.args.GetArg<Pawn>(HistoryEventArgsNames.Doer);
|
|
if (doer.gender == doersGender)
|
|
base.Notify_MemberWitnessedAction(ev, precept, member);
|
|
}
|
|
}
|
|
}
|