Open PauloAlmas opened 4 years ago
Thanks for finding that! I looked around and it seems the duplication is very "sporadic", meaning its not "every zed has a dupe", nor is it in every gamestage. Its also noteworthy that some zeds have a probability, and others do not (my script doesn't add "prob" for this). I looked into the vanilla game files and it appears they have this duplication as well (see below), so my script is just "following" it. I'll ask on the forums is this is intentional, maybe for balancing or something. If they fix/change it on their side the duplication will go away. If I don't get an answer, I'll see if I can fix it. I think the most problematic issue with this is the probabilities aren't handled at all in my script, so duped or not it might cause an imbalance in horde generation.
`
<entitygroup name="FwanderingHordeStageGS54">
<entity name="zombieMoe"/> <!-------########### -->
<entity name="zombieNurse" prob="0.095"/> <!-------########### -->
<entity name="zombieSkateboarder" prob="0.095"/>
<entity name="zombieMarlene"/>
<entity name="zombieBusinessMan"/>
<entity name="zombieMoe" prob="0.095"/> <!------########### DUP -->
<entity name="zombieSteve"/>
<entity name="animalZombieDog" prob="0.05"/>
<entity name="zombieYo"/>
<entity name="animalZombieVulture" prob="0.127"/>
<entity name="zombieNurse"/> <!------########### DUP -->
<entity name="zombieDarlene" prob="0.095"/>
`
Update: There is no update I have found on the forums. I'm betting the "duplicates" are a way for TFP to balance the zombie spawning. This will take some work to fix, so may not get done and will be a "feature", or sorts. Not sure the easiest way to fix on my end given TFP's way of handling the XML duplicates. Saving this issue for when the code base is a little more feature stable