<?xml version="1.0" encoding="UTF-8"?>
<Patch>
  <Operation Class="PatchOperationFindMod">
    <mods>
      <li>Vanilla Ideology Expanded - Memes and Structures</li>
    </mods>
    <match Class="PatchOperationSequence">
      <operations>
        <!-- Add required precepts -->
        <li Class="PatchOperationAdd">
          <xpath>Defs/MemeDef[defName = "VME_Pacifist" or defName = "VME_Emancipation"]/requireOne</xpath>
          <value>
            <li>
              <li>SCE_Rape_Abhorred</li>
            </li>
          </value>
        </li>

        <li Class="PatchOperationAdd">
          <xpath>Defs/MemeDef[defName = "VME_BloodCourt"]/requireOne</xpath>
          <value>
            <li>
              <li>SCE_Rape_DontCare</li>
              <li>SCE_Rape_Approved</li>
              <li>SCE_Rape_Honourable</li>
            </li>
          </value>
        </li>

        <!-- Add exclusion tags -->
        <li Class="PatchOperationAdd">
          <xpath>Defs/MemeDef[defName = "VME_Pacifist"]/exclusionTags</xpath>
          <value>
            <li>RapeCultureVsPacifist</li>
          </value>
        </li>

        <li Class="PatchOperationAdd">
          <xpath>Defs/MemeDef[defName = "VME_Emancipation"]/exclusionTags</xpath>
          <value>
            <li>RapeCultureVsEmancipation</li>
          </value>
        </li>

        <li Class="PatchOperationAdd">
          <xpath>Defs/MemeDef[defName = "VME_Structure_Bacchanalianism"][not(agreeableTraits)]</xpath>
          <value>
            <agreeableTraits></agreeableTraits>
          </value>
          <success>Always</success>
        </li>

        <li Class="PatchOperationAdd">
          <xpath>Defs/MemeDef[defName = "VME_Structure_Bacchanalianism"]/agreeableTraits</xpath>
          <value>
            <li>Nymphomaniac</li>
          </value>
        </li>
      </operations>
    </match>
  </Operation>
</Patch>