2022-07-26 03:55:56 +00:00
|
|
|
|
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)
|
|
|
|
|
{
|
2022-08-09 16:32:25 +00:00
|
|
|
|
if (ev.args.TryGetArg(HistoryEventArgsNames.Doer, out Pawn doer) && doer.gender == doersGender)
|
|
|
|
|
{
|
2022-07-26 03:55:56 +00:00
|
|
|
|
base.Notify_MemberWitnessedAction(ev, precept, member);
|
2022-08-09 16:32:25 +00:00
|
|
|
|
}
|
2022-07-26 03:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|