Difference between revisions of "Combat System"

From Binary-Tools Wiki
Jump to navigation Jump to search
(Marked this version for translation)
Line 21: Line 21:
 
| 1 || Take the unit's base attack strength. ||  || Clubswingers: 40 ||  
 
| 1 || Take the unit's base attack strength. ||  || Clubswingers: 40 ||  
 
|-
 
|-
| 2 || Apply the upgrades of the smithy for each unit. || <math>\text{leveled strength} = \text{base strength} + (\text{base strength} + \text{crop consumption} \cdot \frac{300}{7}) \cdot (1.007^\text{unit level in smithy} - 1)</math> ||  
+
| 2 || Apply the upgrades of the smithy for each unit. || <math>\text{leveled strength} = \text{base strength} + (\text{base strength} + \text{supply} \cdot \frac{300}{7}) \cdot (1.007^\text{unit level in smithy} - 1)</math> ||  
 
|  
 
|  
* Crop consumption refers to the base crop consumption before any modifiers like horse drinking trough, WW-village buff or {{SwitchVersion|legends=artefacts}}.
+
* Supply refers to the base crop consumption before any modifiers like horse drinking trough, WW-village buff or {{SwitchVersion|legends=artefacts}}.
 
* The smithy level of the home village of the unit is used.
 
* The smithy level of the home village of the unit is used.
 
|-
 
|-
Line 30: Line 30:
 
* The weapon must be equipped and the hero must attack with the units to apply the bonus.
 
* The weapon must be equipped and the hero must attack with the units to apply the bonus.
 
|-
 
|-
| 4 || Sum up the strength of all attacking troops in this attack. || || ||
+
| 4 || Apply the hero's attack bonus. || <math>\text{new value} = \text{old value} \cdot (1 + \frac{\text{points in off bonus}}{100} \cdot 20%)</math> ||
 +
|
 +
* The hero must participate in the fight for the bonus to apply.
 
|-
 
|-
| 5 || Apply the hero's attack bonus. || <math>\text{new value} = \text{old value} \cdot (1 + \frac{points in off bonus}\frac{100} \cdot 20%</math> || ||
+
| 5 || Apply the brewery bonus, if applicable. || <math>\text{new value} = \text{old value} \cdot (1 + \text{Brewery level}%)</math> ||
|-
 
| 6 || Apply the brewery bonus, if applicable. || <math>\text{new value} = \text{old value} \cdot (1 + \text{Brewery level}%)</math> ||
 
 
|  
 
|  
 
* This applies only for teutons
 
* This applies only for teutons
Line 40: Line 40:
 
* This explicitly applies, if the hammer is not built in the capital, aswell.
 
* This explicitly applies, if the hammer is not built in the capital, aswell.
 
|-  
 
|-  
| 7 || {{SwitchVersion|kingdoms=Apply the siege bonus.}} || <math>\text{new value} = \text{old value} \cdot 1.33</math> ||
+
| 6 || {{SwitchVersion|kingdoms=Apply the siege bonus.}} || <math>\text{new value} = \text{old value} \cdot 1.33</math> ||
 
|
 
|
 
* Only applies, if the attack is sent as siege.
 
* Only applies, if the attack is sent as siege.
 +
|-
 +
| 7 || Sum up the strength of all attacking troops in this attack. ||  ||
 +
|
 +
* To get the infantry attack strength, sum up all non-cavalry units (i.e. infantry, rams, catapults, chiefs and settlers).
 +
* To get the cavalry attack strength, sum up all cavalry units.
 +
|}
 +
 +
Calculation for defenders:
 +
 +
{| class="wikitable"
 +
! Step || Description || Formula || Example || Notes
 +
|-
 +
| 1 || Take the unit's base attack strengths. ||  || Phalanx:
 +
40 vs infantry,
 +
50 vs cavalry ||
 +
|-
 +
| 2 || Apply the upgrades of the smithy for each unit. || <math>\text{leveled strength} = \text{base strength} + (\text{base strength} + \text{supply} \cdot \frac{300}{7}) \cdot (1.007^\text{unit level in smithy} - 1)</math> ||
 +
|
 +
* This is calculated once for defense versus infantry, one for defense versus cavalry.
 +
* Supply refers to the base crop consumption before any modifiers like horse drinking trough, WW-village buff or {{SwitchVersion|legends=artefacts}}.
 +
* The smithy level of the home village of the unit is used.
 +
|-
 +
| 3 || Calculate the defense strength. || <math>\text{strength} = \text{defense vs infantry} \cdot \frac{\text{attack infantry strength}}{\text{total attacking power}} + \text{defense vs cavalry} \cdot \frac{\text{attack cavalry strength}}{\text{total attacking power}}</math> ||
 +
|
 +
* The attack infantry/calvalry strength refers to the total attack strength of the attack, that was calculated before.
 +
|-
 +
| 4 || Apply the hero's weapon bonus. || <math>\text{new value} = \text{leveled strength} + \text{weapon bonus}</math> ||
 +
|
 +
* The hero must participate in the fight for the bonus to apply.
 +
* For Travian: Legends, the bonus applies only to the units that have the same home village as the hero.
 +
* For Travian Kingdoms, the highest bonus per unit type is applied to all units. This explicitly can buff foreign troops and a hero can explicity equip the weapon of another tribe and still make use of the bonus. Only one bonus is applied per unit, so multiple weapons have no additional effect.
 +
|-
 +
| 5 || Apply the hero's defense bonus. || <math>\text{new value} = \text{old value} \cdot (1 + \frac{\text{points in def bonus}}{100} \cdot 20%)</math> ||
 +
|
 +
* The hero must participate in the fight for the bonus to apply.
 +
* The bonus applies for all troops of the same account as the hero. This is true for Travian: Legends and Travian Kingdoms.
 +
|-
 +
| 6 || Sum up the strength of all defending units. || || ||
 +
|-
 +
| 7 || Add the hero's fighting strength. || || ||
 +
|-
 +
| 8 || Add the base strength of residence / palace / {{SwitchVersion|legends=command centre}}. || || ||
 +
|-
 +
| 9 || Apply the wall and {{SwitchVersion|kingdoms=water ditch}} bonus. || <math>\text{new value} = \text{old value} \cdot (\text{wall bonus} + \text{water ditch bonus})</math> || ||
 +
|-
 +
| 10 || Add the wall's base strength. || <math>\text{new value} = \text{old value} + \text{wall base strength}</math> || ||
 +
|-
 +
| 11 || Add the base defense. || <math>\text{new value} = \text{old value} + 10</math> || ||
 
|}
 
|}
  

Revision as of 13:07, 27 March 2020



Kingdoms Logo.png Legends Logo.png This article is about a feature, which exists in Travian: Legends as well as Travian Kingdoms. Version specific features are marked with a kingdoms or legends icon.


The combat system in Travian: Legends and Travian Kingdoms is quite complex and the outcome of a single attack depends on many different factors.

Fighting strength calculation

The fighting strength of each unit in a combat depends on several factors and is calculated as follows.

Calculation for attackers:

Step Description Formula Example Notes
1 Take the unit's base attack strength. Clubswingers: 40
2 Apply the upgrades of the smithy for each unit.
  • Supply refers to the base crop consumption before any modifiers like horse drinking trough, WW-village buff or Travian: Legends artefacts.
  • The smithy level of the home village of the unit is used.
3 Apply the hero's weapon bonus.
  • The weapon must be equipped and the hero must attack with the units to apply the bonus.
4 Apply the hero's attack bonus.
  • The hero must participate in the fight for the bonus to apply.
5 Apply the brewery bonus, if applicable.
  • This applies only for teutons
  • This applies only, if the capital of the attacker celebrates a party in the brewery at the time of the attack.
  • This explicitly applies, if the hammer is not built in the capital, aswell.
6 Travian Kingdoms Apply the siege bonus.
  • Only applies, if the attack is sent as siege.
7 Sum up the strength of all attacking troops in this attack.
  • To get the infantry attack strength, sum up all non-cavalry units (i.e. infantry, rams, catapults, chiefs and settlers).
  • To get the cavalry attack strength, sum up all cavalry units.

Calculation for defenders:

Step Description Formula Example Notes
1 Take the unit's base attack strengths. Phalanx:

40 vs infantry, 50 vs cavalry ||

2 Apply the upgrades of the smithy for each unit.
  • This is calculated once for defense versus infantry, one for defense versus cavalry.
  • Supply refers to the base crop consumption before any modifiers like horse drinking trough, WW-village buff or Travian: Legends artefacts.
  • The smithy level of the home village of the unit is used.
3 Calculate the defense strength.
  • The attack infantry/calvalry strength refers to the total attack strength of the attack, that was calculated before.
4 Apply the hero's weapon bonus.
  • The hero must participate in the fight for the bonus to apply.
  • For Travian: Legends, the bonus applies only to the units that have the same home village as the hero.
  • For Travian Kingdoms, the highest bonus per unit type is applied to all units. This explicitly can buff foreign troops and a hero can explicity equip the weapon of another tribe and still make use of the bonus. Only one bonus is applied per unit, so multiple weapons have no additional effect.
5 Apply the hero's defense bonus.
  • The hero must participate in the fight for the bonus to apply.
  • The bonus applies for all troops of the same account as the hero. This is true for Travian: Legends and Travian Kingdoms.
6 Sum up the strength of all defending units.
7 Add the hero's fighting strength.
8 Add the base strength of residence / palace / Travian: Legends command centre.
9 Apply the wall and Travian Kingdoms water ditch bonus.
10 Add the wall's base strength.
11 Add the base defense.
  1. Take the unit's base strength.
    • For the attacking troops, this is the raw attack strength, e.g. a clubswinger has a base strength of 40.
    • For the defending troops, this is two values, the defense versus infantry and the defense versus cavalry. A phalanx has the values 40 versus infantry and 50 versus cavalry.
  2. Apply the formula for smithy upgrades of the unit:

    Crop consumption refers to the base crop consumption before any buffs (e.g. horse drinking trough, WW-village buff, Travian: Legends artefacts)
  3. For the defending troops, the two values for the leveled strength are used to calculate the strength as follows:
    Attacking power refers to the total attack power of the attacker, including all boni. Rams, catapults, chiefs and settlers count as infantry. The attacker's hero counts as cavalry, if he equipped a horse, or as infantry otherwise.
  4. Then, the hero's weapon bonus is applied.
    • The attacker profits normally from his weapon in both versions.
    • For the defender, Travian: Legends the hero weapon buffs all units of the same home village as the hero, if he participates in the fight / Travian Kingdoms The strongest hero weapon per troop type in the defending village buffs all units of that troop type, no matter where they come from.
  5. Lastly, the hero's percentage attack/defense bonus is applied. In both versions, all units of the hero's account benefit from the skillpoints, if the hero participates in the fight.

After that, the strength of all attacking and defending units are added together for the total attack strength and total defense strength respectively.

Now, the hero's fighting strength, and the fighting strength of the residence, palace or Travian: Legends command central is added:

  • A residence, palace or Travian: Legends command central grants fighting strength to the defender.

Then, the "global" modifiers are applied.

Attack strength modifiers:

  1. Brewery bonus, if a brewery party is being held at the time of the impact of the attack: +1% per brewery level.
  2. Travian Kingdoms Siege bonus, if it is a siege: +33%
  3. Morale malus, if the attacker is larger than the defender (based on population): , capped at 0% and -33.34%. (Yes, this reduces the attack strength by up to 33.34% when attacking a sufficiently small account).

Defense strength modifiers:

  1. Travian: Legends Defense bonus from wall / Travian Kingdoms Sum of defense bonus from wall and water ditch (for instance, the roman city wall level 20 plus a water ditch level 20 grant a total bonus of 111%).

Lastly, the defender gets a flat defense bonus and some flat fighting strength from the wall:

  • The defender gets an additional 10 fighting strength conditionlessly.
  • The wall's base fighting strength is added.

Overview: Order of execution

During a single attack or Travian Kingdoms siege, but not during scout attacks and raids, a lot of things happen. Some of those influence each other, so the order of execution is important to understand. In every attack and Travian Kingdoms siege, the following will happen:

  1. Rams attack the wall and demolish it to some intermediate level, which will be used later. The intermediate level is never shown in the report or explicitly visible anywhere.
  2. Troops fight each other until one side is completely dead.
  3. Rams attack once again and demolish the wall to its final level, which will be visible in the report.
  4. Catapults shoot.
  5. Chiefs lower loyalty.