mirror of
				https://github.com/amevarashi/RJW-Sexperience.git
				synced 2024-08-14 23:54:08 +00:00 
			
		
		
		
	Change HistoryEventDef name prefix
This commit is contained in:
		
							parent
							
								
									226c09eca5
								
							
						
					
					
						commit
						2c574ffc75
					
				
					 4 changed files with 42 additions and 43 deletions
				
			
		| 
						 | 
					@ -114,21 +114,9 @@ namespace RJWSexperience.Ideology.Patches
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		public static void AfterSexHuman(Pawn human, Pawn partner, bool rape, bool isHumanReceiving = false)
 | 
							public static void AfterSexHuman(Pawn human, Pawn partner, bool rape, bool isHumanReceiving = false)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if (IdeoUtility.IsIncest(human, partner, false))
 | 
								HistoryEventDef incestEvent = GetIncestTypeEvent(human, partner);
 | 
				
			||||||
			{
 | 
								Find.HistoryEventsManager.RecordEvent(incestEvent.CreateEvent(human));
 | 
				
			||||||
				if (IdeoUtility.IsIncest(human, partner, true))
 | 
								Find.HistoryEventsManager.RecordEvent(incestEvent.CreateEvent(partner));
 | 
				
			||||||
				{
 | 
					 | 
				
			||||||
					Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_CloseRelativeSex.CreateEvent(human));
 | 
					 | 
				
			||||||
					Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_CloseRelativeSex.CreateEvent(partner));
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_IncestuosSex.CreateEvent(human));
 | 
					 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_IncestuosSex.CreateEvent(partner));
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			else
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_NonIncestuosSex.CreateEvent(human));
 | 
					 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_NonIncestuosSex.CreateEvent(partner));
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (partner.IsAnimal())
 | 
								if (partner.IsAnimal())
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
| 
						 | 
					@ -178,6 +166,17 @@ namespace RJWSexperience.Ideology.Patches
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							private static HistoryEventDef GetIncestTypeEvent(Pawn pawn, Pawn partner)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if (IdeoUtility.IsIncest(pawn, partner, true))
 | 
				
			||||||
 | 
									return VariousDefOf.RSI_CloseRelativeSex;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								if (IdeoUtility.IsIncest(pawn, partner, false))
 | 
				
			||||||
 | 
									return VariousDefOf.RSI_IncestuosSex;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								return VariousDefOf.RSI_NonIncestuosSex;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		public static void RapeEffectSlave(Pawn victim)
 | 
							public static void RapeEffectSlave(Pawn victim)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Need_Suppression suppression = victim.needs.TryGetNeed<Need_Suppression>();
 | 
								Need_Suppression suppression = victim.needs.TryGetNeed<Need_Suppression>();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,16 +16,16 @@ namespace RJWSexperience.Ideology.Patches
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				if (IdeoUtility.IsIncest(firstPawn, secondPawn, true))
 | 
									if (IdeoUtility.IsIncest(firstPawn, secondPawn, true))
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_CloseRelativeMarriage.CreateEvent(firstPawn));
 | 
										Find.HistoryEventsManager.RecordEvent(VariousDefOf.RSI_CloseRelativeMarriage.CreateEvent(firstPawn));
 | 
				
			||||||
					Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_CloseRelativeMarriage.CreateEvent(secondPawn));
 | 
										Find.HistoryEventsManager.RecordEvent(VariousDefOf.RSI_CloseRelativeMarriage.CreateEvent(secondPawn));
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.Incestuos_Marriage.CreateEvent(firstPawn));
 | 
									Find.HistoryEventsManager.RecordEvent(VariousDefOf.RSI_IncestuosMarriage.CreateEvent(firstPawn));
 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.Incestuos_Marriage.CreateEvent(secondPawn));
 | 
									Find.HistoryEventsManager.RecordEvent(VariousDefOf.RSI_IncestuosMarriage.CreateEvent(secondPawn));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_NonIncestuosMarriage.CreateEvent(firstPawn));
 | 
									Find.HistoryEventsManager.RecordEvent(VariousDefOf.RSI_NonIncestuosMarriage.CreateEvent(firstPawn));
 | 
				
			||||||
				Find.HistoryEventsManager.RecordEvent(VariousDefOf.RJWSI_NonIncestuosMarriage.CreateEvent(secondPawn));
 | 
									Find.HistoryEventsManager.RecordEvent(VariousDefOf.RSI_NonIncestuosMarriage.CreateEvent(secondPawn));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,12 +31,12 @@ namespace RJWSexperience.Ideology
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef OralSex = DefDatabase<HistoryEventDef>.GetNamed("OralSex");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef OralSex = DefDatabase<HistoryEventDef>.GetNamed("OralSex");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef MiscSex = DefDatabase<HistoryEventDef>.GetNamed("MiscSex");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef MiscSex = DefDatabase<HistoryEventDef>.GetNamed("MiscSex");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef PromiscuousSex = DefDatabase<HistoryEventDef>.GetNamed("PromiscuousSex");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef PromiscuousSex = DefDatabase<HistoryEventDef>.GetNamed("PromiscuousSex");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef RJWSI_CloseRelativeMarriage = DefDatabase<HistoryEventDef>.GetNamed("RJWSI_CloseRelativeMarriage");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef RSI_CloseRelativeMarriage = DefDatabase<HistoryEventDef>.GetNamed("RSI_CloseRelativeMarriage");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef Incestuos_Marriage = DefDatabase<HistoryEventDef>.GetNamed("Incestuos_Marriage");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef RSI_IncestuosMarriage = DefDatabase<HistoryEventDef>.GetNamed("RSI_IncestuosMarriage");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef RJWSI_NonIncestuosMarriage = DefDatabase<HistoryEventDef>.GetNamed("RJWSI_NonIncestuosMarriage");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef RSI_NonIncestuosMarriage = DefDatabase<HistoryEventDef>.GetNamed("RSI_NonIncestuosMarriage");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef RJWSI_CloseRelativeSex = DefDatabase<HistoryEventDef>.GetNamed("RJWSI_CloseRelativeSex");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef RSI_CloseRelativeSex = DefDatabase<HistoryEventDef>.GetNamed("RSI_CloseRelativeSex");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef RJWSI_IncestuosSex = DefDatabase<HistoryEventDef>.GetNamed("RJWSI_IncestuosSex");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef RSI_IncestuosSex = DefDatabase<HistoryEventDef>.GetNamed("RSI_IncestuosSex");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef RJWSI_NonIncestuosSex = DefDatabase<HistoryEventDef>.GetNamed("RJWSI_NonIncestuosSex");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef RSI_NonIncestuosSex = DefDatabase<HistoryEventDef>.GetNamed("RSI_NonIncestuosSex");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef SexWithCorpse = DefDatabase<HistoryEventDef>.GetNamed("SexWithCorpse");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef SexWithCorpse = DefDatabase<HistoryEventDef>.GetNamed("SexWithCorpse");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef Virgin_TakenF = DefDatabase<HistoryEventDef>.GetNamed("Virgin_TakenF");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef Virgin_TakenF = DefDatabase<HistoryEventDef>.GetNamed("Virgin_TakenF");
 | 
				
			||||||
		[MayRequireIdeology] public static readonly HistoryEventDef Virgin_TakenM = DefDatabase<HistoryEventDef>.GetNamed("Virgin_TakenM");
 | 
							[MayRequireIdeology] public static readonly HistoryEventDef Virgin_TakenM = DefDatabase<HistoryEventDef>.GetNamed("Virgin_TakenM");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,32 +9,32 @@
 | 
				
			||||||
  </IssueDef>
 | 
					  </IssueDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <HistoryEventDef>
 | 
					  <HistoryEventDef>
 | 
				
			||||||
    <defName>RJWSI_CloseRelativeMarriage</defName>
 | 
					    <defName>RSI_CloseRelativeMarriage</defName>
 | 
				
			||||||
    <label>Marriage between close relatives</label>
 | 
					    <label>Marriage between close relatives</label>
 | 
				
			||||||
  </HistoryEventDef>
 | 
					  </HistoryEventDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <HistoryEventDef>
 | 
					  <HistoryEventDef>
 | 
				
			||||||
    <defName>Incestuos_Marriage</defName>
 | 
					    <defName>RSI_IncestuosMarriage</defName>
 | 
				
			||||||
    <label>Incestuos marriage</label>
 | 
					    <label>Incestuos marriage</label>
 | 
				
			||||||
  </HistoryEventDef>
 | 
					  </HistoryEventDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <HistoryEventDef>
 | 
					  <HistoryEventDef>
 | 
				
			||||||
    <defName>RJWSI_NonIncestuosMarriage</defName>
 | 
					    <defName>RSI_NonIncestuosMarriage</defName>
 | 
				
			||||||
    <label>Non-incestuos marriage</label>
 | 
					    <label>Non-incestuos marriage</label>
 | 
				
			||||||
  </HistoryEventDef>
 | 
					  </HistoryEventDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <HistoryEventDef>
 | 
					  <HistoryEventDef>
 | 
				
			||||||
    <defName>RJWSI_CloseRelativeSex</defName>
 | 
					    <defName>RSI_CloseRelativeSex</defName>
 | 
				
			||||||
    <label>Sex between close relatives</label>
 | 
					    <label>Sex between close relatives</label>
 | 
				
			||||||
  </HistoryEventDef>
 | 
					  </HistoryEventDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <HistoryEventDef>
 | 
					  <HistoryEventDef>
 | 
				
			||||||
    <defName>RJWSI_IncestuosSex</defName>
 | 
					    <defName>RSI_IncestuosSex</defName>
 | 
				
			||||||
    <label>Incestuos sex</label>
 | 
					    <label>Incestuos sex</label>
 | 
				
			||||||
  </HistoryEventDef>
 | 
					  </HistoryEventDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <HistoryEventDef>
 | 
					  <HistoryEventDef>
 | 
				
			||||||
    <defName>RJWSI_NonIncestuosSex</defName>
 | 
					    <defName>RSI_NonIncestuosSex</defName>
 | 
				
			||||||
    <label>Non-incestuos sex</label>
 | 
					    <label>Non-incestuos sex</label>
 | 
				
			||||||
  </HistoryEventDef>
 | 
					  </HistoryEventDef>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,11 +62,11 @@
 | 
				
			||||||
    <defaultSelectionWeight>100</defaultSelectionWeight>
 | 
					    <defaultSelectionWeight>100</defaultSelectionWeight>
 | 
				
			||||||
    <comps>
 | 
					    <comps>
 | 
				
			||||||
      <li Class="PreceptComp_SelfTookMemoryThought">
 | 
					      <li Class="PreceptComp_SelfTookMemoryThought">
 | 
				
			||||||
        <eventDef>RJWSI_CloseRelativeMarriage</eventDef>
 | 
					        <eventDef>RSI_CloseRelativeMarriage</eventDef>
 | 
				
			||||||
        <thought>IncestuosMarriage_Disapproved</thought>
 | 
					        <thought>IncestuosMarriage_Disapproved</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>RJWSI_CloseRelativeSex</eventDef>
 | 
					        <eventDef>RSI_CloseRelativeSex</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_Incest_Disapproved</thought>
 | 
					        <thought>Sex_Know_Incest_Disapproved</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
    </comps>
 | 
					    </comps>
 | 
				
			||||||
| 
						 | 
					@ -107,15 +107,15 @@
 | 
				
			||||||
    <defaultSelectionWeight>100</defaultSelectionWeight>
 | 
					    <defaultSelectionWeight>100</defaultSelectionWeight>
 | 
				
			||||||
    <comps>
 | 
					    <comps>
 | 
				
			||||||
      <li Class="PreceptComp_SelfTookMemoryThought">
 | 
					      <li Class="PreceptComp_SelfTookMemoryThought">
 | 
				
			||||||
        <eventDef>Incestuos_Marriage</eventDef>
 | 
					        <eventDef>RSI_IncestuosMarriage</eventDef>
 | 
				
			||||||
        <thought>IncestuosMarriage_Disapproved</thought>
 | 
					        <thought>IncestuosMarriage_Disapproved</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>Incestuos_Marriage</eventDef>
 | 
					        <eventDef>RSI_IncestuosMarriage</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_IncestMarriage_Disapproved</thought>
 | 
					        <thought>Sex_Know_IncestMarriage_Disapproved</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>RJWSI_IncestuosSex</eventDef>
 | 
					        <eventDef>RSI_IncestuosSex</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_Incest_Disapproved</thought>
 | 
					        <thought>Sex_Know_Incest_Disapproved</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
    </comps>
 | 
					    </comps>
 | 
				
			||||||
| 
						 | 
					@ -164,15 +164,15 @@
 | 
				
			||||||
    <defaultSelectionWeight>100</defaultSelectionWeight>
 | 
					    <defaultSelectionWeight>100</defaultSelectionWeight>
 | 
				
			||||||
    <comps>
 | 
					    <comps>
 | 
				
			||||||
      <li Class="PreceptComp_SelfTookMemoryThought">
 | 
					      <li Class="PreceptComp_SelfTookMemoryThought">
 | 
				
			||||||
        <eventDef>Incestuos_Marriage</eventDef>
 | 
					        <eventDef>RSI_IncestuosMarriage</eventDef>
 | 
				
			||||||
        <thought>IncestuosMarriage_Forbidden</thought>
 | 
					        <thought>IncestuosMarriage_Forbidden</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>Incestuos_Marriage</eventDef>
 | 
					        <eventDef>RSI_IncestuosMarriage</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_IncestMarriage_Forbidden</thought>
 | 
					        <thought>Sex_Know_IncestMarriage_Forbidden</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>RJWSI_IncestuosSex</eventDef>
 | 
					        <eventDef>RSI_IncestuosSex</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_Incest_Forbidden</thought>
 | 
					        <thought>Sex_Know_Incest_Forbidden</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
    </comps>
 | 
					    </comps>
 | 
				
			||||||
| 
						 | 
					@ -223,11 +223,11 @@
 | 
				
			||||||
    </conflictingMemes>
 | 
					    </conflictingMemes>
 | 
				
			||||||
    <comps>
 | 
					    <comps>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>RJWSI_NonIncestuosMarriage</eventDef>
 | 
					        <eventDef>RSI_NonIncestuosMarriage</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_IncestMarriage_Violated</thought>
 | 
					        <thought>Sex_Know_IncestMarriage_Violated</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
      <li Class="PreceptComp_KnowsMemoryThought">
 | 
					      <li Class="PreceptComp_KnowsMemoryThought">
 | 
				
			||||||
        <eventDef>RJWSI_NonIncestuosSex</eventDef>
 | 
					        <eventDef>RSI_NonIncestuosSex</eventDef>
 | 
				
			||||||
        <thought>Sex_Know_Incest_Violated</thought>
 | 
					        <thought>Sex_Know_Incest_Violated</thought>
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
    </comps>
 | 
					    </comps>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue