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

	<ThingDef Name="MSI_DrugBase" Abstract="True">
		<thingClass>ThingWithComps</thingClass>
		<category>Item</category>
		<useHitPoints>true</useHitPoints>
		<selectable>true</selectable>
		<statBases>
			<MaxHitPoints>50</MaxHitPoints>
			<Flammability>1.0</Flammability>
			<DeteriorationRate>2</DeteriorationRate>
			<Beauty>0</Beauty>
		</statBases>
		<altitudeLayer>Item</altitudeLayer>
		<stackLimit>400</stackLimit>
		<alwaysHaulable>true</alwaysHaulable>
		<comps>
			<li Class="CompProperties_Forbiddable" />
		</comps>
		<pathCost>5</pathCost>
		<resourceReadoutPriority>Last</resourceReadoutPriority>
		<drawGUIOverlay>true</drawGUIOverlay>
		<ingestible>
			<preferability>NeverForNutrition</preferability>
			<maxNumToIngestAtOnce>1</maxNumToIngestAtOnce>
			<joyKind>Chemical</joyKind>
			<chairSearchRadius>25</chairSearchRadius>
			<nurseable>true</nurseable>
		</ingestible>
		<storedConceptLearnOpportunity>DrugPolicies</storedConceptLearnOpportunity>
	</ThingDef>
  
	<ThingDef Name="MSI_MakeableDrugBase" ParentName="MSI_DrugBase" Abstract="True">
		<thingCategories>
			<li>SmokeleafIndCatDrugs</li>
		</thingCategories>
		<recipeMaker>
  			<workSpeedStat>DrugProductionSpeed</workSpeedStat>
  			<workSkill>Intellectual</workSkill>
			<effectWorking>Cook</effectWorking>
			<soundWorking>Recipe_CookMeal</soundWorking>
		</recipeMaker>
		<ingestible>
			<baseIngestTicks>720</baseIngestTicks>
			<ingestSound>Ingest_Smoke</ingestSound>
			<ingestEffect>Smoke_Joint</ingestEffect>
			<ingestEffectEat>EatVegetarian</ingestEffectEat>
			<ingestHoldUsesTable>true</ingestHoldUsesTable>
			<ingestCommandString>Smoke {0}</ingestCommandString>
			<ingestReportString>Smoking {0}.</ingestReportString>
			<useEatingSpeedStat>false</useEatingSpeedStat>
			<drugCategory>Social</drugCategory>
		</ingestible>
	</ThingDef>
  
	<ThingDef Name="MSI_MakeableDrugPillBase" ParentName="MSI_DrugBase" Abstract="True">
		<thingCategories>
			<li>SmokeleafIndCatDrugs</li>
		</thingCategories>
		<recipeMaker>
  			<workSpeedStat>DrugProductionSpeed</workSpeedStat>
  			<workSkill>Intellectual</workSkill>
			<effectWorking>Cook</effectWorking>
			<soundWorking>Recipe_CookMeal</soundWorking>
		</recipeMaker>
		<ingestible>
			<foodType>Processed</foodType>
			<baseIngestTicks>120</baseIngestTicks>
			<chairSearchRadius>0</chairSearchRadius>
			<ingestSound>Ingest_Pill</ingestSound>
			<ingestEffect>EatVegetarian</ingestEffect>
			<ingestHoldUsesTable>false</ingestHoldUsesTable>
			<ingestCommandString>Take {0}</ingestCommandString>
			<ingestReportString>Taking {0}.</ingestReportString>
			<drugCategory>Medical</drugCategory>
		</ingestible>
		<socialPropernessMatters>true</socialPropernessMatters>
	</ThingDef>
  
	<HediffDef Name="MSI_AddictionBase" Abstract="True">
		<defaultLabelColor>(255,0,127)</defaultLabelColor>
		<initialSeverity>0.5</initialSeverity>
		<maxSeverity>1.0</maxSeverity>
		<scenarioCanAdd>true</scenarioCanAdd>
	</HediffDef>

	<HediffDef Name="MSI_DrugToleranceBase" Abstract="True">
		<hediffClass>HediffWithComps</hediffClass>
		<defaultLabelColor>(179,86,132)</defaultLabelColor>
		<maxSeverity>1.0</maxSeverity>
		<scenarioCanAdd>true</scenarioCanAdd>
		<stages>
			<li>
				<minSeverity>0</minSeverity>
			</li>
			<li>
				<minSeverity>0.20</minSeverity>
				<label>small</label>
			</li>
			<li>
				<minSeverity>0.50</minSeverity>
				<label>large</label>
			</li>
			<li>
				<minSeverity>0.80</minSeverity>
				<label>massive</label>
			</li>
		</stages>
  </HediffDef> 
  
	<NeedDef Name="MSI_DrugAddictionNeedBase" Abstract="True">
		<onlyIfCausedByHediff>true</onlyIfCausedByHediff>
		<tutorHighlightTag>NeedAddiction</tutorHighlightTag>
		<showForCaravanMembers>true</showForCaravanMembers>
	</NeedDef>
  
</Defs>