DungeonSettlers.wiki

Attack Speed

Steam

Attack speed is how many times a second the sheet says you swing. A skill with the attack-speed flag divides its wind-up, recovery and table cooldown by that number. Percent bonuses multiply the whole stat, so the first points cut more wait than the same amount added later.

Numbers from DS_B.0.4.23.

At a glance

Stat formula(base + Agility x 0.01) x (1 + attack speed percent / 100)
Base0.4 /s
From Agility+0.01 /s each
At default Agility0.5 /s
Common basic swing2 s

Direct answers

How is attack speed calculated?

Attack Speed starts at 0.4. Each point of Agility adds 0.01. Inscriptions, potions and other effects then multiply the whole amount by (1 + their percent / 100).

What does a higher attack speed change?

For a skill whose attack-speed flag is on, wind-up, recovery and table cooldown are each divided by Attack Speed. A basic swing whose table delays add to 1 s then waits 1 / attack speed seconds.

Is this the same as cooldown reduction?

No. Most skills divide table cooldown by (1 + cooldown reduction / 100). Only skills with the attack-speed flag divide by Attack Speed instead. Global cooldown never reads attack speed.

Basic swing

RuleWind-up and recovery divide by attack speed when the skill's attack-speed flag is on.

A basic attack has no table cooldown. The wait is its start delay plus its end delay, after the attack-speed divide. Rows group every basic attack that shares the same table total.

Example: at default Agility with +20% attack speed, a 1 s table swing waits 1.667 s.

Table wind-up + recoveryNo bonus+4%+8%+10%+15%+20%+30%+35%+50%Basic attacks
1 s2 s1.923 s1.852 s1.818 s1.739 s1.667 s1.538 s1.481 s1.333 sBubble Tackle, Tongue Thrust, Basic Sword Attack, Basic Greatsword Attack, Basic Club Attack, Basic Bow Attack, Rapid Fire, Healing Touch, Basic Spear Attack, Twin Thrust, Basic Monster Slash, Basic Monster Blunt, Basic Monster Pierce, Spit, Spore Spit, Attack, Acid Spit, Goblin Attack, Goblin Throw, Chain Hit, Blood Tear, Basic Bow Attack
1.5 s3 s2.885 s2.778 s2.727 s2.609 s2.5 s2.308 s2.222 s2 sBasic Magic Missile, Fire Missile, Attack : Magic Missile
0.4 s0.8 s0.7692 s0.7407 s0.7273 s0.6957 s0.6667 s0.6154 s0.5926 s0.5333 sBasic Attack, Mud Spit
0.6 s1.2 s1.154 s1.111 s1.091 s1.043 s1 s0.9231 s0.8889 s0.8 sBasic Punch Attack
1.2 s2.4 s2.308 s2.222 s2.182 s2.087 s2 s1.846 s1.778 s1.6 sStone Stomp

Diminishing returns

The percent is not one-for-one on the clock. The first points of attack speed cut more wait than the same amount added later.

The graph is leftover wait, as a share of the swing with no percent bonus. With none, you wait the full time. At 100% attack speed you wait half.

Leftover wait50%60%70%80%90%100%020406080100half wait+4%+8%+10%+15%+20%+30%+35%+50%Attack speed percent

On a 1 s table swing at default Agility, the first +20% saves 0.3333 s. The next +20% only saves 0.2381 s.

Agility is slow on this curve: each point is +0.01 /s before percents. Inscriptions jump +4%, +8%, +10%, +15%, +20%, +30%, +35%, +50% in one go.

Agility alone, no percent bonus, on a 1 s table swing. Default Agility is 10.

AgilityAttack speedWait on a 1 s table swingSaved vs default Agility
00.4 /s2.5 s-0.5 s
100.5 /s2 s0 s
200.6 /s1.667 s0.3333 s
300.7 /s1.429 s0.5714 s
400.8 /s1.25 s0.75 s
500.9 /s1.111 s0.8889 s

What raises it

Every effect that writes attack speed is in the table. Attack Speed itself is built from the base and Agility first, then any extra percent modifiers.

On top of those effects, each point of Agility adds +0.01 /s before percents.

SourceAttack speedHow you get it
High-grade Attack Speed Inscription+30%Inscription
Mid-grade Attack Speed Inscription+20%Inscription
Low-grade Attack Speed Inscription+10%Inscription
Snake Catcher+10%Background
Shooter+20%Trait
Arcron Shield-30%Equipment
Bloodwood Shield-30%Equipment
Bone Shield-30%Equipment
Carapace Shield-30%Equipment
Copper Shield-30%Equipment
Fortified Bone Shield-30%Equipment
Wooden Shield-30%Equipment
God Mode+50%No obtainable source in this build.
Initiative+35%No obtainable source in this build. Also in the data: Initiative.
Acceleration+30%Granted by Quick Dash, Piercing Thrust, Stone Raise.
Taking Attack Speed Potion+30%Granted by Attack Speed Potion.
Red Mane (Action)+30%Granted by Rat Swarm.
Perhaps a Trumpet+20%No obtainable source in this build.
Monster Difficulty Devastation+20%No obtainable source in this build.
Monster Difficulty Very Hard+20%No obtainable source in this build.
Art of Fury+15%No obtainable source in this build.
Goddess' Blessing (Attack Speed)+10%No obtainable source in this build.
Combat Momentum+8%Granted by Combat Momentum.
Brace Stance+4%No obtainable source in this build. Also in the data: Brace Stance.

Skills that divide cooldown by attack speed

These skills also divide their table cooldown by Attack Speed. Cooldown reduction does not enter that path. A table cooldown of 0 never reaches that divide. See Cooldowns.

SkillTable cooldown
Run1 s
Goblin Flee10 s
Resurrection10 s
Earth Crash15 s
Goblin Curse15 s
Blood Rain16 s
Under the hoodhow the code does it
  • Attack Speed is the status-table default plus Agility times 0.01, then multiplied by (1 + AttackSpeedPerModifier / 100). The percent apply is the same path physical attack power uses.
  • A skill with the attack-speed flag passes that flag into the delay helper for start delay and end delay. The helper divides the table delay by attack speed.
  • The same flag makes skill cooldown divide by attack speed instead of by (1 + cooldown reduction / 100). A table cooldown of 0 returns 0 immediately.
  • If attack speed is not greater than 0, the delay helper and the cooldown calculator both fall back to dividing by 1.
  • Global cooldown does not read attack speed.

Related: Cooldowns · Combat Formulas · Talents · Equipment Effects.