It's not that complicated... Question 1: Is it a simple, Advanced, or Expert game? (Even though a Shaman can't acquire Water Magic normally, and Water Magic isn't available in the dwellings at random, a Mage can provide it...) Question 2: Are Trolls buffed or not? Question 3: Underground/Grass/Neutral terrain?
Simple Trolls: Attack 4, level 1-3. Buffed Trolls: Attack 5, level 1-3. Basic Blast deals 3 damage, higher-level Blast deals 4. Gnomes, unbuffed/buffed: Defense 7. Shaman, level 1: Attack 2, -10% bonus to Troll attack. Shaman, level 3: Attack 4 (as per the condition), 30% bonus to Troll attack. Shaman, level 5: +1 attack bonus.
Let's take a basic Blast, unbuffed Trolls, and neutral terrain. (Actually, for buffed Trolls, it's +1 attack; for underground terrain, it's another +1 attack; for grass terrain, Gnomes get +1 defense).
The calculation is as follows: total damage = damage * quantity * (1 + difference (attack - defense) + bonus).
Calculation: Case 1: Troll attack 7 (4 own + 2 Shaman + 1 Shaman bonus) - Gnome defense 7, so there's no difference. Therefore, the damage is simply (1-3) * quantity * 1.1 (bonus), and empirically, Trolls deal 1.7-2.3 damage per unit.
Therefore, to defeat 600 hit points of 30 Gnomes, you need at least => 1.7 * quantity * 1.1 = 600, so quantity = 321 Trolls. If you calculate the average Troll damage as exactly 2, then you need 600 / 2.2 = 273 Trolls.
Case 2: Green Shaman attack = 9 (4 + 4 + 1), so the damage formula = (1-3) * (1.1 (attack-defense difference) + 0.3 (bonus)) * quantity. Therefore, with a minimum of 1.7 damage per unit, quantity = 600 / 1.4 / 1.7 = 253. For 2 damage, quantity = 600 / 1.4 / 2 = 215.
Case 3: Everything remains the same, the Troll attack doesn't change (the attack bonus is only at level 6, +2), so only the damage changes - it's simply 3. Therefore, quantity = 600 / 1.4 / 3 = 143.
For buffed Shamans, instead of the 1.4 value (1.1 in the first calculation), it will be 1.45. For unbuffed Shamans on their own terrain, it's also 1.45, and for buffed Shamans on their own terrain, it's 1.5. If the Gnomes are on grass, then the calculation becomes more complicated for simple Trolls )) because it will be 1 - 0.025 + bonus, and for buffed Trolls, it's simply 1 + bonus.
It's all very simple...
And you think this is simple? :confused: