Okay, I'm slamming my head and making a bit of progress. Worked out a bit more about Visual Studio, C#, Assemblies folder, etc.
Current roadblock in Visual Studio is a word (Mathf) should be connecting to UnityEngine (it is in the core's assembly) but I can make that happen... Everything else let me Alt+Enter to link correctly.
I attached an updated mod folder contatining everything so far. More than happy for others to poke around and give advice.
Here's the line:
[Bonus update- this is for my sanity more than you guys]
Work since original post;
- Made an Assemblies & Source folder
- Started a Visual Studio project in the source folder (Assemblies will be empty until I finish that and build it. I think..)
- Made the <workerClass> in the Incidents_Map_Threats XML as "LordMortimus.IncidentWorker_HornBeetleSighting" (ready for the VS project..)
- Got a placeholder image for a tunnel 'building' (will act similar to the hive but for beetles)
-----Need to work out how to have it self destruct after a day.. (bigger problem for later, suspect it'll be less simple than it sounds)
-----Can't make the heal per tick amount negative... dang.
-----Could make it need maintanence quickly, but need to make a new behaviour for the beetles to not repair... hmm.. backburner.
Current roadblock in Visual Studio is a word (Mathf) should be connecting to UnityEngine (it is in the core's assembly) but I can make that happen... Everything else let me Alt+Enter to link correctly.
I attached an updated mod folder contatining everything so far. More than happy for others to poke around and give advice.
Here's the line:
Code Select
{
Map map = (Map)parms.target;
Thing t = RimWorld.InfestationUtility.SpawnTunnels(Mathf.Max(GenMath.RoundRandom(parms.points / 220f), 1), map, false, false, null);
base.SendStandardLetter(parms, t, Array.Empty<NamedArgument>());
Find.TickManager.slower.SignalForceNormalSpeedShort();
return true;
}[Bonus update- this is for my sanity more than you guys]
Work since original post;
- Made an Assemblies & Source folder
- Started a Visual Studio project in the source folder (Assemblies will be empty until I finish that and build it. I think..)
- Made the <workerClass> in the Incidents_Map_Threats XML as "LordMortimus.IncidentWorker_HornBeetleSighting" (ready for the VS project..)
- Got a placeholder image for a tunnel 'building' (will act similar to the hive but for beetles)
-----Need to work out how to have it self destruct after a day.. (bigger problem for later, suspect it'll be less simple than it sounds)
-----Can't make the heal per tick amount negative... dang.
-----Could make it need maintanence quickly, but need to make a new behaviour for the beetles to not repair... hmm.. backburner.