Thread:TsuchiNoKao/@comment-26544499-20200927173301/@comment-46261745-20201023225110

I'd say the formula has almost nothing in common with troop battles, actually...

The core of the formula is the level gap between the attacker and defender, while it uses different classes (Ｓ職種 instead of 兵種 with different base values) and almost all the skills are different too. It doesn't have troop modifiers or battlefield effect... so I don't think there's a single thing that's constant with troop battles?

It's quite neatly encapsulated in the 2 damage calculation scripts 魔法計算 and 物理計算 where ◆戦闘タイプ == 1, so you can take a look easily enough.