Concord

Concord lets a mod change what a game does while it's running, without touching the game files.

Explore

CampfireWarmthPatch.cs
abstract class CampfireWarmthPatch : Campfire
{
    [Inject(nameof(GetWarmth), At.Return)]
    void AfterGetWarmth(CallbackInfo<int> ci)
    {
        ci.ReturnValue += 5;
    }
}
Before
Campfire.cs
public int GetWarmth()
{
    return fuel * 2;
}
After patch
GetWarmth (runtime)
public int GetWarmth()
{
    int result = fuel * 2;
    result += 5;
    return result;
}