Holy book - basarab1504/ReligionMod GitHub Wiki
Holy book is needed for worships. If want your religion have worships - you should add a holy book. it's a good idea to add a full description of your religion in a book descrtiption.
<ThingDef ParentName="ReligionBookBase">
<defName>BookOfYourReligion</defName>
<label>Book of Your Religion</label>
<description>Interesting description of your book.</description>
<graphicData>
<texPath>path to your book texture</texPath>
<graphicClass>Graphic_Single</graphicClass>
<onGroundRandomRotateAngle>35</onGroundRandomRotateAngle>
</graphicData>
<comps>
<li Class="Religion.CompProperties_CompReligionBook">
<religionTrait>YourReligionDefName</religionTrait>
</li>
</comps>
</ThingDef>
First we have to set ReligionBookBase
as a parent for your holy book.
<ThingDef ParentName="ReligionBookBase">
Now is more an art work for you - choose a label of your book and write a fancy description.
<defName>BookOfExampleReligion</defName>
<label>Book of Great Religion</label>
<description>Very cool book of very nice religion</description>
Then we need to specify the path to texture of the book. You may copy one from original mod (/Mods/Religion/Textures/Item/Resource/Books/ReligionBook) to your mod.
<graphicData>
<texPath>Item/Resource/Books/ReligionBook</texPath>
<graphicClass>Graphic_Single</graphicClass>
<onGroundRandomRotateAngle>35</onGroundRandomRotateAngle>
</graphicData>
More important part is that we need to put our religion trait defName in component of book:
<comps>
<li Class="Religion.CompProperties_CompReligionBook">
<religionTrait>YourReligionDefName</religionTrait>
</li>
</comps>