Hi, i'm trying to change value of a private method return using harmony, how do i do that? can someone give me an example please?
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.
Pages1
#2
Help / changing Deep drill's next resource
April 14, 2022, 10:26:09 AM
Hi!
I am trying to make a gizmo that changes the deep drill's next resource (to ores like gold, iron, etc) and I wanted to know if there was a way to do it?
I know that is uses this
and
I have my gizmo code ready I just need to add the action (and find out how to actually add the gizmo to the deep drill)
Any help is appreciated
I am trying to make a gizmo that changes the deep drill's next resource (to ores like gold, iron, etc) and I wanted to know if there was a way to do it?
I know that is uses this
Code Select
public static ThingDef GetNextResource(IntVec3 p, Map map)
{
ThingDef result;
int num;
IntVec3 intVec;
DeepDrillUtility.GetNextResource(p, map, out result, out num, out intVec);
return result;
}
and
Code Select
public static ThingDef GetBaseResource(Map map, IntVec3 cell)
{
if (!map.Biome.hasBedrock)
{
return null;
}
Rand.PushState();
Rand.Seed = cell.GetHashCode();
ThingDef result = (from rock in Find.World.NaturalRockTypesIn(map.Tile)
select rock.building.mineableThing).RandomElement<ThingDef>();
Rand.PopState();
return result;
}
I have my gizmo code ready I just need to add the action (and find out how to actually add the gizmo to the deep drill)
Any help is appreciated
#3
Releases / Re: [1.2-A15] Industrial Rollers 2.5.0 - Free your haulers!
May 15, 2021, 04:38:44 AM
there's a large bug that fucks up your TPS when using this mod
reply if you're still updating the mod
reply if you're still updating the mod
#4
Releases / Re: [1.1] Prison Labor
April 15, 2020, 06:58:20 AM
Nice mod but it's broken for me every prisoner is just wandering with full motivation and everything in their room
help?
help?
Pages1