dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
773 stars 76 forks source link

Tentacles don't defect #3575

Open elemanzer opened 2 weeks ago

elemanzer commented 2 weeks ago

https://github.com/user-attachments/assets/b8322b8e-d36b-4e6d-8251-4bd190307962

It should take 1 payday without a treasure room to get all 5 tents here but this is payday # 6 without a treasure room. Instead of defecting, the tentacles unmake their lairs and become instantly happy again.

I suspect what's happening here is that due to the lack of a portal, the tents are stuck in an endless loop of leaving and reentering the same dungeon with happiness being reset. What should happen is that they must stay angry (unless paid) and if they reach the point where they unmake their lairs, they should also join the enemy.

elemanzer commented 2 weeks ago

I tried a few different things and found that if you lead the tentacles out of their lair just before payday hits and they max out anger, you can get all 5 of them to defect. The problem is that tentacles tend to defect from within the lair and once they immediately make another lair, they no longer attempt to join enemy dungeon.