<configs>



<set xpath="/buffs/buff[@name='god']/effect_group/passive_effect[@name='CarryCapacity']/@value">100</set>
<set xpath="/buffs/buff[@name='buffDrugSteroids']/effect_group/passive_effect[@name='CarryCapacity']/@value">100</set>

<remove xpath="/buffs/buff[@name='buffHealFood']/effect_group"/>

    <append xpath="/buffs/buff[@name='buffHealFood']">
        <effect_group name="Constant Digestion - No Slowdown">
                <triggered_effect trigger="onSelfBuffUpdate" action="ModifyStats" stat="food" operation="add" value=".1"/>
                <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$foodAmountAdd" operation="subtract" value=".1"/>
           </effect_group>

        <effect_group name="Cleanup Logic">
                <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffHealFood">
                    <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value=".1"/>
                </triggered_effect>
            
                <triggered_effect trigger="onSelfBuffRemove" action="RemoveCVar" cvar="$foodAmountAdd"/>
           </effect_group>
    </append>

  <append xpath="/buffs">

<buff name="VampireHarvest" hidden="true">
		<stack_type value="ignore"/>
		<duration value="0"/>
</buff>

<buff name="Restriction" hidden="true">
		<stack_type value="ignore"/>
		<duration value="0"/>
<!-- AUTO-ASSIGN HUMANPREDATOR -->
	<effect_group>
		<!-- If the player lacks ALL three buffs, give them HumanPredator -->
		<requirement name="HasBuff" buff="Vampire" invert="true"/>
		<requirement name="HasBuff" buff="Werewolf" invert="true"/>
		<requirement name="HasBuff" buff="HumanPredator" invert="true"/>
		
		<triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="HumanPredator"/>
	</effect_group>

	<!-- ITEM RESTRICTIONS -->
	
	<!-- VAMPIRE LOGIC -->
	<effect_group>
		<requirement name="HasBuff" buff="Vampire"/>
		<passive_effect name="DisableItem" operation="base_set" value="1" Modifier_tags="BloodVampire"/>
	</effect_group>

	<effect_group>
		<requirement name="HasBuff" buff="HumanPredator"/>
		<passive_effect name="DisableItem" operation="base_set" value="1" has_all_tags="WerewolfStone"/>
	</effect_group>

</buff>


<buff name="VampireHarvestA" hidden="false" remove_on_death="true">
    <stack_type value="ignore"/>
    <duration value="0"/> 
    <update_rate value="1"/>

	    <effect_group>
	        <requirement name="HasBuff" buff="Vampire"/>
		     <requirement name="!HasBuff" buff="VampireHarvest"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="VampireHarvest"/>
         </effect_group>

   <effect_group>
            <requirement name="!HasBuff" buff="Vampire"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="VampireHarvest"/>
         </effect_group>

	      <effect_group>
            <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="VampireHarvest"/>
	     </effect_group>

    </buff>

<buff name="Werewolfclaw" hidden="false" remove_on_death="true">
    <stack_type value="ignore"/>
    <duration value="0"/> 
    <update_rate value="1"/>

	    <effect_group>
	        <requirement name="HasBuff" buff="Werewolf"/>
            <requirement name="HasBuff" buff="buffAwakeningWolf"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="Werewolfclaws"/>
         </effect_group>

   <effect_group>
            <requirement name="!HasBuff" buff="Werewolf"/>
		    <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="Werewolfclaws"/>
		    </effect_group>

		     <effect_group>
            <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="Werewolfclaws"/>
         </effect_group>

	      <effect_group>
            <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Werewolfclaws"/>
	     </effect_group>

    </buff>

<buff name="Werewolfclaws"
      hidden="false"
      remove_on_death="true">

		  <stack_type value="ignore"/>
		  <duration value="0"/>
		  <update_rate value="1"/>

	      </buff>

	  
	  <buff name="buffShield"
      hidden="false"
      remove_on_death="true"
      icon="ui_game_symbol_shield"
      icon_blink="true"
      icon_color="80,180,255"
      name_key="buffShield"
      description_key="buffShieldDesc">

		  <stack_type value="replace"/>
		  <duration value="30"/>
		  <update_rate value="1"/>
		  <display_value_format value="time"/>
	      </buff>

	  <buff name="buffDivineProtection"
			hidden="false"
			remove_on_death="false"
			icon="ui_game_symbol_shield"
			icon_blink="false"
			icon_color="80,180,255"
			name_key="buffDivineProtection"
			description_key="buffDivineProtectionDesc">

		  <stack_type value="replace"/>
		  <duration value="0"/>
		  <update_rate value="1"/>
		  <display_value_format value="{0}s"/>
		  <display_value value="buffDivineProtectionCvar"/>

		     <effect_group>
			  <!-- If player is neither Vampire nor Werewolf, kill the buff -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="0">
				      <requirement_group op="and">
					      <requirement name="HasBuff" buff="Vampire" invert="true"/>
					      <requirement name="HasBuff" buff="Werewolf" invert="true"/>
				  </requirement_group>
			      </triggered_effect>

				  <!-- While protection is active, remove Sun/Moon weakness if they exist -->
				      <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffSunWeakness">
					      <requirement name="HasBuff" buff="buffSunWeakness"/>
				      </triggered_effect>

				      <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffMoonWeakness">
					      <requirement name="HasBuff" buff="buffMoonWeakness"/>
				      </triggered_effect>

				     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar"
    cvar="buffDivineProtectionCvar" operation="add" value="-1">
        <requirement name="HasBuff" buff="Vampire"/>
        <requirement name="IsDay"/>
        <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0.1"/>
        <requirement name="CVarCompare" cvar="_underwater" operation="Equals" value="0"/>
        <requirement name="CVarCompare" cvar="$WetTempModifierDisplay" operation="LT" value="90"/>
           </triggered_effect>

				  <!-- Drain ONLY when exposed (Werewolf: night + outside) -->
				      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar"
									cvar="buffDivineProtectionCvar" operation="add" value="-1">
					      <requirement name="HasBuff" buff="Werewolf"/>
					      <requirement name="IsDay" invert="true"/>
					      <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0.1"/>
				      </triggered_effect>

				  <!-- Clamp MIN -->
				      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar"
									cvar="buffDivineProtectionCvar" operation="set" value="0">
					      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="LT" value="0"/>
				      </triggered_effect>

				  <!-- Remove protection at 0 -->
				      <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffDivineProtection">
					      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="LTE" value="0"/>
				      </triggered_effect>
			     </effect_group>


		  <!-- =========================
       VAMPIRE caps (perkSunweakness)
       ========================= -->
		     <effect_group>
			      <requirement name="HasBuff" buff="Vampire"/>

			  <!-- If perk < 1, no protection -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="60">
				      <requirement name="ProgressionLevel" progression_name="perkSunweakness" operation="LT" value="1"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="60"/>
			      </triggered_effect>

			  <!-- L1 cap 15s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="120">
				      <requirement name="ProgressionLevel" progression_name="perkSunweakness" operation="Equals" value="1"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="120"/>
			      </triggered_effect>

			  <!-- L2 cap 25s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="180">
				      <requirement name="ProgressionLevel" progression_name="perkSunweakness" operation="Equals" value="2"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="180"/>

			      </triggered_effect>

			  <!-- L3 cap 50s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="240">
				      <requirement name="ProgressionLevel" progression_name="perkSunweakness" operation="Equals" value="3"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="240"/>
			      </triggered_effect>

			  <!-- L4 cap 80s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="300">
				      <requirement name="ProgressionLevel" progression_name="perkSunweakness" operation="Equals" value="4"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="300"/>
			      </triggered_effect>

			  <!-- L5 cap 120s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="360">
				      <requirement name="ProgressionLevel" progression_name="perkSunweakness" operation="Equals" value="5"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="360"/>
			      </triggered_effect>
		     </effect_group>

		  <!-- =========================
       WEREWOLF caps (perkMoonweakness)
       ========================= -->
		     <effect_group>
			      <requirement name="HasBuff" buff="Werewolf"/>

			  <!-- If perk < 1, no protection -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="60">
				      <requirement name="ProgressionLevel" progression_name="perkMoonweakness" operation="LT" value="1"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="60"/>
			      </triggered_effect>

			  <!-- L1 cap 15s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="120">
				      <requirement name="ProgressionLevel" progression_name="perkMoonweakness" operation="Equals" value="1"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="120"/>
			      </triggered_effect>

			  <!-- L2 cap 25s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="180">
				      <requirement name="ProgressionLevel" progression_name="perkMoonweakness" operation="Equals" value="2"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="180"/>
			      </triggered_effect>

			  <!-- L3 cap 50s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="240">
				      <requirement name="ProgressionLevel" progression_name="perkMoonweakness" operation="Equals" value="3"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="240"/>
			      </triggered_effect>

			  <!-- L4 cap 80s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="300">
				      <requirement name="ProgressionLevel" progression_name="perkMoonweakness" operation="Equals" value="4"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="300"/>
			      </triggered_effect>

			  <!-- L5 cap 120s -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffDivineProtectionCvar" operation="set" value="360">
				      <requirement name="ProgressionLevel" progression_name="perkMoonweakness" operation="Equals" value="5"/>
				      <requirement name="CVarCompare" cvar="buffDivineProtectionCvar" operation="GT" value="360"/>
			      </triggered_effect>
		     </effect_group>

	      </buff>
	  
    <!-- =========================================================
         PATH CORE: Werewolf
         - Mutually exclusive with Vampire
         - Ensures moon + awakening controllers stay running
         ========================================================= -->
    <buff name="Werewolf" hidden="true" remove_on_death="false">
      <stack_type value="ignore"/>
      <duration value="0"/>
      <update_rate value="1"/>
		
		<effect_group>
            <requirement name="IsNight"/>
            <passive_effect name="NoTrader" operation="base_set" value="1"/>
         </effect_group>

		   <effect_group>
			    <requirement name="EntityTagCompare" tags="player"/>
			    <triggered_effect trigger="onSelfRespawn" action="AddBuff" buff="buffShield"/>
			    <triggered_effect trigger="onSelfEnteredGame" action="AddBuff" buff="buffShield"/>
			    <triggered_effect trigger="onSelfLeaveGame" action="AddBuff" buff="buffShield"/>
		   </effect_group>

		<!-- On becoming Werewolf, strip all Vampire systems -->
         <effect_group>
            <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="Vampire"/>
            <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffPermaVampire"/>
            <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAwakeningVampire"/>
            <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSunInfo"/>
		    <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSunWeakness"/>
		     </effect_group>
		
			     <effect_group> 
		      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="HumanPredator"/>
		      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthController"/>
		      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealth_Active"/>
         </effect_group>
         <effect_group>
            <requirement name="!HasBuff" buff="buffMoonInfo"/>
		    <requirement name="!HasBuff" buff="buffMoonWeakness"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffMoonInfo"/>
         </effect_group>
          <effect_group>
            <requirement name="HasBuff" buff="buffMoonWeakness"/>
		    <requirement name="HasBuff" buff="buffMoonInfo"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffMoonInfo"/>
         </effect_group>

      <!-- Guarantee perma controller -->
         <effect_group>
            <requirement name="!HasBuff" buff="buffPermaWerewolf"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffPermaWerewolf"/>
         </effect_group>

      <!-- Guarantee awakening controller -->
         <effect_group>
            <requirement name="!HasBuff" buff="Awakening"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="Awakening"/>
         </effect_group>

        </buff>


    <!-- =========================================================
         PERMA CONTROLLER: Werewolf Moon Exposure
         - At NIGHT + not sheltered => apply buffMoonWeakness
         - If DAY or sheltered      => remove buffMoonWeakness
         (Uses _sheltered to match your "shelter stops exposure" rule)
         ========================================================= -->
    <buff name="buffPermaWerewolf" hidden="true" remove_on_death="false">
      <stack_type value="ignore"/>
      <duration value="0"/>
      <update_rate value="1"/>
	  <display_value value="buffPermaWerewolfCvar"/>
	  <_format value="{0}s"/>


		
		   <effect_group>
			    <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffMoonWeakness">
				    <requirement name="!HasBuff" buff="buffShield"/>
				    <requirement name="HasBuff" buff="buffDivineProtection" invert="true"/>
				    <requirement name="IsDay" invert="true"/>
				    <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0.1"/>
				    <requirement name="HasBuff" invert="true" buff="buffMoonWeakness"/>
			    </triggered_effect>
            
			    <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffMoonWeakness">
				    <requirement name="HasBuff" buff="buffShield"/>
			    </triggered_effect>
			
			    <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffMoonWeakness">
				    <requirement_group op="or">
					    <requirement name="IsDay"/>
					    <requirement name="CVarCompare" cvar="_sheltered" operation="GT" value="0.1"/>
				</requirement_group>
				    </triggered_effect>

		   </effect_group>

        </buff>


    <!-- =========================================================
         INFO BUFF: Moon Warning (shown when NOT currently burning)
         - Mirrors buffSunInfo pattern
         ========================================================= -->
    <buff name="buffMoonInfo"
          hidden="false"
          remove_on_death="false"
          icon="ui_game_symbol_moonburn"
          icon_blink="false"
          name_key="buffMoonInfo"
          description_key="buffMoonInfoDesc">
      <stack_type value="replace"/>
      <duration value="0"/>
        </buff>


<buff name="ShakeGreyscale" hidden="true">
   <stack_type value="replace"/>
      <duration value="0"/>

       <effect_group>
		    <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="0.45" shake_amplitude="20" shake_time="0"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="0"/>
       </effect_group>

        </buff>

<buff name="Greyscale" hidden="true">
   <stack_type value="replace"/>
      <duration value="0"/>

       <effect_group>
            <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="1" fade="6" effect_name="Greyscale"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="4" effect_name="Greyscale"/>
       </effect_group>

         </buff>


<buff name="TransformationPower" hidden="true">
    <update_rate value="1"/>


         <effect_group name="Track animals/zombies">
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="perkAT01,perkAT02,perkAT03,perkAT04,perkAT05"/>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningNormalTracker"/>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningNormalTracker,AwakeningFeralTracker"/>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker"/>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningChargedTracker,AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker"/>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningInfernalTracker,AwakeningChargedTracker,AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker"/>
		     </effect_group>

 <effect_group>
 <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="25"/>
 <triggered_effect trigger="onSelfPrimaryActionRayHit" action="Ragdoll" target="other" duration="2" force="300"/>
 </effect_group>

         <effect_group>
     <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAwakeningWolf"/>
         </effect_group>

        <effect_group>
      <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.5" fade="1" effect_name="Hot"/>
      <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Hot"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="ranged"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="tool"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="weapon"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="medical"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="food"/>
    <passive_effect name="DisableLoot" operation="base_set" value="1"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="drinks"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="block"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="repair"/>

	<passive_effect name="NoVehicle" operation="base_set" value="1"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="frame,wood,cobblestone,concrete,steel"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="building,outdoor,construction,decor"/>
	<passive_effect name="DisableItem" operation="base_set" value="1" tags="MC_Shapes"/>
     </effect_group>


      <effect_group>
    <passive_effect name="LootDropProb" operation="base_set" value="0"/>
    <passive_effect name="HarvestCount" operation="perc_add" value="-.75" tags="oreWoodHarvest"/>
    <passive_effect name="GeneralDamageResist" operation="base_add" value=".2"/>
    <passive_effect name="PlayerExpGain" operation="base_set" value="0"/>
    <passive_effect name="RunSpeed" operation="perc_add" value=".5"/>
    <passive_effect name="Mobility" operation="perc_add" value="1"/>
    <passive_effect name="JumpStrength" operation="perc_add" value="1"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="100"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".6" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.65" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value="2"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value="2"/>
    <passive_effect name="EntityDamage" operation="perc_set" value="100"/>
    <passive_effect name="BlockDamage" operation="base_set" value="612" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value="1.2"/>
	<passive_effect name="StaminaLoss" operation="base_set" value="0" tags="primary,secondary"/>
	<passive_effect name="LootDropProb" operation="base_set" value="0"/>
      </effect_group>



      <effect_group>
     <requirement name="!HasBuff" buff="buffMoonWeakness"/>
     <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="TransformationPower"/>
    </effect_group>

    </buff>


    <buff name="buffMoonWeakness"
          name_key="buffMoonWeakness"
          icon="ui_game_symbol_moonburn"
          icon_blink="true"
		  tooltip_key="buffMoonWeaknessTooltip"
          icon_color="220,0,0"
		  description_key="buffMoonWeaknessDesc">
      <damage_type value="break"/>
      <stack_type value="replace"/>
    <update_rate value="1"/>

    <effect_group>
     <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="SafeMoon"/>
	 <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffMoonInfo"/>
     <triggered_effect trigger="onSelfBuffStart" action="ModifyCVar" cvar="$Transformation" operation="set" value="1"/>
     <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$Transformation" operation="add" value="1"/>
     <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="WhileTransform"/>
     <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="HeartBeat"/>
     <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="WerewolfTransformation"/>
     <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="ShakeGreyscale"/>
     <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Greyscale"/>
     <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="TransformationPower"/>
    </effect_group>

    <effect_group>
     <requirement name="CVarCompare" cvar="$Transformation" operation="GTE" value="52"/>
     <triggered_effect trigger="onSelfBuffRemove" action="AddBuff" buff="SafeMoon"/>
    </effect_group>


    <effect_group>
            <requirement name="CVarCompare" cvar="$Transformation" operation="Equals" value="14"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="SlowTransform"/>
    </effect_group>

    <effect_group>
            <requirement name="CVarCompare" cvar="$Transformation" operation="Equals" value="31"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="SlowTransform"/>
    </effect_group>

    <effect_group>
            <requirement name="CVarCompare" cvar="$Transformation" operation="Equals" value="45"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="PermaTransformation"/>
		    <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="Greyscale"/>
		    <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="TransformationPower"/>
    </effect_group>

    <effect_group>
                <requirement name="CVarCompare" cvar="$Transformation" operation="Equals" value="45"/>
                <triggered_effect trigger="onSelfBuffUpdate" action="PlaySound" sound="HeartBeat"/>
			   </effect_group>

    <effect_group>
			    <requirement name="CVarCompare" cvar="$Transformation" operation="Equals" value="45"/>
			    <triggered_effect trigger="onSelfBuffUpdate" action="PlaySound" sound="WerewolfTransformation"/>
    </effect_group>

    <effect_group>
            <requirement name="CVarCompare" cvar="$Transformation" operation="Equals" value="52"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="PlaySound" sound="WhileTransform"/>
		    <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="ShakeGreyscale"/>
    </effect_group>

     </buff>

<buff name="PermaTransformation" hidden="true" remove_on_death="true">
    <duration value="5"/>

	    <effect_group>
        <passive_effect name="HealthChangeOT" operation="base_add" duration="0,15,30,50,999" value="-1,-2,-3,-4,-10">
              <requirement name="EntityTagCompare" tags="player"/>
        </passive_effect>
         </effect_group>

	   <effect_group>
	        <passive_effect name="JumpStrength" operation="base_set" value="0"/>
	        <passive_effect name="Mobility" operation="base_set" value="0"/>
			<passive_effect name="BuffBlink" operation="base_set" value="2" duration="0,4" tags="buffInjuryConcussion"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.3" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="buff_stunned" play_in_head="true"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="FadeOutSound" sound="buff_stunned" play_in_head="true"/>
		   </effect_group>

       <effect_group>
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones1"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones2"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones3"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones4"/>
		    <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="0.60" shake_amplitude="80" shake_time="0"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="0"/>
       </effect_group>
    </buff>

<buff name="SlowTransform" hidden="true" remove_on_death="true">
    <duration value="4"/>

    <effect_group>
        <passive_effect name="HealthChangeOT" operation="base_add" duration="0,15,30,50,999" value="-1,-2,-3,-4,-10">
              <requirement name="EntityTagCompare" tags="player"/>
        </passive_effect>
         </effect_group>

	   <effect_group>
	        <passive_effect name="JumpStrength" operation="base_set" value="0"/>
	        <passive_effect name="Mobility" operation="base_set" value="0"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.3" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" effect_name="Dark" intensity="1" fade="1"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" effect_name="Dark" intensity="0" fade="1"/>
			    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="buff_stunned" play_in_head="true"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="FadeOutSound" sound="buff_stunned" play_in_head="true"/>
		    <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="0.60" shake_amplitude="80" shake_time="0"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="0"/>
	   </effect_group>

       <effect_group>
		    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="MoonDamage"/>
            <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="MoonDamage"/>
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones1"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones2"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones3"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones4"/>
            <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones1"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones2"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones3"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones4"/>
       </effect_group>
    </buff>

<buff name="SafeMoon" hidden="true" remove_on_death="true">
    <duration value="4"/>

    <effect_group>
            <passive_effect name="JumpStrength" operation="base_set" value="0"/>
	        <passive_effect name="Mobility" operation="base_set" value="0"/>
			<passive_effect name="BuffBlink" operation="base_set" value="2" duration="0,4" tags="buffInjuryConcussion"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.3" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="buff_stunned" play_in_head="true"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="FadeOutSound" sound="buff_stunned" play_in_head="true"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="0.60" shake_amplitude="80" shake_time="0"/>
		        <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="0"/>
		   </effect_group>

         <effect_group>
		    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="MoonDamage"/>
            <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="MoonDamage"/>
            <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones1"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones2"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones3"/>
		    <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="Bones4"/>
            <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones1"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones2"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones3"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="Bones4"/>
       </effect_group>
    </buff>



<buff name="Bones1" hidden="false" icon="ui_game_symbol_brokenbone" icon_color="255,0,0" icon_blink="true">
    <duration value="4"/>
       <effect_group>
            <requirement name="!HasBuff" buff="buffMoonWeakness"/>
            <requirement name="!HasBuff" buff="SafeMoon"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="Bones1"/>
       </effect_group>
     </buff>

	<buff name="Bones2" hidden="false" icon="ui_game_symbol_broken_arm" icon_color="255,128,0" icon_blink="true">
		<damage_type value="break"/>
		<stack_type value="replace"/>
		<duration value="4"/>
        <effect_group>
            <requirement name="!HasBuff" buff="buffMoonWeakness"/>
		     <requirement name="!HasBuff" buff="SafeMoon"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="Bones2"/>
       </effect_group>
     </buff>

	<buff name="Bones3" hidden="false" icon="ui_game_symbol_broken_arm" icon_color="255,0,0" icon_blink="true">
		<damage_type value="break"/>
		<stack_type value="replace"/>
		<duration value="4"/>
    <effect_group>
            <requirement name="!HasBuff" buff="buffMoonWeakness"/>
		    <requirement name="!HasBuff" buff="SafeMoon"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="Bones3"/>
       </effect_group>
     </buff>

	<buff name="Bones4" hidden="false" icon="ui_game_symbol_brokenbone" icon_color="255,128,0" icon_blink="true">
		<damage_type value="break"/>
		<stack_type value="replace"/>
		<duration value="4"/>
     <effect_group>
            <requirement name="!HasBuff" buff="buffMoonWeakness"/>
		     <requirement name="!HasBuff" buff="SafeMoon"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="Bones4"/>
       </effect_group>
     </buff>

    <!-- =========================================================
         AWAKENING: Werewolf Power (ACTIVE)
         - Displays % using Awakening CVar (same style as Vampire)
         - Stats while awakened
         - Sound loop while active
         ========================================================= -->
    <buff name="buffAwakeningWolf"
          hidden="false"
          icon="ui_game_symbol_Awakening"
		  tooltip_key="buffAwakeningWolfTooltip"
          name_key="buffAwakeningWolf"
          description_key="buffAwakeningWolfDesc"
          icon_blink="true"
          icon_color="0,220,0">


      <stack_type value="ignore"/>
      <duration value="0"/>
      <update_rate value="1"/>

        <effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="WerewolfAwakeningStart"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="WerewolfAwakeningStart"/>
		     </effect_group>


		<effect_group name="Track animals/zombies">

			<passive_effect name="Tracking" operation="base_set" value="1" tags="perkAT01,perkAT02,perkAT03,perkAT04,perkAT05"/>
			
			<passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningNormalTracker">
				    <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="1"/>
			</passive_effect>
			<passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningNormalTracker,AwakeningFeralTracker">
				    <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="2"/>
			</passive_effect>
			<passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker">
				    <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="3"/>
			</passive_effect>
			<passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningChargedTracker,AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker">
				    <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="4"/>
			</passive_effect>
			<passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningInfernalTracker,AwakeningChargedTracker,AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker">
				    <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="5"/>
			</passive_effect>
		   </effect_group>

		     <effect_group>
		          <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0"/>
			      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="25"/>
			  <passive_effect name="RunSpeed" operation="perc_add" value=".15"/>
			  <passive_effect name="JumpStrength" operation="perc_add" value=".3"/>
			  <passive_effect name="Mobility" operation="perc_add" value=".15"/>
			  <passive_effect name="CarryCapacity" operation="base_add" value="10"/>
			  <passive_effect name="StaminaChangeOT" operation="perc_add" value=".3" tags="running"/>
			  <passive_effect name="StaminaLoss" operation="perc_add" value="-.35" tags="jumping"/>
			  <passive_effect name="WalkSpeed" operation="base_add" value=".15"/>
			  <passive_effect name="HealthChangeOT" operation="base_add" value=".1"/>
			  <passive_effect name="EntityDamage" operation="perc_add" value=".8" tags="melee"/>
			  <passive_effect name="BlockDamage" operation="perc_add" value=".8" tags="melee"/>
			  <passive_effect name="AttacksPerMinute" operation="perc_add" value=".1"/>
			  <passive_effect name="StaminaLoss" operation="perc_add" value="-.2" tags="primary,secondary"/>
		     </effect_group>

       <effect_group>
        <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="25"/>
        <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="50"/>

    <passive_effect name="RunSpeed" operation="perc_add" value=".20"/>
    <passive_effect name="Mobility" operation="perc_add" value=".20"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="20"/>
	<passive_effect name="JumpStrength" operation="perc_add" value=".4"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".4" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.45" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value=".25"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value=".2"/>
    <passive_effect name="EntityDamage" operation="perc_add" value="1.3" tags="melee"/>
    <passive_effect name="BlockDamage" operation="perc_add" value="1.3" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value=".2"/>
	<passive_effect name="StaminaLoss" operation="perc_add" value="-.3" tags="primary,secondary"/>
      </effect_group>

	   <effect_group>
        <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="50"/>
        <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="75"/>

    <passive_effect name="RunSpeed" operation="perc_add" value=".25"/>
    <passive_effect name="Mobility" operation="perc_add" value=".25"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="30"/>
	<passive_effect name="JumpStrength" operation="perc_add" value=".5"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".5" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.55" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value=".35"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value=".3"/>
    <passive_effect name="EntityDamage" operation="perc_add" value="2" tags="melee"/>
    <passive_effect name="BlockDamage" operation="perc_add" value="2" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value=".3"/>
	<passive_effect name="StaminaLoss" operation="perc_add" value="-.4" tags="primary,secondary"/>
      </effect_group>

		   <effect_group>
        <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="75"/>

    <passive_effect name="RunSpeed" operation="perc_add" value=".30"/>
    <passive_effect name="Mobility" operation="perc_add" value=".30"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="40"/>
	<passive_effect name="JumpStrength" operation="perc_add" value=".6"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".6" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.65" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value=".45"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value=".4"/>
    <passive_effect name="EntityDamage" operation="perc_add" value="2.5" tags="melee"/>
    <passive_effect name="BlockDamage" operation="perc_add" value="2.5" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value=".4"/>
	<passive_effect name="StaminaLoss" operation="base_set" value="0" tags="primary,secondary"/>
      </effect_group>

          <effect_group>
            <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.8" fade="2" effect_name="Greyscale"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="2" effect_name="Greyscale"/>
			<triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.1" fade="1" effect_name="Trippy"/>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Trippy"/>
       </effect_group>

		      <effect_group>
			      <triggered_effect trigger="onSelfBuffStart"  action="AddBuff" buff="buffDontBreakMyLeg"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffDontBreakMyLeg"/>
		     </effect_group>

		     <effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="WerewolfAwakeningSound"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="WerewolfAwakeningSound"/>
		     </effect_group>

	      </buff>


	  <!-- =========================================================
     PATH CORE: Vampire
     ========================================================= -->
	  <buff name="Vampire" hidden="true" remove_on_death="false">
		  <stack_type value="ignore"/>
		  <duration value="0"/>
		  <update_rate value="1"/>
		  
		     <effect_group>
			      <requirement name="EntityTagCompare" tags="player"/>
			      <triggered_effect trigger="onSelfRespawn" action="AddBuff" buff="buffShield"/>
			      <triggered_effect trigger="onSelfEnteredGame" action="AddBuff" buff="buffShield"/>
		     </effect_group>

		  <!-- On becoming Vampire, strip all Werewolf systems -->
		     <effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="Werewolf"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffPermaWerewolf"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAwakeningWolf"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffMoonInfo"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffMoonWeakness"/>
			     <effect_group>
				  
				     </effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="HumanPredator"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthController"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealth_Active"/>
		     </effect_group>

		  <!-- Guarantee Sun info (shown when NOT burning) -->
		     <effect_group>
			      <requirement name="!HasBuff" buff="buffSunInfo"/>
			      <requirement name="!HasBuff" buff="buffSunWeakness"/>
			      <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSunInfo"/>
		     </effect_group>

		  <!-- Guarantee perma controller -->
		     <effect_group>
			      <requirement name="!HasBuff" buff="buffPermaVampire"/>
			      <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffPermaVampire"/>
		     </effect_group>

		  <!-- Guarantee awakening controller -->
		     <effect_group>
			      <requirement name="!HasBuff" buff="Awakening"/>
			      <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="Awakening"/>
		     </effect_group>

	      </buff>


	  <!-- =========================================================
     PERMA CONTROLLER: Vampire Sun Exposure
     - Uses buffPermaVampireCvar exactly like Werewolf uses buffPermaWerewolfCvar
     - While SAFE: buffPermaVampireCvar counts up toward 60
     - While burning: buffSunWeakness counts it down to 0 => death
     ========================================================= -->
	  <buff name="buffPermaVampire" hidden="true" remove_on_death="false">
		  <stack_type value="ignore"/>
		  <duration value="0"/>
		  <update_rate value="1"/>
		  <display_value value="buffPermaVampireCvar"/>
		  <display_value_format value="{0}s"/>

		  <!-- Safe recharge to 60 (exact Werewolf pattern) -->
		     <effect_group>
			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="buffPermaVampireCvar" operation="add" value="1"/>
			      <requirement name="!HasBuff" buff="buffSunWeakness"/>
			      <requirement name="CVarCompare" cvar="buffPermaVampireCvar" operation="LT" value="60"/>
		     </effect_group>

		     <effect_group>
			  <!-- Apply Sun weakness (DAY + unsheltered + not underwater + not wet) -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSunWeakness">
				      <requirement name="!HasBuff" buff="buffShield"/>
				      <requirement name="HasBuff" buff="buffDivineProtection" invert="true"/>
				      <requirement name="IsDay"/>
				      <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0.1"/>
				      <requirement name="CVarCompare" cvar="_underwater" operation="Equals" value="0"/>
				      <requirement name="CVarCompare" cvar="$WetTempModifierDisplay" operation="LT" value="90"/>
				      <requirement name="HasBuff" invert="true" buff="buffSunWeakness"/>
				 </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffSunWeakness">
				      <requirement name="HasBuff" buff="buffShield"/>
				      </triggered_effect>

				      <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffSunWeakness">
				      <requirement name="CVarCompare" cvar="$WetTempModifierDisplay" operation="GTE" value="90"/>
				      </triggered_effect>
			  
				  <!-- Remove Sun weakness when safe -->
			      <triggered_effect trigger="onSelfBuffUpdate" action="RemoveBuff" buff="buffSunWeakness">
				      <requirement_group op="or">
					      <requirement name="!IsDay"/>
					      <requirement name="CVarCompare" cvar="_sheltered" operation="GT" value="0.1"/>
					      <requirement name="CVarCompare" cvar="_underwater" operation="Equals" value="1"/>
				  </requirement_group>
				      <requirement name="HasBuff" buff="buffSunWeakness"/>
			      </triggered_effect>

		     </effect_group>

	      </buff>


	  <buff name="buffSunInfo"
			hidden="false"
			remove_on_death="false"
			icon="ui_game_symbol_sunburn"
			icon_blink="false"
			name_key="buffSunInfo"
			description_key="buffSunInfoDesc">
		  <stack_type value="replace"/>
		  <duration value="0"/>

           <triggered_effect trigger="onSelfBuffUpdate" action="StopSound" sound="buff_burn_lp"/>

	      </buff>


	  <!-- =========================================================
     DAMAGE BUFF: Sun Weakness (Werewolf-mechanism clone)
     - Decrements buffPermaVampireCvar each second
     - Death at <= 0 (player)
     - Burning FX preserved (particles + Hot screen + burn sounds)
     ========================================================= -->
	  <buff name="buffSunWeakness"
			name_key="buffSunWeakness"
			icon="ui_game_symbol_sunburn"
			tooltip_key="buffSunWeaknessTooltip"
			description_key="buffSunWeaknessDesc"
			icon_blink="true"
			icon_color="220,0,0">

		  <stack_type value="replace"/>
		  <duration value="0"/>
		  <update_rate value="1"/>
		  <damage_type value="break"/>

		     <effect_group>
			      <requirement name="!HasBuff" buff="buffShield"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSunInfo"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="AddBuff" buff="buffSunInfo"/>
			      <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="buff_burn_lp"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="buff_burn_lp"/>
		     </effect_group>

           <effect_group>
        <passive_effect name="HealthChangeOT" operation="base_add" duration="0,15,30,50,999" value="-1,-2,-3,-4,-10">
              <requirement name="EntityTagCompare" tags="player"/>
        </passive_effect>
         </effect_group>

		  <effect_group name="run particles, cleanup">
			      <requirement name="!HasBuff" buff="buffShield"/>
			      <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="1" fade="3" effect_name="Hot"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="3" effect_name="Hot"/>

			      <triggered_effect trigger="onSelfBuffRemove" action="RemoveParticleEffectFromEntity" particle="p_onFire"/>
			      <triggered_effect trigger="onSelfDied" action="RemoveParticleEffectFromEntity" particle="p_onFire"/>

			      <triggered_effect trigger="onSelfBuffRemove" action="PlaySound" sound="buff_burn_extinguish"/>
		     </effect_group>

		     <effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="p_twitch_zombie_fire_left" parent_transform="LeftHand"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="RemoveParticleEffectFromEntity" particle="p_twitch_zombie_fire_left" parent_transform="LeftHand"/>

			      <triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="p_twitch_zombie_fire_right" parent_transform="RightHand"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="RemoveParticleEffectFromEntity" particle="p_twitch_zombie_fire_right" parent_transform="RightHand"/>

			      <triggered_effect trigger="onSelfDied" action="RemoveParticleEffectFromEntity" particle="p_twitch_zombie_fire_left"/>
			      <triggered_effect trigger="onSelfDied" action="RemoveParticleEffectFromEntity" particle="p_twitch_zombie_fire_right"/>
		     </effect_group>
		  
		     <effect_group>
			      <requirement name="!HasBuff" buff="buffShield"/>
			      <requirement name="!IsSDCS"/>
			      <triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="p_onFire"
								local_offset="0,0,0" parent_transform="LOD0" shape_mesh="true"/>
			      <triggered_effect trigger="onSelfEnteredGame" action="AttachParticleEffectToEntity" particle="p_onFire"
								local_offset="0,0,0" parent_transform="LOD0" shape_mesh="true"/>
		     </effect_group>

		     <effect_group>
			      <requirement name="!HasBuff" buff="buffShield"/>
			      <requirement name="IsSDCS"/>
			      <triggered_effect trigger="onSelfBuffStart" action="AttachParticleEffectToEntity" particle="p_onFire"
								parent_transform=".body" shape_mesh="true"/>
			      <triggered_effect trigger="onSelfEnteredGame" action="AttachParticleEffectToEntity" particle="p_onFire"
								parent_transform=".body" shape_mesh="true"/>
		     </effect_group>

	      </buff>


	  <!-- =========================================================
     AWAKENING: Vampire Power (ACTIVE)
     - Exact Werewolf awakening stats/numbers
     - Vampire perk ladder: perkVAwakeningBoost
     - Display: ONE number only
     ========================================================= -->
	  <buff name="buffAwakeningVampire"
			hidden="false"
			icon="ui_game_symbol_Awakening"
			tooltip_key="buffAwakeningVampireTooltip"
			name_key="buffAwakeningVampire"
			description_key="buffAwakeningVampireDesc"
			icon_blink="true"
		    icon_color="0,220,0">

		  <stack_type value="ignore"/>
		  <duration value="0"/>
		  <update_rate value="1"/>

		  <effect_group name="Track animals/zombies">
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="perkAT01,perkAT02,perkAT03,perkAT04,perkAT05"/>

			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningNormalTracker">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="1"/>
			  </passive_effect>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningNormalTracker,AwakeningFeralTracker">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="2"/>
			  </passive_effect>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="3"/>
			  </passive_effect>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningChargedTracker,AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="4"/>
			  </passive_effect>
			  <passive_effect name="Tracking" operation="base_set" value="1" tags="AwakeningInfernalTracker,AwakeningChargedTracker,AwakeningRadiatedTracker,AwakeningNormalTracker,AwakeningFeralTracker">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="5"/>
			  </passive_effect>
		     </effect_group>

           <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkVAwakeningBoost" operation="Equals" value="1"/>
			    <requirement name="EntityTagCompare" target="other" tags="zombie,animal,bandit"/>
			    <requirement name="IsAlive" target="other"/>
			    <requirement name="!IsAttachedToEntity"/>
				    <triggered_effect trigger="onSelfKilledOther" action="ModifyStats" stat="Health" operation="add" value="2"/>
		   </effect_group>

		   <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkVAwakeningBoost" operation="Equals" value="2"/>
			    <requirement name="EntityTagCompare" target="other" tags="zombie,animal,bandit"/>
			    <requirement name="IsAlive" target="other"/>
			    <requirement name="!IsAttachedToEntity"/>
				    <triggered_effect trigger="onSelfKilledOther" action="ModifyStats" stat="Health" operation="add" value="3"/>
		   </effect_group>

			   <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkVAwakeningBoost" operation="Equals" value="3"/>
			    <requirement name="EntityTagCompare" target="other" tags="zombie,animal,bandit"/>
				    <triggered_effect trigger="onSelfKilledOther" action="ModifyStats" stat="Health" operation="add" value="4"/>
		   </effect_group>

         <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkVAwakeningBoost" operation="Equals" value="4"/>
			    <requirement name="EntityTagCompare" target="other" tags="zombie,animal,bandit"/>
			    <requirement name="IsAlive" target="other"/>
			    <requirement name="!IsAttachedToEntity"/>
				    <triggered_effect trigger="onSelfKilledOther" action="ModifyStats" stat="Health" operation="add" value="5"/>
		   </effect_group>

               <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkVAwakeningBoost" operation="Equals" value="5"/>
			    <requirement name="EntityTagCompare" target="other" tags="zombie,animal,bandit"/>
			    <requirement name="IsAlive" target="other"/>
			    <requirement name="!IsAttachedToEntity"/>
				    <triggered_effect trigger="onSelfKilledOther" action="ModifyStats" stat="Health" operation="add" value="6"/>
		   </effect_group>

		     <effect_group>
		          <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0"/>
			      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="25"/>
			  <passive_effect name="RunSpeed" operation="perc_add" value=".2"/>
			  <passive_effect name="Mobility" operation="perc_add" value=".3"/>
			  <passive_effect name="JumpStrength" operation="perc_add" value=".5"/>
			  <passive_effect name="CarryCapacity" operation="base_add" value="10"/>
			  <passive_effect name="StaminaChangeOT" operation="perc_add" value=".1" tags="running"/>
			  <passive_effect name="StaminaLoss" operation="perc_add" value="-.35" tags="jumping"/>
			  <passive_effect name="WalkSpeed" operation="base_add" value=".3"/>
			  <passive_effect name="HealthChangeOT" operation="base_add" value=".1"/>
			  <passive_effect name="EntityDamage" operation="perc_add" value=".2" tags="melee"/>
			  <passive_effect name="BlockDamage" operation="perc_add" value=".3" tags="melee"/>
			  <passive_effect name="AttacksPerMinute" operation="perc_add" value=".4"/>
			  <passive_effect name="StaminaLoss" operation="perc_add" value="-.2" tags="primary,secondary"/>
		     </effect_group>

   <effect_group>
        <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="25"/>
        <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="50"/>

    <passive_effect name="RunSpeed" operation="perc_add" value=".3"/>
    <passive_effect name="Mobility" operation="perc_add" value=".4"/>
    <passive_effect name="JumpStrength" operation="perc_add" value=".6"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="20"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".4" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.45" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value=".4"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value=".2"/>
    <passive_effect name="EntityDamage" operation="perc_add" value=".3" tags="melee"/>
    <passive_effect name="BlockDamage" operation="perc_add" value=".4" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value=".7"/>
	<passive_effect name="StaminaLoss" operation="perc_add" value="-.3" tags="primary,secondary"/>
   </effect_group>

	   <effect_group>
        <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="50"/>
        <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="75"/>

    <passive_effect name="RunSpeed" operation="perc_add" value=".4"/>
    <passive_effect name="Mobility" operation="perc_add" value=".5"/>
    <passive_effect name="JumpStrength" operation="perc_add" value=".7"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="30"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".5" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.55" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value=".5"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value=".3"/>
    <passive_effect name="EntityDamage" operation="perc_add" value=".4" tags="melee"/>
    <passive_effect name="BlockDamage" operation="perc_add" value=".8" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value="1"/>
	<passive_effect name="StaminaLoss" operation="perc_add" value="-.4" tags="primary,secondary"/>
   </effect_group>

		   <effect_group>
        <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="75"/>

    <passive_effect name="RunSpeed" operation="perc_add" value=".5"/>
    <passive_effect name="Mobility" operation="perc_add" value=".6"/>
    <passive_effect name="JumpStrength" operation="perc_add" value=".8"/>
    <passive_effect name="CarryCapacity" operation="base_add" value="40"/>
    <passive_effect name="StaminaChangeOT" operation="perc_add" value=".6" tags="running"/>
    <passive_effect name="StaminaLoss" operation="perc_add" value="-.65" tags="jumping"/>
    <passive_effect name="WalkSpeed" operation="base_add" value=".6"/>
    <passive_effect name="HealthChangeOT" operation="base_add" value=".4"/>
    <passive_effect name="EntityDamage" operation="perc_add" value=".4" tags="melee"/>
    <passive_effect name="BlockDamage" operation="perc_add" value="1" tags="melee"/>
    <passive_effect name="AttacksPerMinute" operation="perc_add" value="1.5"/>
	<passive_effect name="StaminaLoss" operation="base_set" value="0" tags="primary,secondary"/>
   </effect_group>


     <effect_group>
		<triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.2" fade="1" effect_name="Trippy"/>
			<triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Trippy"/>
		</effect_group>


		     <effect_group>
			      <triggered_effect trigger="onSelfBuffStart"  action="AddBuff" buff="buffDontBreakMyLeg"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffDontBreakMyLeg"/>
		     </effect_group>

		     <effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="VampireAwakeningSound"/>
			      <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="VampireAwakeningSound"/>
		     </effect_group>

	      </buff>


<buff name="BuffConsumeFood" hidden="true" remove_on_death="false">
    <update_rate value="1"/>
    <duration value="0"/>

   <effect_group>
        <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="100"/>
    <passive_effect name="DisableItem" operation="base_set" value="1" tags="food"/>
   </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="8"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="9"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="5"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="19"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="20"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="5"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="30"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="31"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="5"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="40"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="41"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="4"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="50"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="51"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="4"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="60"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="61"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="4"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="70"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="71"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="3"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="80"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="81"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="3"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="90"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="91"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="3"/>
       </effect_group>

       <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="99"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="100"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="3"/>
       </effect_group>

    <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="109"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="110"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="2"/>
       </effect_group>

    <effect_group>
            <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="94"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="GTE" value="119"/>
            <requirement name="CVarCompare" cvar="$foodAmountAdd" operation="LT" value="120"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="2"/>
       </effect_group>


    </buff>
	  <buff name="Awakening" hidden="true" remove_on_death="false">
		  <stack_type value="replace"/>
		  <duration value="0"/>
		  <update_rate value="1"/>

   <effect_group>
			      <requirement name="!HasBuff" buff="BuffConsumeFood"/>
			      <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="BuffConsumeFood"/>
		     </effect_group>

   <effect_group>
    <requirement name="!IsDay"/>
    <requirement name="HasBuff" buff="Vampire"/>
    <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="100"/>
</effect_group>

<effect_group>
    <requirement name="!IsDay"/>
    <requirement name="HasBuff" buff="Werewolf"/>
    <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="100"/>
</effect_group>

<effect_group>
    <requirement name="IsDay"/>
    <requirement name="HasBuff" buff="Vampire"/>
    <requirement name="CVarCompare" cvar="Awakening" operation="GT" value="100"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-100"/>
</effect_group>

<effect_group>
    <requirement name="IsDay"/>
    <requirement name="HasBuff" buff="Werewolf"/>
    <requirement name="CVarCompare" cvar="Awakening" operation="GT" value="100"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-100"/>
</effect_group>

   <effect_group>
    <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="0.1"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="set" value="0.1"/>
    </effect_group>

   <effect_group>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$AwakeningDisplay" operation="set" value="@Awakening">
    <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
    </triggered_effect>

    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$AwakeningDisplay" operation="set" value="100">
    <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="100"/>
    </triggered_effect>


    <!-- 2. Create the decimal for the Bar Fill -->
        <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$AwakeningFill" operation="set" value="@Awakening"/>
        <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$AwakeningFill" operation="divide" value="100"/>

   </effect_group>

   <effect_group>
    <requirement name="HasBuff" buff="Vampire"/>
    <triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="Awakening" operation="add" value="0.1">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="0"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="Awakening" operation="add" value=".4">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="1"/>
				  			      </triggered_effect>

							        <triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="Awakening" operation="add" value=".7">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="2"/>
				  			      </triggered_effect>

							        <triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="Awakening" operation="add" value="1.2">
                      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="3"/>
				  			      </triggered_effect>

							        <triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="Awakening" operation="add" value="1.6">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="4"/>
				  			      </triggered_effect>

							        <triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="Awakening" operation="add" value="2">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="5"/>
				  			      </triggered_effect>

   </effect_group>

    <effect_group>
     <requirement name="IsDay"/>
     <requirement name="HasBuff" buff="Vampire"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.08">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="0"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.07">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="1"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.06">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="2"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.05">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="3"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.04">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="4"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.03">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="5"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-.1">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="0"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0"/>
				      <requirement name="HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.09">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="1"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0"/>
				      <requirement name="HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.08">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="2"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.07">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="3"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.06">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="4"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.05">
				      <requirement name="ProgressionLevel" progression_name="perkVAwakeningExtend" operation="Equals" value="5"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningVampire"/>
			      </triggered_effect>

			      </effect_group>




   <effect_group>
     <requirement name="HasBuff" buff="Werewolf"/>

    <triggered_effect trigger="onSelfAttackedOther" action="Ragdoll" target="other" duration=".2" force="200">
     <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="0"/>
	 <requirement name="HoldingItemHasTags" tags="melee"/>
		    <requirement name="!EntityTagCompare" target="other" tags="trader"/>
		    <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="10"/>
	        <requirement name="HasBuff" buff="buffAwakeningWolf"/>
    </triggered_effect>

    <triggered_effect trigger="onSelfAttackedOther" action="Ragdoll" target="other" duration=".5" force="220">
     <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="1"/>
	 <requirement name="HoldingItemHasTags" tags="melee"/>
		    <requirement name="!EntityTagCompare" target="other" tags="trader"/>
		    <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="12"/>
	        <requirement name="HasBuff" buff="buffAwakeningWolf"/>
    </triggered_effect>

    <triggered_effect trigger="onSelfAttackedOther" action="Ragdoll" target="other" duration=".8" force="230">
     <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="2"/>
	 <requirement name="HoldingItemHasTags" tags="melee"/>
		    <requirement name="!EntityTagCompare" target="other" tags="trader"/>
		    <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="15"/>
	        <requirement name="HasBuff" buff="buffAwakeningWolf"/>
    </triggered_effect>

    <triggered_effect trigger="onSelfAttackedOther" action="Ragdoll" target="other" duration="1" force="250">
     <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="3"/>
	 <requirement name="HoldingItemHasTags" tags="melee"/>
		    <requirement name="!EntityTagCompare" target="other" tags="trader"/>
		    <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="18"/>
	        <requirement name="HasBuff" buff="buffAwakeningWolf"/>
    </triggered_effect>

    <triggered_effect trigger="onSelfAttackedOther" action="Ragdoll" target="other" duration="1.3" force="270">
     <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="4"/>
	 <requirement name="HoldingItemHasTags" tags="melee"/>
		    <requirement name="!EntityTagCompare" target="other" tags="trader"/>
		    <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="20"/>
	        <requirement name="HasBuff" buff="buffAwakeningWolf"/>
    </triggered_effect>

    <triggered_effect trigger="onSelfAttackedOther" action="Ragdoll" target="other" duration="1.5" force="300">
     <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="5"/>
	 <requirement name="HoldingItemHasTags" tags="melee"/>
		    <requirement name="!EntityTagCompare" target="other" tags="trader"/>
		    <requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="LTE" value="25"/>
	        <requirement name="HasBuff" buff="buffAwakeningWolf"/>
    </triggered_effect>


   </effect_group>



   <effect_group>
     <requirement name="IsDay"/>
     <requirement name="HasBuff" buff="Werewolf"/>
    <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.08">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="0"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.07">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="1"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.06">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="2"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.05">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="3"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.04">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="4"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.03">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="5"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="!HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-.1">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="0"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0"/>
				      <requirement name="HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.09">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="1"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0"/>
				      <requirement name="HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.08">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="2"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.07">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="3"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.06">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="4"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="Awakening" operation="add" value="-0.05">
				      <requirement name="ProgressionLevel" progression_name="perkAwakeningExtend" operation="Equals" value="5"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="LT" value="100"/>
				      <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.1"/>
				      <requirement name="HasBuff" buff="buffAwakeningWolf"/>
			      </triggered_effect>

			      </effect_group>

            <effect_group>
    <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="100"/>
    <requirement name="!HasBuff" buff="buffSuperStealth_Active"/>
    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="1"/>
    <triggered_effect trigger="onSelfDamagedOther" action="ModifyCVar"
        cvar="Awakening" operation="add" value="0.066"/>
</effect_group>

<effect_group>
    <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="100"/>
    <requirement name="!HasBuff" buff="buffSuperStealth_Active"/>
    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="2"/>
    <triggered_effect trigger="onSelfDamagedOther" action="ModifyCVar"
        cvar="Awakening" operation="add" value="0.071"/>
</effect_group>

<effect_group>
    <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="100"/>
    <requirement name="!HasBuff" buff="buffSuperStealth_Active"/>
    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="3"/>
    <triggered_effect trigger="onSelfDamagedOther" action="ModifyCVar"
        cvar="Awakening" operation="add" value="0.076"/>
</effect_group>

<effect_group>
    <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="100"/>
    <requirement name="!HasBuff" buff="buffSuperStealth_Active"/>
    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="4"/>
    <triggered_effect trigger="onSelfDamagedOther" action="ModifyCVar"
        cvar="Awakening" operation="add" value="0.083"/>
</effect_group>

<effect_group>
    <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="100"/>
    <requirement name="!HasBuff" buff="buffSuperStealth_Active"/>
    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="5"/>
    <triggered_effect trigger="onSelfDamagedOther" action="ModifyCVar"
        cvar="Awakening" operation="add" value="0.1"/>
</effect_group>


	      </buff>


	  <!-- =========================================================
     CONTROLLER: Super Stealth Charge (hidden)
     - Recharge when NOT active
     - Drain while active
     - Clamp 0.1..100
     - Force ACTIVE OFF when <= 0.5
     - READY/BLOCKED icon logic (outside day only)
     ========================================================= -->
	  <buff name="buffSuperStealthController" hidden="true" remove_on_death="false">
		  <stack_type value="ignore"/>
		  <duration value="0"/>
		  <update_rate value="1"/>

    <effect_group>
	       <requirement name="IsDay"/>
           <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0"/>
           <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="ProtoStart"/>
	</effect_group>

		     <effect_group>
                <requirement name="CVarCompare" cvar="Awakening" operation="GTE" value="0.5"/>
				<requirement name="HasBuff" buff="buffSuperStealth_Active"/>
			      <triggered_effect trigger="onSelfDamagedOther" action="ModifyCVar"
				cvar="Awakening" operation="add" value="-.5"/>
			   </effect_group>

			  <effect_group>
				  <requirement name="IsNight"/>
				  <requirement name="!HasBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealthRed"/>
             </effect_group>

             <effect_group>
				  <requirement name="CVarCompare" cvar="_sheltered" operation="GT" value="0"/>
				  <requirement name="!HasBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealthRed"/>
             </effect_group>

             <effect_group>
              <requirement name="EntityHasMovementTag" tags="driving"/>
			  <requirement name="!HasBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealthRed"/>		  
             </effect_group>
			 
              <effect_group>
				  <requirement name="CVarCompare" cvar="Awakening" operation="LTE" value="0.5"/>
				  <requirement name="IsDay"/>
				  <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0"/>
                  <requirement name="EntityHasMovementTag" tags="driving" invert="true"/>   
				  <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSuperStealthYellow"/>
				  <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealthYellow"/>
              </effect_group>

              <effect_group>
				  <requirement name="CVarCompare" cvar="Awakening" operation="GT" value="0.5"/>
				  <requirement name="IsDay"/>
				  <requirement name="CVarCompare" cvar="_sheltered" operation="LTE" value="0"/>
				  <requirement name="EntityHasMovementTag" tags="driving" invert="true"/>
				  <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffSuperStealthGreen"/>
				  <triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealthGreen"/>
              </effect_group>

              <effect_group>
				  <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffSuperStealthGreen"/>
				  <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffSuperStealthYellow"/>
				  <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffSuperStealthRed"/>
				  <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffSuperStealth_Active"/>
				  <triggered_effect trigger="onSelfBuffRemove" action="PlaySound" sound="ProtoEnd"/>
				  <triggered_effect trigger="onSelfBuffRemove" action="Removebuff" buff="ProtoStart"/>
              </effect_group>

	      </buff>


<buff name="ProtoStart" hidden="true" remove_on_death="true">
    <duration value="2.5"/>
	<stack_type value="replace"/>

    <effect_group>
        <passive_effect name="HealthChangeOT" operation="base_add" duration="0,3" value="-1,-1">
              <requirement name="EntityTagCompare" tags="player"/>
			  <requirement name="StatComparePercCurrentToModMax" stat="health" operation="GTE" value=".01"/>
        </passive_effect>

         </effect_group>

	   <effect_group>
	        <passive_effect name="JumpStrength" operation="base_set" value="0"/>
	        <passive_effect name="Mobility" operation="base_set" value="0"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" intensity="0.3" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" intensity="0" fade="1" effect_name="Blur"/>
			    <triggered_effect trigger="onSelfBuffStart" action="ModifyScreenEffect" effect_name="Dark" intensity="1" fade="1"/>
			    <triggered_effect trigger="onSelfBuffRemove" action="ModifyScreenEffect" effect_name="Dark" intensity="0" fade="1"/>
		    <triggered_effect trigger="onSelfBuffStart" action="ShakeCamera" shake_speed="0.60" shake_amplitude="80" shake_time="0"/>
		    <triggered_effect trigger="onSelfBuffRemove" action="ShakeCamera" shake_speed="0" shake_amplitude="0" shake_time="0"/>
	   </effect_group>

       <effect_group>
		    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="ProtoStart"/>
            <triggered_effect trigger="onSelfBuffRemove" action="StopSound" sound="ProtoStart"/>
       </effect_group>
    </buff>


	  <buff name="buffSuperStealthGreen"
			hidden="false"
			icon="ui_game_symbol_Prototype"
			name_key="buffSuperStealthGreen"
			description_key="buffSuperStealthGreenDesc"
			icon_blink="false"
			icon_color="0,220,0">

		  <stack_type value="ignore"/>
		  <duration value="0"/>

            <effect_group>
			<triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealth_Active"/>
			<triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="ProtoSwap"/>
			<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthYellow"/>
			<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthRed"/>
              </effect_group>

	      </buff>
  <buff name="buffSuperStealthRed"
			hidden="false"
			icon="ui_game_symbol_Prototype"
			name_key="buffSuperStealthRed"
			description_key="buffSuperStealthRedDesc"
			icon_blink="false"
			icon_color="220,0,0">
		  <stack_type value="ignore"/>
		  <duration value="0"/>

		<effect_group>
		    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="ProtoSwap"/>
			<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealth_Active"/>
			<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthGreen"/>
			<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthYellow"/>
        </effect_group>


	      </buff>

		  <buff name="buffSuperStealthYellow"
			hidden="false"
			icon="ui_game_symbol_Prototype"
			name_key="buffSuperStealthYellow"
			description_key="buffSuperStealthYellowDesc"
			icon_blink="false"
			icon_color="255,255,0">
		  <stack_type value="ignore"/>
		  <duration value="0"/>

          <effect_group>
				<passive_effect name="DisableItem" operation="base_set" value="1" tags="ranged"/>
	            <passive_effect name="DisableItem" operation="base_set" value="1" tags="tool"/>
	            <passive_effect name="DisableItem" operation="base_set" value="1" tags="weapon"/>
				<passive_effect name="DisableItem" operation="base_set" value="1" tags="melee"/>
          </effect_group>

		  <effect_group>
		  	<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthGreen"/>
			<triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSuperStealthRed"/>
		    <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="ProtoSwap"/>
          </effect_group>

	     <effect_group>
			<triggered_effect trigger="onSelfBuffStart" action="AddBuff" buff="buffSuperStealth_Active"/>
			</effect_group>	

	      </buff>



	  <buff name="buffSuperStealth_Active"
			hidden="true">
		  <stack_type value="ignore"/>
		  <duration value="0"/>


         <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="1"/>
                <passive_effect name="EntityDamage" operation="perc_add" value=".1"/>
		   </effect_group>

            <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="2"/>
                <passive_effect name="EntityDamage" operation="perc_add" value=".2"/>
		   </effect_group>

		   <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="3"/>
                <passive_effect name="EntityDamage" operation="perc_add" value=".3"/>
		   </effect_group>

		   <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="4"/>
                <passive_effect name="EntityDamage" operation="perc_add" value=".4"/>
		   </effect_group>

		   <effect_group>
			    <requirement name="ProgressionLevel" progression_name="perkExtendedCharges" operation="Equals" value="5"/>
                <passive_effect name="EntityDamage" operation="perc_add" value=".5"/>
		   </effect_group>


		     <effect_group>
			  <passive_effect name="LightMultiplier" operation="base_set" value="-10"/>
			  <passive_effect name="NoiseMultiplier" operation="base_set" value="-10"/>
			  <passive_effect name="EnemySearchDuration" operation="perc_add" value="10"/>
			  <passive_effect name="RunSpeed" operation="perc_add" value=".25"/>
			  <passive_effect name="WalkSpeed" operation="perc_add" value=".25"/>
		     </effect_group>

	      </buff>

	  <buff name="HumanPredator" hidden="true" remove_on_death="false">
		  <stack_type value="ignore"/>
		  <duration value="0"/>
		  <update_rate value="1"/>

		  <!-- On becoming Human, strip all Vampire systems -->
		     <effect_group>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="Vampire"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffPermaVampire"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="Awakening"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAwakeningVampire"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSunInfo"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="Werewolf"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffPermaWerewolf"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="Awakening"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffAwakeningWolf"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffMoonInfo"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffDivineProtection"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffMoonWeakness"/>
			      <triggered_effect trigger="onSelfBuffStart" action="RemoveBuff" buff="buffSunWeakness"/>
		     </effect_group>

		      <effect_group>
            <requirement name="!HasBuff" buff="Awakening"/>
            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="Awakening"/>
         </effect_group>

         <effect_group>
            <requirement name="IsNight"/>
            <passive_effect name="NoTrader" operation="base_set" value="1"/>
         </effect_group>

	      </buff>

	  <!-- *** buffArmorVitamins -->
	<!-- Used as a requirement to test that the item is installed -->
	<buff name="buffArmorVitamins" hidden="true">
		<stack_type value="ignore"/>
		<duration value="0"/>
	    </buff>

<buff name="modMeleeStunBatonRepulsor1" hidden="true">
		<stack_type value="ignore"/>
		<duration value="0"/>
	    </buff>

<buff name="DrugHp" hidden="true">
		<stack_type value="ignore"/>
		<duration value="1"/>
	
	     <effect_group>
    <triggered_effect trigger="onSelfBuffStart" action="ModifyStats" stat="Health" operation="add" value="25"/>
     </effect_group>

    </buff>


<buff name="VampireJump" hidden="true">
		<stack_type value="ignore"/>
		<duration value="0"/>
		<remove_on_death value="false"/>


		   <effect_group>
		    <requirement name="HasBuff" buff="Vampire"/>
		    <requirement name="HoldingItemHasTags" tags="VampireClaws"/>
		    <triggered_effect trigger="onSelfJump" action="AddBuff" buff="VampireJump1">
    </triggered_effect>

		    <triggered_effect trigger="onSelfFallImpact" action="RemoveBuff" buff="VampireJump1"/>

		   </effect_group>
	    </buff>

	<buff name="VampireJump1" hidden="true">
		<stack_type value="replace"/>
		<duration value="3"/>

		   <effect_group>

			<passive_effect name="JumpStrength" operation="perc_add" value="4"/>
			<passive_effect name="WalkSpeed" operation="perc_add" value="1.5"/>
			<passive_effect name="RunSpeed" operation="perc_add" value=".3"/>
			    <triggered_effect trigger="onSelfFallImpact" action="RemoveBuff" buff="VampireJump1"/>
			    <triggered_effect trigger="onSelfJump" action="PlaySound" sound="VampireJump"/>
		   </effect_group>
	    </buff>

</append>

</configs>
