﻿<?xml version="1.0" encoding="utf-8" ?>

<Defs>
	<!-- Plant -->
	<ThingDef ParentName="CavePlantBase">
		<defName>PlantHumpShroom</defName>
		<label>humpshroom shroom</label>
		<description>Thick shroom with tough flesh, thick juice and smooth soft skin. Exhibits aphrodisiac effects when consumed, refills psyfocus.</description>
		<statBases>
			<MaxHitPoints>85</MaxHitPoints>
			<Beauty>2</Beauty>
			<Nutrition>0.15</Nutrition>
			<MeditationFocusStrength>1.0</MeditationFocusStrength>
		</statBases>
		<graphicData>
			<texPath>Things/Item/Humpshroom/Humpshroom</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<selectable>true</selectable>
		<pathCost>10</pathCost>
		<plant>
			<fertilityMin>0.01</fertilityMin>
			<fertilitySensitivity>0.25</fertilitySensitivity>
			<growDays>15.00</growDays>
			<harvestTag>Standard</harvestTag>
			<harvestedThingDef>HumpShroom</harvestedThingDef>
			<harvestYield>2</harvestYield>
			<sowMinSkill>4</sowMinSkill>
			<sowTags>
				<li>Hydroponic</li>
			</sowTags>
			<topWindExposure>0.1</topWindExposure>
			<visualSizeRange>0.4~0.7</visualSizeRange>
		</plant>
		<comps>
			<li Class="CompProperties_Glower">
				<glowRadius>1</glowRadius>
				<glowColor>(255,105,180,0)</glowColor>
			</li>
			<li Class="CompProperties_MeditationFocus">
				<statDef>MeditationFocusStrength</statDef>
				<focusTypes>
					<li>Sex</li>
				</focusTypes>
			</li>
		</comps>
	</ThingDef>
	
	<!--Consumable item-->
	<ThingDef ParentName="DrugBase">
		<defName>HumpShroom</defName>
		<label>Hump shroom</label>
		<description>A shroom with tough flesh, thick juice and smooth soft skin. Exhibits aphrodisiac effects when consumed, refills psyfocus.</description>
		<tradeability>Sellable</tradeability>
		<socialPropernessMatters>true</socialPropernessMatters>
		<tickerType>Rare</tickerType>
		<graphicData>
			<texPath>Things/Item/Humpshroom/HumpshroomCollected</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<thingCategories>
			<li>PlantFoodRaw</li>
		</thingCategories>
		<statBases>
			<MarketValue>10</MarketValue>
			<Mass>0.1</Mass>
			<DeteriorationRate>4</DeteriorationRate>
			<Nutrition>0.40</Nutrition>
		</statBases>
		<techLevel>Neolithic</techLevel>
		<ingestible>
			<baseIngestTicks>100</baseIngestTicks>
			<chairSearchRadius>4</chairSearchRadius>
			<preferability>RawTasty</preferability>
			<tasteThought></tasteThought>
			<foodType>VegetableOrFruit</foodType>
			<maxNumToIngestAtOnce>1</maxNumToIngestAtOnce>
			<optimalityOffsetHumanlikes>-6</optimalityOffsetHumanlikes>
			<optimalityOffsetFeedingAnimals>-11</optimalityOffsetFeedingAnimals>
			<ingestEffect>EatVegetarian</ingestEffect>
			<ingestSound>RawVegetable_Eat</ingestSound>
			<joy>0.5</joy>
			<joyKind>Social</joyKind>
			<nurseable>true</nurseable>
			<drugCategory>Social</drugCategory>
			<outcomeDoers>
				<li Class="IngestionOutcomeDoer_GiveHediff">
					<hediffDef>HumpShroomEffect</hediffDef>
					<severity>0.50</severity>
					<toleranceChemical>HumpShroom</toleranceChemical>
				</li>
				<li Class="IngestionOutcomeDoer_GiveHediff">
					<hediffDef>HumpShroomTolerance</hediffDef>
					<severity>0.032</severity>
					<divideByBodySize>true</divideByBodySize>
				</li>
				<li Class="IngestionOutcomeDoer_OffsetNeed">
					<need>Sex</need>
					<offset>-0.5</offset>
				</li>
				<li Class="IngestionOutcomeDoer_OffsetPsyfocus">
					<offset>1.0</offset>
				</li>
		</outcomeDoers>
		</ingestible>
		<comps>
			<li Class="CompProperties_Forbiddable" />
			<li Class="CompProperties_Ingredients" />
			<li Class="CompProperties_Rottable">
				<daysToRotStart>30</daysToRotStart>
				<rotDestroys>true</rotDestroys>
			</li>
			<li Class="CompProperties_Drug">
				<chemical>HumpShroom</chemical>
				<addictiveness>0.050</addictiveness>
				<minToleranceToAddict>0.15</minToleranceToAddict>
				<existingAddictionSeverityOffset>0.1</existingAddictionSeverityOffset>
				<needLevelOffset>1</needLevelOffset>
				<listOrder>30</listOrder>
			</li>
		</comps>
	</ThingDef>
	
	<HediffDef>
		<defName>HumpShroomEffect</defName>
		<hediffClass>HediffWithComps</hediffClass>
		<label>Induced libido</label>
		<description>Hump shroom aphrodisiac effects.</description>
		<defaultLabelColor>(1,0,0.5)</defaultLabelColor>
		<scenarioCanAdd>true</scenarioCanAdd>
		<maxSeverity>1.0</maxSeverity>
		<comps>
			<li Class="HediffCompProperties_SeverityPerDay">
				<severityPerDay>-0.9</severityPerDay>
			</li>
		</comps>
		<stages>
			<li>
				<restFallFactor>1.33</restFallFactor>
				<statOffsets>
					<SexFrequency>2</SexFrequency>
					<SexSatisfaction>0.5</SexSatisfaction>
				</statOffsets>
			</li>
		</stages>
	</HediffDef>
	
	<ThoughtDef>
		<defName>HumpShroomEffect</defName>
		<workerClass>ThoughtWorker_Hediff</workerClass>
		<hediff>HumpShroomEffect</hediff>
		<validWhileDespawned>true</validWhileDespawned>
		<stages>
			<li>
				<label>Humpshroom aftertaste</label>
				<description>Tastes funny.</description>
				<baseMoodEffect>1</baseMoodEffect>
			</li>
		</stages>
	</ThoughtDef>
	
	<!-- Ambrosia addiction -->
	<ChemicalDef>
		<defName>HumpShroom</defName>
		<label>humpshroom</label>
		<addictionHediff>HumpShroomAddiction</addictionHediff>
		<toleranceHediff>HumpShroomTolerance</toleranceHediff>
		<onGeneratedAddictedToleranceChance>0.8</onGeneratedAddictedToleranceChance>
	</ChemicalDef>
	
	<NeedDef ParentName="DrugAddictionNeedBase">
		<defName>Chemical_HumpShroom</defName>
		<needClass>Need_Chemical</needClass>
		<label>humpshroom</label>
		<description>Person is now hooked on shrooms. Without them, their bedroom performance may fall.</description>
		<listPriority>10</listPriority>
	</NeedDef>
	
	<HediffDef ParentName="DrugToleranceBase">
		<defName>HumpShroomTolerance</defName>
		<label>humpshroom tolerance</label>
		<description>Hump shroom effects tolerance.</description>
		<isBad>false</isBad>
		<comps>
			<li Class="HediffCompProperties_SeverityPerDay">
				<severityPerDay>-0.020</severityPerDay>
			</li>
			<li Class="HediffCompProperties_DrugEffectFactor">
				<chemical>HumpShroom</chemical>
			</li>
		</comps>
	</HediffDef>
	
	<HediffDef ParentName="AddictionBase">
		<defName>HumpShroomAddiction</defName>
		<hediffClass>Hediff_Addiction</hediffClass>
		<label>humpshroom addiction</label>
		<description>Hump shroom effects addiction.</description>
		<causesNeed>Chemical_HumpShroom</causesNeed>
		<comps>
			<li Class="HediffCompProperties_SeverityPerDay">
				<severityPerDay>-0.1</severityPerDay>
				<showDaysToRecover>true</showDaysToRecover>
			</li>
		</comps>
		<stages>
			<li>
			</li>
			<li>
				<label>withdrawal</label>
				<statOffsets>
					<SexSatisfaction>-1</SexSatisfaction>
				</statOffsets>
			</li>
		</stages>
	</HediffDef>
		
	<ThoughtDef>
		<defName>HumpShroomWithdrawal</defName>
		<workerClass>ThoughtWorker_Hediff</workerClass>
		<hediff>HumpShroomAddiction</hediff>
		<validWhileDespawned>true</validWhileDespawned>
		<stages>
			<li>
				<visible>false</visible>
			</li>
			<li>
				<label>humpshroom withdrawal</label>
				<description>I just feel nothing down there.</description>
				<baseMoodEffect>-5</baseMoodEffect>
			</li>
		</stages>
	</ThoughtDef>
</Defs>