Thread:FixSRwiki/@comment-46261745-20201002230402/@comment-46261745-20201011123255

Did a quick read of 合戦／回復計算, the formula should be this:

Healing =  min(HealCap, INT*6 * (intBuff+100)/100 * attacker troop count/100 * skill damage effectiveness)

You're right, there does not appear to be any battlefield effect factored in.

The only weird part of this is the HealCap, which uses a variable I have not come across before...

▲最大治療数 = gs[ii][iic2].兵数合戦 - gs[ii][iic2].兵数;

I'm not sure what 兵数合戦 (in-battle troops??) is or why they are setting the cap as that minus the actual troop count... Ideas? Troops already have their troops and maxtroops 兵数 and 兵数最大 so it appears weird to me that there's another troop attribute.

It does not appear to get used in the damage cap, but I did find this attribute used when infect is afflicted on it.

Infect:

gs[ii][iic2].兵数最大 -= aa1;

gs[ii][iic2].兵数合戦 -= aa1

So a bit more research is showing that the stat seems to be initialized at the start of battle in ＧＳ初期化／合戦部分, and is set to the max troop count.

Still, this doesn't make any sense... the 兵数合戦 - 兵数 would mean that their damage cap is the number of troops they've lost this battle, and I know that that's not true... so no idea what this is doing...