How do I access pawn Hediffs when making a mod?

Started by nicolasd1018, August 17, 2021, 09:31:39 PM

Previous topic - Next topic

nicolasd1018

I'm trying to make a mod that adds in psi veneration to Ideology and I'm trying to get it to recognize whether or not a pawn has a psilink. How do I do this?

RawCode

post whatever you did so far, xml, code, anything.



llunak

Just search decompiled sources for 'psylink'? Those methods in PawnUtility look like what you need.

RawCode


using System;
namespace Psionic
{
    public class Class1
    {
    }
}


well, start from reading  (__ENTIRE__) modding wiki
https://rimworldwiki.com/wiki/Modding_Tutorials

modding is not something you can do in 5 minutes, you will need multiple hours to achieve "hello world" mod with your current skill level.