1. How does it work? What's the detection formula?
2. How does it interact with Hunted!? (the debuff from Madness)
Explain Stealth to me
Moderator: Moderator
Re: Explain Stealth to me
Stealth lets your first hit on enemies be an automatic critical and gives you a pretty large amount of critical multiplier for a few turns afterwards. It gives you a pretty good damage boost, especially on the bursty classes that it tends to be paired with. Stealth doesn't help you hide from things consistently even on Normal difficulty and would be especially useless in that regard on Madness, even disregarding Hunted.
Re: Explain Stealth to me
Thanks, but I'm asking about the underlying formula. I know it'll probably be worthless, but I want to find out out exactly how worthless it is.
Re: Explain Stealth to me
I glanced at the code a bit ago but couldn't fully figure it out as it didn't seem to work in practice as how I read it. What it seems to do at some points do a checkHitOld between stealth power and the detection power. checkHitOld is a logarithmic function, not the simple linear power check formula of checkHit, so there will always be at least some chance of detection regardless of relative powers as long as the scaled detection power is above 0.
If the stealth check fails then the enemy will catch sight of you and know precisely where you are for at least a turn, not sure exactly how long. If detection fails but has been woken up it'll start trying to guess where you are, and target a square in your vicinity. That seems to work like an enemy losing track of you in general, and they can fire projectiles and beams at empty squares or even allies.
When you attack out of stealth with something that hits immediately (not a projectile, that'll break stealth before it hits) it does a stealth check immediately, and if the detection fails you get the automatic critical from shadowstrike. There are also some unseen attacks bonuses you get regardless of the talent too, which I didn't see documented anywhere, and I'm guessing you get those on blinded enemies too.
Edit: looking again, it seems spells and mind abilities will auto crit from stealth, while only physical attacks do the stealth check right before the attack and break on detection.
Edit 2: the distance modifier I first put in is for activating the stealth talent proper in the tree, it's easier to activate stealth in the first place if stuff is farther away.
If the stealth check fails then the enemy will catch sight of you and know precisely where you are for at least a turn, not sure exactly how long. If detection fails but has been woken up it'll start trying to guess where you are, and target a square in your vicinity. That seems to work like an enemy losing track of you in general, and they can fire projectiles and beams at empty squares or even allies.
When you attack out of stealth with something that hits immediately (not a projectile, that'll break stealth before it hits) it does a stealth check immediately, and if the detection fails you get the automatic critical from shadowstrike. There are also some unseen attacks bonuses you get regardless of the talent too, which I didn't see documented anywhere, and I'm guessing you get those on blinded enemies too.
Edit: looking again, it seems spells and mind abilities will auto crit from stealth, while only physical attacks do the stealth check right before the attack and break on detection.
Edit 2: the distance modifier I first put in is for activating the stealth talent proper in the tree, it's easier to activate stealth in the first place if stuff is farther away.
Last edited by Aesthete on Wed Mar 14, 2018 7:37 am, edited 1 time in total.
Re: Explain Stealth to me
Even if it doesn't let you get all the way up to an enemy for the free critical, it still works at reducing the chance of enemies sniping you.
My feedback meter decays into coding. Give me feedback and I make mods.