Page 1 of 1

Merchanics behind splitting enemies

Posted: Sun Aug 24, 2014 4:31 pm
by Chopkinsca
I was wondering how splitting monsters such as oozes work. I couldn't find anything about it in a search.

Re: Merchanics behind splitting enemies

Posted: Mon Aug 25, 2014 1:32 am
by HousePet
What sort of mechanics are you looking for?

Re: Merchanics behind splitting enemies

Posted: Mon Aug 25, 2014 4:31 pm
by Chopkinsca
I mean things like when do they split, how often do they split, how much health do they have when they split, is there a limit to their splitting.

Re: Merchanics behind splitting enemies

Posted: Mon Aug 25, 2014 4:50 pm
by edge2054
The short answer is it varies.

The attribute is called clone_on_hit and it has a few sub attributes, min_dam_pct and chance. When you hit a monster with clone_on_hit its maximum life is checked against the min_dam_pct. It the hit is large enough the chance is rolled. If the roll is successful a clone is created with half of the originals current life (not maximum life) and half of the originals clone_on_hit.chance.

So the clones have a smaller chance of splitting then the original but assuming some kind of healing the original can split forever.

Note that the most notorious cloner in the game is the brittle ooze. 50% chance to split and splits on any damage larger than 1% of its maximum life. By comparison a Gelatinous Cube sits at 30% chance with a 15% threshold.

Re: Merchanics behind splitting enemies

Posted: Mon Aug 25, 2014 8:34 pm
by Chopkinsca
Thanks, that was the answer I was looking for. I also forgot this game is open source, so I can look at the code for any future questions.