1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! Represents the statistical profile of a single round of combat in Fire
//! Emblem: the hit, crit, doubling, etc. Think of this as the information in
//! the combat preview.
//!
//! This doesn't attempt to capture the full complexity of all combat: skill
//! activations, status afflictions, etc. Instead, the goal is to approximate
//! what the games themselves show in a preview: purely hit, crit, and damage,
//! as opposed to any other effects. A different system is used for this full
//! complexity, but the extra boilerplate makes it unwieldy for simple
//! calculations.
use crateRNSystem;
/// Describes how many times the attacker/defender will strike. There are two
/// kinds of doubling: repeated attacks, that occur when the striker outspeeds
/// their target by a game-dependent amount, and continued attacks, which are
/// immediate second attacks that occur from things like weapon effects, combat
/// arts, and skill activations. These can stack, so a unit can attack 4 times
/// if they outspeed their target and are using a brave weapon, for example. For
/// ease of reference, continued attacks are called "brave" after the name of
/// the weapon type that most commonly produces them.
/// The statistics for a single strike in a round of combat.