Skip to content

Commit

Permalink
18
Browse files Browse the repository at this point in the history
  • Loading branch information
Dubwise56 committed Feb 28, 2019
1 parent becf20a commit 6b55768
Show file tree
Hide file tree
Showing 372 changed files with 6,106 additions and 1,805 deletions.
8 changes: 4 additions & 4 deletions About/About.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>

<ModMetaData>
<name>Dubs Hygiene and Central Heating</name>
<name>Dubs Bad Hygiene</name>
<author>Dubwise</author>
<url></url>
<targetVersion>0.17.1543</targetVersion>
<description>Adds hygiene related needs and mood effects, plumbing, bathroom fixtures and central heating.</description>
<url>https://ludeon.com/forums/index.php?topic=29043.0</url>
<targetVersion>0.18.1722</targetVersion>
<description>Adds hygiene and bladder needs, plumbing, bathroom fixtures, water, sewage, irrigation, central heating, air conditioning, and more!. v2.2.4</description>
</ModMetaData>
Binary file removed About/Preview - Copy.png
Binary file not shown.
Binary file modified About/Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assemblies/0Harmony.dll
Binary file not shown.
Binary file modified Assemblies/BadHygiene.dll
Binary file not shown.
19 changes: 17 additions & 2 deletions Defs/Designations/DesignationCategories.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,30 @@
<Defs>

<DesignationCategoryDef>
<DefName>Hygiene</DefName>
<defName>Hygiene</defName>
<label>Hygiene</label>
<description>Things for colonists hygiene.</description>
<order>10</order>
<specialDesignatorClasses>
<li>Designator_Cancel</li>
<li>Designator_Deconstruct</li>
<li>DubsBadHygiene.Designator_RemoveSewage</li>
<li>DubsBadHygiene.Designator_RemovePlumbing</li>
<li>DubsBadHygiene.Designator_PaintFixtures</li>
</specialDesignatorClasses>
</DesignationCategoryDef>


<DesignationCategoryDef>
<defName>HygieneMisc</defName>
<label>Hygiene/Misc</label>
<description>Things for colonists hygiene.</description>
<order>10</order>
<specialDesignatorClasses>
<li>Designator_Cancel</li>
<li>Designator_Deconstruct</li>
<li>DubsBadHygiene.Designator_RemoveSewage</li>
<li>DubsBadHygiene.Designator_RemovePlumbing</li>
<li>DubsBadHygiene.Designator_PaintFixtures</li>
</specialDesignatorClasses>
</DesignationCategoryDef>
</Defs>
10 changes: 10 additions & 0 deletions Defs/Designations/Designations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<DesignationDef>
<defName>RemoveSewage</defName>
<texturePath>Designations/Haul</texturePath>
<targetType>Cell</targetType>
</DesignationDef>

</Defs>
22 changes: 22 additions & 0 deletions Defs/Effects/Effecter_Misc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,26 @@
</children>
</EffecterDef>

<EffecterDef>
<defName>Unblocking</defName>
<children>
<li>
<subEffecterClass>SubEffecter_InteractSymbol</subEffecterClass>
<moteDef>Mote_Plunger</moteDef>
</li>
</children>
</EffecterDef>

<ThingDef ParentName="MoteBase">
<defName>Mote_Plunger</defName>
<thingClass>MoteDualAttached</thingClass>
<altitudeLayer>MetaOverlays</altitudeLayer>
<mote>
<solidTime>120</solidTime>
</mote>
<graphicData>
<texPath>DBH/Things/Mote/plunger</texPath>
</graphicData>
</ThingDef>

</Defs>
31 changes: 29 additions & 2 deletions Defs/Effects/Mote_Visual.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<label>Mote</label>
<category>Mote</category>
<graphicData>
<texPath>Things/Mote/FecalBit</texPath>
<texPath>DBH/Things/Mote/FecalBit</texPath>
<graphicClass>Graphic_Mote</graphicClass>
<shaderType>Mote</shaderType>
</graphicData>
Expand Down Expand Up @@ -41,7 +41,7 @@
<ThingDef ParentName="BasedMote">
<defName>Mote_Sewage</defName>
<graphicData>
<texPath>Things/Mote/sewage2</texPath>
<texPath>DBH/Things/Mote/sewage2</texPath>
</graphicData>
<altitudeLayer>MoteLow</altitudeLayer>
<mote>
Expand All @@ -51,4 +51,31 @@
</mote>
</ThingDef>

<ThingDef ParentName="BasedMote">
<defName>Mote_Irrigation</defName>
<graphicData>
<texPath>DBH/Things/Mote/irrigationspray</texPath>
</graphicData>
<altitudeLayer>Projectile</altitudeLayer>
<mote>
<fadeInTime>0.40</fadeInTime>
<solidTime>2</solidTime>
<fadeOutTime>2</fadeOutTime>
</mote>
</ThingDef>

<ThingDef ParentName="BasedMote">
<defName>Mote_WashSteam</defName>
<graphicData>
<texPath>DBH/Things/Mote/steam1</texPath>
</graphicData>
<altitudeLayer>MoteOverhead</altitudeLayer>
<mote>
<fadeInTime>1</fadeInTime>
<solidTime>0</solidTime>
<fadeOutTime>1</fadeOutTime>
<growthRate>0.1</growthRate>
</mote>
</ThingDef>

</Defs>
33 changes: 0 additions & 33 deletions Defs/HediffDefs/Hediffs_Global_Misc.xml

This file was deleted.

200 changes: 200 additions & 0 deletions Defs/HediffDefs/Hediffs_Hygiene.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<HediffDef>
<defName>Washing</defName>
<label>washing</label>
<labelNoun>washing</labelNoun>
<stages>
<li>
<becomeVisible>false</becomeVisible>
<statOffsets>
<ComfyTemperatureMax>60</ComfyTemperatureMax>
<ComfyTemperatureMin>-60</ComfyTemperatureMin>
</statOffsets>
</li>
</stages>
</HediffDef>

<HediffDef>
<defName>BadHygiene</defName>
<label>Bad Hygiene</label>
<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
<tendable>false</tendable>
<stages>
<li>
<label>moderate</label>
<statOffsets>
<FoodPoisonChance>0.05</FoodPoisonChance>
<RecruitPrisonerChance>-0.05</RecruitPrisonerChance>
<SocialImpact>-0.05</SocialImpact>
</statOffsets>
</li>
<li>
<label>severe</label>
<minSeverity>0.5</minSeverity>
<statOffsets>
<FoodPoisonChance>0.1</FoodPoisonChance>
<RecruitPrisonerChance>-0.1</RecruitPrisonerChance>
<SocialImpact>-0.1</SocialImpact>
</statOffsets>
</li>
<li>
<label>extreme</label>
<minSeverity>0.75</minSeverity>
<statOffsets>
<FoodPoisonChance>0.15</FoodPoisonChance>
<RecruitPrisonerChance>-0.15</RecruitPrisonerChance>
<SocialImpact>-0.15</SocialImpact>
</statOffsets>
</li>
</stages>
</HediffDef>

<HediffDef ParentName="DiseaseBase">
<defName>Diarrhea</defName>
<label>Diarrhea</label>
<scenarioCanAdd>true</scenarioCanAdd>
<comps>
<li Class="HediffCompProperties_Disappears">
<disappearsAfterTicks>
<min>90000</min>
<max>120000</max>
</disappearsAfterTicks>
</li>
</comps>
<stages>
<li>
<hungerRateFactorOffset>0.5</hungerRateFactorOffset>
<painOffset>0.2</painOffset>
<vomitMtbDays>0.5</vomitMtbDays>
</li>
</stages>
</HediffDef>

<HediffDef ParentName="InfectionBase">
<defName>Dysentery</defName>
<label>Dysentery</label>
<hediffClass>HediffWithComps</hediffClass>
<taleOnVisible>IllnessRevealed</taleOnVisible>
<makesSickThought>true</makesSickThought>
<tendable>true</tendable>
<stages>
<li>
<painOffset>0.3</painOffset>
<vomitMtbDays>0.25</vomitMtbDays>
<hungerRateFactorOffset>1</hungerRateFactorOffset>
</li>
</stages>
<comps>
<li Class="HediffCompProperties_TendDuration">
<tendDuration>60000</tendDuration>
<severityPerDayTended>-0.13</severityPerDayTended>
</li>
<li Class="HediffCompProperties_Immunizable">
<immunityPerDayNotSick>-0.06</immunityPerDayNotSick>
<immunityPerDaySick>0.173</immunityPerDaySick>
<severityPerDayNotImmune>0.166</severityPerDayNotImmune>
<severityPerDayImmune>-0.333</severityPerDayImmune>
</li>
</comps>
</HediffDef>

<HediffDef ParentName="InfectionBase">
<defName>Cholera</defName>
<label>cholera</label>
<hediffClass>HediffWithComps</hediffClass>
<taleOnVisible>IllnessRevealed</taleOnVisible>
<makesSickThought>true</makesSickThought>
<tendable>true</tendable>
<stages>
<li>
<painOffset>0.4</painOffset>
<vomitMtbDays>0.20</vomitMtbDays>
<hungerRateFactorOffset>1</hungerRateFactorOffset>
</li>
</stages>
<comps>
<li Class="HediffCompProperties_TendDuration">
<tendDuration>60000</tendDuration>
<severityPerDayTended>-0.12</severityPerDayTended>
</li>
<li Class="HediffCompProperties_Immunizable">
<immunityPerDayNotSick>-0.06</immunityPerDayNotSick>
<immunityPerDaySick>0.173</immunityPerDaySick>
<severityPerDayNotImmune>0.166</severityPerDayNotImmune>
<severityPerDayImmune>-0.333</severityPerDayImmune>
</li>
</comps>
</HediffDef>


<HediffDef>
<defName>DBHDehydration</defName>
<label>dehydration</label>
<lethalSeverity>1</lethalSeverity>
<scenarioCanAdd>true</scenarioCanAdd>
<stages>
<li>
<label>trivial</label>
<socialFightChanceFactor>1.5</socialFightChanceFactor>
<hungerRateFactorOffset>0.1</hungerRateFactorOffset>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>-0.05</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.2</minSeverity>
<label>minor</label>
<socialFightChanceFactor>2</socialFightChanceFactor>
<hungerRateFactorOffset>0.2</hungerRateFactorOffset>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>-0.10</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.4</minSeverity>
<label>moderate</label>
<socialFightChanceFactor>2.5</socialFightChanceFactor>
<hungerRateFactorOffset>0.2</hungerRateFactorOffset>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>-0.20</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.6</minSeverity>
<label>severe</label>
<socialFightChanceFactor>3</socialFightChanceFactor>
<hungerRateFactorOffset>0.2</hungerRateFactorOffset>
<capMods>
<li>
<capacity>Consciousness</capacity>
<offset>-0.30</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.8</minSeverity>
<label>extreme</label>
<lifeThreatening>true</lifeThreatening>
<hungerRateFactorOffset>0.2</hungerRateFactorOffset>
<capMods>
<li>
<capacity>Consciousness</capacity>
<setMax>0.1</setMax>
</li>
</capMods>
</li>
</stages>
</HediffDef>

</Defs>
Loading

0 comments on commit 6b55768

Please sign in to comment.