Entrenched Enemies

by zanven

Make enemy bases / demolishers tougher to defeat by increasing HP, Regen, Unit spawn speed and Quality base/worm spawn chance. fully configurable mod to allow deathworld playstyle without needing more bases ( good for UPS ), this mod also works great when paired with Enemy unit mods like rampant, armoured enemies & behemoth enemies

Tweaks
4 months ago
2.0
3.57K
Combat Enemies

b Incorrect distance from origin formula for quality calculation

4 months ago
(updated 4 months ago)

When playing I encountered no high quality nests and worms despite going quite far away from the center of the world. I did have some quality bases closer to spawn, but seemingly less and less of them the further I went.

I was expanding towards north-west, which turned on a light bulb, so I decided to investigate further. Turns out - the formula for calculating enemy positions is incorrect!
In the file contol.lua, on line 131 you wrote the following:

local chunkDistance = math.max(entity.position.x, entity.position.y) / 32

This is incorrect for negative positions (towards west and north for X and Y, respectively). What should be there is probably more akin to

local chunkDistance = math.max(math.abs(entity.position.x), math.abs(entity.position.y)) / 32

4 months ago

i checked the logic you are absolutely correct, what a derp moment i forgot to normalise the values to positive numbers. I am at work currently ( your post was 3am local time ). i will get a fix out today. Thank you

4 months ago

issue is resolved in 1.3.1 release now.

4 months ago

could this also be the cause of seeing legendary and epic bases quite close to your starting location? in my playthroughs, i usually encouter those really high quality bases really soon tbh.

4 months ago

nah, when they expand towards you they will essentially exponentially tier up.

Uncommon nest's spawn uncommon biters
Uncommon biters "lowest" nest they will spawn will be uncommon, so if they expand towards you and roll rare, the next expansion is rare or above etc

4 months ago
(updated 4 months ago)

it means if you push them back they expand back higher tier then origionally, it gives you a cost to pay for clearing them out of pollution without taking the land. You gotta make the trade off decision if you deal with constant attacks, push them back and take the land, or push them back for a break and accept they will come back "more entrenched"

I could change the way the math works to make it always roll from base so they are always consistent or make a toggle option for that. But many players have said they like the way it is, so idk.

4 months ago

I checked after the crash issue was resolved and I can confirm, there are quality enemies in all directions now :)

4 months ago

cool awesome, thanks

New response