Craftable Pawn Framework

If you liked this item, please rate it up on Steam Workshop page.

Author: ISOREX

Last revision: 24 Nov, 2020 at 21:33 UTC (1)

File size: 173.06 KB

On Steam Workshop

Description:
What is this mod?

Ever wanted to make your own robot race, but didn’t have the knowledge for the C# part? Craftable Pawn Framework is a mod that does all the C# work for you! (minimal XML knowledge required)
Works with both animals and humanlike pawns!

How do I get it working for my own race?
Simply install this mod, and make sure your own mod requires it as a dependency and get started!

What features are currently included?

1. Make any type of pawn craftable!

  1. Create your race in XML, and the needed PawnKind.xml
  2. Create an item with CompProperties_Hatcher as a comp.
    <comp> <li Class="CompProperties_Hatcher"> <hatcherDaystoHatch>0.5</hatcherDaystoHatch> <!–0.0001 is instant–> <hatcherPawn>PawnKindDefName</hatcherPawn> <!–Your PawnKind defName goes in here! –> </li> </comp>
  3. Make a recipe for this item, which can be done like any regular item.
  4. That should be all! If you have any questions feel free to ask!

2. Set the default skill for your PawnKind!
Add the following code to your PawnKind.xml to get it to work.

<modExtensions> <li Class="CraftablePawnFramework.MyDefExtension"> <setSkillLevel>true</setSkillLevel> <skillLevelAt>6</skillLevelAt> </li> </modExtensions>

3. More features are being worked on!

If you need any help feel free to message me on Discord! ISOREX#8779. Of course the Rimworld Discord is also a great place to ask your questions.

Download
Required items:

Click the title to search on this site.


HarmonySteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.