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 - EVERYNAMEISUNAVAILABLE

#1
Help / Harmony and private methods
April 14, 2022, 04:54:45 PM
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?
#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
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
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
there's a large bug that fucks up your TPS when using this 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?