Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added 1.1/Assemblies/0Harmony.dll
Binary file not shown.
Binary file added 1.1/Assemblies/RimWriter.dll
Binary file not shown.
27 changes: 27 additions & 0 deletions 1.1/Defs/ConceptDefs/RimWriter_Concepts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>

<ConceptDef>
<defName>RimWriter_PaperMaking</defName>
<label>paper making</label>
<priority>50</priority>
<helpText>Paper and parchment can be created at the paper making table. Paper is crafted from logs, and parchment is crafted from leather. Both can be used as materials to make books.</helpText>
<needsOpportunity>true</needsOpportunity>
</ConceptDef>


<ConceptDef>
<defName>RimWriter_BookBurning</defName>
<label>book burning</label>
<priority>50</priority>
<helpText>Books and scrolls can make your colonists entertained, but can also lead to harmful ideas and attempts to overthrow the bourgeoisie.\n\nIf you want to keep down the proletariat in your colony, or if you enjoy reenacting Fahrenheit 451, you have the option of burning these books at a campfire or electric crematorium. </helpText>
<needsOpportunity>true</needsOpportunity>
<highlightTags>
<li>DesignationCategoryButton-Temperature-Closed</li>
<li>Designator-Build-Campfire</li>
<li>ITab-Bills-Closed</li>
</highlightTags>
</ConceptDef>


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

<JobDef>
<defName>RimWriter_ReadABook</defName>
<driverClass>RimWriter.JobDriver_ReadABook</driverClass>
<reportString>reading.</reportString>
<joyDuration>4000</joyDuration>
<joyMaxParticipants>1</joyMaxParticipants>
<joyGainRate>1</joyGainRate>
<joySkill>Intellectual</joySkill>
<joyXpPerTick>0.002</joyXpPerTick>
<joyKind>Jecrell_Writing</joyKind>
</JobDef>

<JobDef>
<defName>RimWriter_ReturnBook</defName>
<driverClass>RimWriter.JobDriver_ReturnBook</driverClass>
<reportString>returning TargetA.</reportString>
</JobDef>

<JobDef>
<defName>RimWriter_FreeWrite</defName>
<driverClass>RimWriter.JobDriver_FreeWrite</driverClass>
<reportString>practice writing.</reportString>
<joyDuration>4000</joyDuration>
<joyMaxParticipants>1</joyMaxParticipants>
<joyGainRate>1</joyGainRate>
<joySkill>Intellectual</joySkill>
<joyXpPerTick>0.002</joyXpPerTick>
<joyKind>Jecrell_Writing</joyKind>
</JobDef>

<JobDef>
<defName>RimWriter_AutoWrite</defName>
<driverClass>JobDriver_SitFacingBuilding</driverClass>
<reportString>writing automatically.</reportString>
<joyDuration>4000</joyDuration>
<joyMaxParticipants>1</joyMaxParticipants>
<joyGainRate>1</joyGainRate>
<joySkill>Intellectual</joySkill>
<joyXpPerTick>0.002</joyXpPerTick>
<joyKind>Jecrell_Writing</joyKind>
</JobDef>

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

<JoyGiverDef>
<defName>RimWriter_ReadABookJG</defName>
<giverClass>RimWriter.JoyGiver_ReadABook</giverClass>
<baseChance>1.5</baseChance>
<thingDefs>
<li>Jecrell_Bookcase</li>
</thingDefs>
<jobDef>RimWriter_ReadABook</jobDef>
<joyKind>Jecrell_Writing</joyKind>
<requiredCapacities>
<li>Sight</li>
<li>Manipulation</li>
</requiredCapacities>
</JoyGiverDef>

<JoyGiverDef>
<defName>RimWriter_FreeWriteJG</defName>
<giverClass>JoyGiver_InteractBuildingSitAdjacent</giverClass>
<baseChance>1.5</baseChance>
<thingDefs>
<li>RimWriter_TableWriting</li>
<li>RimWriter_TableTypewriter</li>
</thingDefs>
<jobDef>RimWriter_FreeWrite</jobDef>
<joyKind>Jecrell_Writing</joyKind>
<requiredCapacities>
<li>Sight</li>
<li>Manipulation</li>
</requiredCapacities>
</JoyGiverDef>

<JoyGiverDef>
<defName>RimWriter_AutoWriteJG</defName>
<giverClass>JoyGiver_InteractBuildingSitAdjacent</giverClass>
<baseChance>1.5</baseChance>
<thingDefs>
<li>RimWriter_TableWriting</li>
<li>RimWriter_TableTypewriter</li>
</thingDefs>
<jobDef>RimWriter_AutoWrite</jobDef>
<joyKind>Jecrell_Writing</joyKind>
<requiredCapacities>
<li>Sight</li>
<li>Manipulation</li>
</requiredCapacities>
</JoyGiverDef>

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

<JoyKindDef>
<defName>Jecrell_Books</defName>
<label>reading books</label>
</JoyKindDef>

<JoyKindDef>
<defName>Jecrell_Writing</defName>
<label>writing</label>
</JoyKindDef>

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

<RecipeDef ParentName="MakeBookAtTypewriter">
<defName>RimWriter_MakeJournalAtTypewriter</defName>
<label>author a journal at a typewriter</label>
<description>Makes a journal at a typewriter by typing out flattened stationery such as paper or parchment and binding together the pieces.\nJournals are usually concrete accounts of events or research, unlike books which can often have elements of fiction.</description>
<soundWorking>RimWriter_SoundManualTypewriter</soundWorking>
<jobString>Typing a journal.</jobString>
<products Inherit="False">
<Jecrell_BookJournal>1</Jecrell_BookJournal>
</products>
</RecipeDef>


<RecipeDef ParentName="MakeBookAtDesk" Name="MakeBookAtTypewriter">
<defName>RimWriter_MakeBookAtTypewriter</defName>
<label>author a book at a typewriter</label>
<description>Makes a book at a typewriter by typing out on flattened stationery such as paper or parchment and binding together the pieces.</description>
<soundWorking>RimWriter_SoundManualTypewriter</soundWorking>
<jobString>Typing a book.</jobString>
<workAmount>10000</workAmount>
<recipeUsers Inherit="False">
<li>RimWriter_TableTypewriter</li>
</recipeUsers>
<products Inherit="False">
<Jecrell_Book>1</Jecrell_Book>
</products>
</RecipeDef>

<RecipeDef ParentName="MakeBookAtDesk">
<defName>RimWriter_MakeJournalAtTable</defName>
<label>author a journal at a desk</label>
<description>Makes a journal at a writing table by inking out flattened stationery such as paper or parchment and binding together the pieces.\nJournals are usually concrete accounts of events or research, unlike books which can often have elements of fiction.</description>
<jobString>Making a journal.</jobString>
<products Inherit="False">
<Jecrell_BookJournal>1</Jecrell_BookJournal>
</products>
</RecipeDef>


<RecipeDef ParentName="MakeBookByHand" Name="MakeBookAtDesk">
<defName>RimWriter_MakeBookAtTable</defName>
<label>author a book at a desk</label>
<description>Makes a book at a writing table by inking out on flattened stationery such as paper or parchment and binding together the pieces.</description>
<jobString>Making a book.</jobString>
<workAmount>15000</workAmount>
<recipeUsers Inherit="False">
<li>RimWriter_TableWriting</li>
</recipeUsers>
<products Inherit="False">
<Jecrell_Book>1</Jecrell_Book>
</products>
</RecipeDef>


<RecipeDef ParentName="MakeBookByHand">
<defName>RimWriter_MakeJournalByHand</defName>
<label>author a journal by hand</label>
<description>Makes a journal by hand at a crafting spot by writing out flattened stationery such as paper or parchment and binding together the pieces.\nJournals are usually concrete accounts of events or research, unlike books which can often have elements of fiction.</description>
<jobString>Making a journal by hand.</jobString>
<researchPrerequisite>RimWriter_TechHandWriting</researchPrerequisite>
<products Inherit="False">
<Jecrell_BookJournal>1</Jecrell_BookJournal>
</products>
</RecipeDef>

<RecipeDef Name="MakeBookByHand">
<defName>RimWriter_MakeBook</defName>
<label>make a book by hand</label>
<description>Makes a book by hand at a crafting spot by writing out flattened stationery such as paper or parchment and binding together the pieces.</description>
<jobString>Making a book by hand.</jobString>
<workAmount>20000</workAmount>
<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
<workSkill>Artistic</workSkill>
<unfinishedThingDef>UnfinishedWriting</unfinishedThingDef>
<soundWorking>RimWriter_SoundManualPencil</soundWorking>
<effectWorking>Tailor</effectWorking>
<allowMixingIngredients>true</allowMixingIngredients>
<researchPrerequisite>RimWriter_TechHandWriting</researchPrerequisite>
<recipeUsers>
<li>CraftingSpot</li>
</recipeUsers>
<products>
<Jecrell_Book>1</Jecrell_Book>
</products>
<ingredients>
<li>
<filter>
<categories>
<li>Leathers</li>
</categories>
</filter>
<count>10</count>
</li>
<li>
<filter>
<categories>
<li>RimWriter_BookMaterials</li>
</categories>
</filter>
<count>100</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>RimWriter_BookMaterials</li>
<li>Leathers</li>
</categories>
</fixedIngredientFilter>
</RecipeDef>

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

<RecipeDef>
<defName>RimWriter_BurnBooks</defName>
<label>burn books</label>
<description>Burn unwanted books to completely destroy them without any mess.</description>
<jobString>Burning books.</jobString>
<workAmount>60</workAmount>
<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
<requiredGiverWorkType>Hauling</requiredGiverWorkType>
<effectWorking>Cremate</effectWorking>
<soundWorking>Recipe_Cremate</soundWorking>
<conceptLearned>RimWriter_BookBurning</conceptLearned>
<ingredients>
<li>
<filter>
<categories>
<li>RimWriter_Books</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>RimWriter_Books</li>
</categories>
</fixedIngredientFilter>
</RecipeDef>

<RecipeDef>
<defName>RimWriter_BurnScrolls</defName>
<label>burn scrolls</label>
<description>Burn unwanted scrolls to completely destroy them without any mess.</description>
<jobString>Burning scrolls.</jobString>
<workAmount>60</workAmount>
<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
<requiredGiverWorkType>Hauling</requiredGiverWorkType>
<effectWorking>Cremate</effectWorking>
<soundWorking>Recipe_Cremate</soundWorking>
<conceptLearned>RimWriter_BookBurning</conceptLearned>
<ingredients>
<li>
<filter>
<categories>
<li>RimWriter_Scrolls</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>RimWriter_Scrolls</li>
</categories>
</fixedIngredientFilter>
</RecipeDef>

</Defs>
Loading