I need help limiting the mechanoids that can spawn in the ancient temples

Started by cashkyle25, December 30, 2020, 12:31:36 AM

Previous topic - Next topic

cashkyle25

I have spent hours trying to understand and figure out a solution to my problem. I have no idea how to approach it and I'm at a loss right now. I'm trying to make it to where the vanilla mechanoids spawn in the ancient temples, and not the mechanoids from my current mod. Since my mechanoids are going to have mechanoid's flesh, they're going to be put on the list for pawns that can spawn in the ancient temple. I did think about making a whole new flesh type, but there has to be something easier (right?). However, I'm a small brain and I can't figure out how to leave my mechanoids out of this selection list. I have discovered, I am pretty sure, all the code that goes into which pawns will spawn in the ancient temples, and it practically dwindles down to a random XML node and XML Root that the code will pick at random. I can't figure out how to prevent it from picking the XML Roots I created. I am wondering if anyone would be able to help me by giving me a direction to head in or even a suggestion. Thank you for your time helping a smol brain out. :)

(The files attached are the code from the game, not my code)

** Update:: I finally found a simple way to prevent my mechanoids from spawning in the ancient temple without preventing any of the VANILLA mechanoids from spawning in the ancient temple. My code only prevents mechanoids with their combat power below 105 from spawning which isn't really as effective as I want it to be as it would affect other mods (such as More Mechanoids) from being how they should be played. It's not really a big deal, and I'm pretty sure that it'll be negligible to the player, but there has to be a more efficient way than my code. So, again, I'm wondering if anyone has any ideas that can help a novice modder
IFeedPigsBacon