Difference between revisions of "Combat System"

From Binary-Tools Wiki
Jump to navigation Jump to search
(Marked this version for translation)
Line 10: Line 10:
  
 
<!--T:4-->
 
<!--T:4-->
The fighting strength of each unit depends on several factors and is calculated as follows:
+
The fighting strength of each unit in a combat depends on several factors and is calculated as follows.
 +
 
 +
Calculation for attackers:
 +
 
 +
{| class="wikitable"
 +
! 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. || <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> ||
 +
|
 +
* Crop consumption 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 || Apply the hero's weapon bonus. || <math>\text{new value} = \text{leveled strength} + \text{weapon bonus}</math> ||
 +
|
 +
* 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. ||  ||  ||
 +
|-
 +
| 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> || ||
 +
|-
 +
| 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, 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.
 +
|-
 +
| 7 || {{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.
 +
|}
  
 
<!--T:5-->
 
<!--T:5-->

Revision as of 12:28, 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.
  • Crop consumption 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 Sum up the strength of all attacking troops in this attack.
5 Apply the hero's attack bonus.
6 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.
7 Travian Kingdoms Apply the siege bonus.
  • Only applies, if the attack is sent as siege.
  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.