英白拉多:罗马
ParaWikis
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
帮助
译名手册
字词转换
编辑指南
编辑规范
练手沙盒
资助我们
资助我们
×
欢迎访问英白拉多:罗马百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Damage formula”的源代码
←
Damage formula
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Version|1.4}} This page provides highly detailed information about the game. If you are looking to learn more about combat it's recommended to check [[Land_warfare|land warfare]] first. The damage formula is used to calculate strength and morale losses when a source unit attacks a target unit. Units attack up to one target every day. No other losses are applied. Both land and naval combat use the same damage formula. Most of the damage formula and combat modifiers are shown in tooltips but some information requires manual verification. == Damage formula == * Base damage: Affected by dice rolls, [[City#Terrain_types|terrain]] and general [[Attributes#Martial|martial skill]]. * Damage modifiers: Affected by unit's strength, [[Land_units#List_of_unit_types|unit types]], [[Military_traditions|traditions]], [[Technology|technology]], [[Trade_goods|trade]], [[Land_warfare#Combat_tactics|tactics]], etc. * Morale damage modifiers: Affected by unit's current morale and [[Land_units#List_of_unit_types|unit types]]. * Strength damage modifiers: Affected by [[Land_units#List_of_unit_types|unit types]] and [[Land_warfare#Combat_tactics|tactics]]. ==== Base damage ==== {{SVersion|1.4}} The first step is to calculate the base damage for all units in the army. * Dice roll: Random value between '''1''' and '''6''' is rolled every 5 days for each side. * Terrain penalty: [[Terrain_types|Terrain]] causes up to {{red|-4}} penalty for the attacker. * General bonus: The side with a better general gets a bonus ([[Attributes#Martial|Martial skill]] difference / 2). general_bonus = max(0, (source_martial - target_martial) / 2) base_damage = min(0.36, 0.096 + 0.024 * (dice_roll - terrain_penalty + general_bonus)) Without any modifiers, the base damage is from 0.12 to 0.24. This means the best roll of 6 causes units to deal double damage when compared to the worst roll of 1. Every general bonus increases the base damage (and total damage) by 10%-20% depending on the roll. A good general is a great way to mitigate a bad roll because lower rolls see a bigger benefit. Similarly the terrain penalty lowers the base damage (and total damage) by 10%-20% depending on the roll. However a damage reduction has a bigger impact than a damage increase. For example -4 penalty on a roll of 1 means units will do only 20% of their normal damage. === Total damage === {{SVersion|1.4}} The second step is to calculate total damage for each unit. Base damage is multiplied by modifiers from both source and target units. {| class="mildtable sortable" |- ! Modifier !! Type !! Description !! Multiplier |- | Strength || Source cohort || Weakened cohorts deal less damage. || {{red|0.0}} - {{black|1.0}} |- | Discipline || Source type & source global || Loyalty gives discipline. Main sources are military traditions, technology and trade. || {{black|1.0}} - {{green|2.0}} |- | Loyalty || Source cohort || Personal loyalty increases damage done. On tooltips this is shown as discipline. || {{black|1.0}} - {{green|1.1}} |- | Terrain || Source type || Only applies when fighting in a specific terrain. Main source is military traditions. || {{black|1.0}} - {{green|1.33}} |- | Versus || Source type & target type || Unit types may get a damage bonus or penalty against other unit types. || {{red|0.5}} - {{green|1.5}} |- | Offense vs. Defense || Source type & target type || Offense is directly reduced by defense. Main source is military traditions. || {{red|0.75}} - {{green|1.25}} |- | Damage done || Source global || Naval only. Main sources are military traditions, technology and trade. || {{red|0.9}} - {{green|1.5}} |- | Damage taken || Target global || Naval only. Main sources are military traditions, technology and trade. || {{red|0.65}} - {{green|1.15}} |- | Tactics || Source tactic & target tactic || Damage bonus when countering a tactic. Damage penalty when getting countered. || {{red|0.9}} - {{green|1.25}} |- | Experience || Target unit || Experienced units take less damage. || {{red|0.625}} - {{black|1.0}} |} offense_vs_defense = 1.0 + offense_bonus - defense_bonus tactics = countering ? (1.0 + tactic_damage * tactic_effectiveness) : (countered ? 0.9 : 1.0) loyalty = is_loyal ? 1.1 : 1.0 experience = 1.0 - 0.3 * experience_percent * (morale_damage_taken + strength_damage_taken) / 2.0 total_damage = base_damage * strength * discipline * loyalty * terrain * versus * offense_vs_defense * tactics * experience * damage_done * damage_taken === Strength damage === {{SVersion|1.4}} The third step is to calculate strength losses from the total damage. {| class="mildtable sortable" |- ! Modifier ! Type ! Description ! Multiplier |- | Strength damage done || Source type || Naval only. For heavier ships. || {{black|1.0}} - {{green|1.4}} |- | Strength damage taken || Target type || For heavier units and ships. || {{red|0.5}} - {{black|1.0}} |- | Tactics || Source tactic & target tactic || Some tactics increase casualties || {{red|0.5}} - {{green|1.2}} |- | Daily multiplier || Global || Constant multiplier to scale losses. || {{red|0.2}} for land, {{red|0.5}} for naval |} strength_damage = total_damage * strength_damage_done * strength_damage_taken * tactics * daily_multiplier manpower_damage = strength_damage * 1000 === Morale damage === {{SVersion|1.4}} The fourth step is to calculate morale losses from the total damage. {| class="mildtable sortable" |- ! Modifier ! Type ! Description ! Multiplier |- | Morale || Source unit || Morale directly affects damage. || {{red|0.0}} - {{green|4.0}} |- | Morale damage done || Source type || Naval only. For lighter ships. || {{black|1.0}} - {{green|1.15}} |- | Morale damage taken || Target type || For infantry and most ships. || {{red|0.7}} - {{green|1.25}} |- | Daily multiplier || Global || Constant multiplier to scale losses. || {{green|1.5}} for land, {{green|2.0}} for naval |- | Base multiplier || Global || Constant multiplier to scale losses. || {{red|0.5}} |} morale_damage = total_damage * morale * morale_damage_done * morale_damage_taken * daily_multiplier * base_multiplier In most combat situations, the morale runs out much faster than the strength. This is because the daily multiplier is much higher for morale. Fighting with high morale units is the best way to win fights quickly. Units with a low morale still deal full strength damage. == Example tooltip (Land) == {{SVersion|1.3}} [[File:Example-land-combat-tooltip.png|400px|thumb|right|Example tooltip for land combat]] Example of a tooltip from land combat. The tooltip is split to 5 sections. Overall the information of the tooltip can be confusing because it shows information for both current round and the previous round. ==== Unit information ==== * Unit type: Psiloi, Greek name for Archers. * Unit name: Polyrrinia's 1st Chiliostys. * Unit strength: 985 men (0.985 strength) * Unit morale: 3.05 ==== Inflicted losses ==== * Target: The previously attacked unit was Kydonia's 1st Chiliostys. In most cases this shows which unit was attacked last round. But it may also show older info if no target have been within range. * Caused losses: Amount of losses that would be done this round to the previously attacked [[cohort]]. The actual target may be different which would result in different amount of losses. ==== Base damage ==== * Roll: Dice roll was 6 on the previous round. This may change which affects inflicted losses. * Terrain & Leader Modifiers: +3 bonus to roll because of good general. This may change if a better general joins the battle. * Base Damage: 0.26 base damage on the previous round (0.08 + 0.02 * 9, values from patch 1.2). ==== Damage modifiers ==== * Discipline: Total discipline gives a 14% damage bonus. * Hills Bonus: Unit has a 15% damage bonus when fighting in hills. * Vs Light Infantry: Unit has a 25% damage bonus against Light Infantry. * Bottleneck vs Shock Action: Bottleneck tactic counters Shock Action which gives a 10% damage bonus (20% * 50% efficiency). * Archers Offense vs Light Infantry Defense: Light Infantry has 10% more defense than Archers have offense which results in a 10% damage penalty. * Kydonia's 1st Chiliostys Experience: Experience of the target gives a 2.26% damage penalty. ==== Strength and morale damage ==== * Damage from 985 Men: Currently always shows 0. * damaged from Tactics: Shock Action gives a 10% strength damage bonus for both sides. ([[Land_warfare#Combat_Tactics]]) * Daily Multiplier: Constant multiplier for strength damage. * Kydonia's 1st Chiliostys: Target doesn't take increased or reduced strength damage. * Morale: 3.05 morale gives a 1.525 morale damage multiplier for the next round (0.5 base multiplier is applied here). Slightly different value on the tooltip means that the unit actually has 3.0556 morale. The tooltip also shows a wrong value (should be +52.78%). * Daily Multiplier: Constant multiplier for morale damage. * Kydonia's 1st Chiliostys: Target takes 25% less morale damage. == Example tooltip (naval) == {{SVersion|1.4}} [[File:Example-naval-combat-tooltip.png|400px|thumb|right|Example tooltip for naval combat]] Example of a tooltip from naval combat. Most of the information is same as with the land combat. Some differences exist: * Unit strength is shown as a percentage instead of as a manpower. * Naval damage done and naval damage taken are shown instead of discipline. However discipline still applies to naval combat. * Daily multipliers show wrong values from land combat. * Strength damage done is not shown but still applies to naval combat. == Examples == {{SVersion|1.4}} All calculations use 5 precision with extra decimals dropped. For example 0.123456 becomes 0.12345. === Example: No modifiers === '''Source unit''' * 100% strength, 3.00 morale '''With roll 1''' Base damage = 0.096 + 0.024 = 0.12 Total damage = 0.12 (Base damage) Strength damage = 0.12 (total damage) * 0.2 (daily multiplier) = 0.024 = 24 manpower Morale damage = 0.12 (total damage) * 3.0 (morale) * 1.5 (daily multiplier) / 2.0 = 0.27 '''With roll 6''' Base damage = 0.096 + 0.024 * 6 = 0.24 Total damage = 0.24 Strength damage = 0.048 = 48 manpower Morale damage = 0.54 '''Conclusion''' * Units lose ~36 manpower and ~0.4 morale on the first day if there are no modifiers. === Example: Land combat (example tooltip) === '''Source unit''' * General skill 6, Roll 6 * Bottleneck tactic (50% efficiency) * Archer, 98.5% strength, 3.0556 morale * +14% discipline (4% from Strategos, 10% from Military tradition) * +15% hill bonus * +25% versus bonus against Light Infantry '''Target unit''' * General skill 0 * Shock Action tactic (+10% casualties) * Light Infantry, 100% strength, 1.08 morale * +10% defense * -25% morale damage taken * 8.61% experience '''Inflicted losses''' Base damage = 0.26 (value from patch 1.2) Tactics = 1.1 Experience = 0.02260 Total damage = 0.26 (base damage) * 0.985 (strength) * 1.14 (discipline) * 1.15 (terrain) * 1.25 (versus) * 1.1 (tactics) * 0.9 (offense vs. defense) * 0.97740 (experience) = 0.40609 Strength damage = 0.40609 (total damage) * 1.1 (tactics) * 0.2 (daily multiplier) = 0.08933 Morale damage = 0.40609 (total damage) * 3.0556 (morale) * 1.5 (daily multiplier) * 0.75 (morale damage taken) * 0.5 (base multiplier) = 0.69797 '''Conclusion''' * The tooltip shows that next round should kill 89 manpower and inflict 0.69 morale damage. * These match the calculated values 0.08933 and 0.69797 as they are rounded down on the tooltip. * Actual result may be off by one because partial damage carries over from previous rounds. === Example: Naval combat (example tooltip) === '''Source unit''' * General skill 4, Roll 2 * Frontal Assault tactic * Mega-Polyreme, 91% strength, 2.49 morale * +3.5% discipline (Strategos) * -10% damage done (Boarding Tactics) * +40% strength damage done '''Target unit''' * General skill 8 * Close Ranks tactic * Mega-Polyreme, 100% strength, 3.00 morale * -50% strength damage taken * -30% morale damage taken * +10% damage taken (Ramming Tactics) '''Inflicted losses''' Base damage = 0.08 + 0.02 * 2 = 0.12 (value from patch 1.2) Tactics = 0.9 (countered) Total damage = 0.12 (base damage) * 0.91 (strength) * 1.035 (discipline) * 0.9 (damage done) * 0.9 (damage done) * 0.9 (tactics) = 0.08239 (damage done is applied twice and damage taken is ignored in patch 1.2) Strength damage = 0.08239 (total damage) * 1.4 (strength damage done) * 0.5 (strength damage taken) * 0.5 (daily multiplier) = 0.02883 Morale damage = 0.08239 (total damage) * 2.49 (morale) * 2.0 (daily multiplier) * 0.7 (morale damage taken) * 0.5 (base multiplier) = 0.14360 '''Conclusion''' * The tooltip shows that next round should damage 2% strength and inflict 0.14 morale damage. * These match the calculated values 0.02883 and 0.14360 as they are rounded down on the tooltip. * Actual result may be off by one because partial damage carries over from previous rounds. {{MechanicsNavbox}} [[Category:Military]]
本页使用的模板:
Template:Ambox
(
查看源代码
)
Template:Ambox/core
(
查看源代码
)
Template:Black
(
查看源代码
)
Template:Clear
(
查看源代码
)
Template:Green
(
查看源代码
)
Template:MechanicsNavbox
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:Navboxgroup
(
查看源代码
)
Template:Red
(
查看源代码
)
Template:SVersion
(
查看源代码
)
Template:Version
(
查看源代码
)
Template:白字
(
查看源代码
)
返回
Damage formula
。
×
登录
密码
记住登录
加入英白拉多:罗马百科
忘记密码?
其他方式登录