[Mod Request] Delayed Infestation Spawn

Started by HyperDawn, July 05, 2016, 10:33:29 AM

Previous topic - Next topic

HyperDawn

Hi guys

Forgive me if there is already a mod for this, unfortunately I've looked but can't find anything like it.

I would love to have a mod that would delay the initial spawn of bugs from hives. Either on a timer - say 12-24hr etc (or even random), or like mechanoids where they only begin to spawn when you attack the hive.

I find myself getting screwed over whenever I build in mountains so I don't do it any more which limits my map types. I don't want to disable them completely because it's a fun addition to the game. However, even if a raid drops straight into your base at least you can try and get your people to safety. But when the bugs spawn in your only doctor's bedroom when you have just 4 colonists you're usually going to have a bad time :)

Thanks for reading!

mussi

You can do it yourself by editing the Incidents_Bad_ThreatsBig.xml file, which is located at \Mods\Core\Defs\IncidentDefs\ inside your game folder.
First make a backup of that file and then open it with any text editor, like Notepad.
You have to insert the line <earliestDay>60</earliestDay> for the Infestation incident.
It should look something like this:
  <IncidentDef>
    <defName>Infestation</defName>
    <workerClass>IncidentWorker_Infestation</workerClass>
    <letterLabel>Infestation</letterLabel>
    <letterText>A bug hive has emerged! ... etc...</letterText>
    <letterType>BadUrgent</letterType>
    <baseChance>3.0</baseChance>
    <earliestDay>60</earliestDay>
    <minRefireDays>20</minRefireDays>
    <category>ThreatBig</category>
    <pointsScaleable>true</pointsScaleable>
    <minThreatPoints>400</minThreatPoints>
  </IncidentDef>

You can edit the number how you like it, 15 days being 1 month in game. Also you can lower the chance of spawning by changing <baseChance> and with <minRefireDays> you can increase or decrease the time between spawns. Have fun! :)