Thanks for helping me 👍
I found it and sort of understand what's happening.
The insects dig more often if the room is smaller?
So maybe this would work?
48h between "digs" regardless of the roomsize?
I also read through the harmony patching instructions but it seems way to advanced for the amount of free time I have at the moment.
Maybe I'll try to add doors to the mod I linked in the first post instead.
I found it and sort of understand what's happening.
The insects dig more often if the room is smaller?
Code Select
public class ThinkNode_ChancePerHour_InsectDigChance : ThinkNode_ChancePerHour
{
private const float BaseMtbHours = 18f;
protected override float MtbHours(Pawn pawn)
{
Room room = pawn.GetRoom();
if (room == null)
{
return 18f;
}
int num = (room.IsHuge ? 9999 : room.CellCount);
float num2 = GenMath.LerpDoubleClamped(2f, 25f, 6f, 1f, num);
return 18f / num2;
}
}
So maybe this would work?
48h between "digs" regardless of the roomsize?
Code Select
public class ThinkNode_ChancePerHour_InsectDigChance : ThinkNode_ChancePerHour
{
private const float BaseMtbHours = 18f;
protected override float MtbHours(Pawn pawn)
{
return 48f;
}
}
I also read through the harmony patching instructions but it seems way to advanced for the amount of free time I have at the moment.
Maybe I'll try to add doors to the mod I linked in the first post instead.