'Standard' formula is just %calcs
Without rams let say a nuke has '7000axe 2000lc 1000ma' just to make calcing easier.
Defender has 6000sp 6000sw 6000ar but he has a level 20 wall (107% bonus)
Luck: 0%
axes have a power of 40: 7000x40=280.000
lc has a power of 130: 2000x130=260.000
ma has a power of 120: 1000x120=120.000
total force: 660.000
axes take 42% of total, lc 39%, ma 19%
Defender uses these % to calculate 'matchups'
42% of his troops (both spear, sword, arch) defend against the axes
39% defend against the lc
19% defend against the MA
that makes;
7k axes vs 2520 spear/sword/archers
2k lc vs 2340 spear/sword/archers
1000ma vs 1140 spear/sword/archers
+ 107% bonus (wall)
With rams, formulas are a bit more in depth..
# of rams needed to treat the wall as if it were a lower level:
Rams needed to lower the level for calculating defense = (2*1.09^(wall lvl) + 4*1.09^(wall lvl)*((levels lowered) - 1) + 0.5) * ((strength of level 1 ram)/(strength of a ram, at the level of the sending village))
# of levels lowered
Levels lowered = (((number of rams)*((strength of a ram, at the level of the sending village)/(strength of level 1 ram))( –0.5 - 2*1.09^(wall lvl))/(4*1.09^(wall lvl)) + 1
Wall bonus
Total defense = (defending troops’ general defense + defending troops’ cavalry defense + defending troops’ defense archer + (20+50*(wall level))*((attacker’s general strength)/(total offensive strength)*[general defense] +(attacker’s cavalry strength)/(total offensive strength)*[cavalry defense] + (attacker’s archer strength)/(total offensive strength)*[archer defense])) * (1.037^(wall level))
The level of the wall after the battle is calculated like this;
If you win the battle:
Levels downgraded = (((rams remaining after losses)+ 1 - (rams lost/ 2)) * ((strength of a ram, at the level of the sending village)/(strength of level 1 ram)) - 1*1.09^(wall lvl))/(2*1.09^(wall lvl)) + 1
If you lose the battle, the number of rams used = the amount of rams you started with * (defender’s defense lost)/(defender’s original defense)
number of rams = (2*(1.09)^(wall lvl) + 4*1.09^(wall lvl)*(levels downgraded – 1)) * ((strength of level 1 ram)/(strength of a ram, at the level of the sending village))