Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - LegendaryDrop

#1
Tools / Re: [LIB] Harmony v1.2.0.1
July 05, 2019, 06:17:16 PM
If I'm just trying to add a new public float to an existing .dll (verse.RaceProperties) is Harmony the way to go? It's not patching a specific method per se... Played around with it a little but can't get it to work, and there seems to be a lack of example code out there to use for such a thing.

What I'm trying to do is make a custom property akin to 'petness' that I can add via XML tags to any farm animals I choose. From what I gather it's drawing things like petness and packAnimal from this RaceProperties.cs file (I THINK, I could be way off...) and I would like to augment it at runtime instead of replacing the whole thing.

Or if there is a much simpler alternative to give an animal pawn a custom property that I'm overlooking, that works too :)