-
Notifications
You must be signed in to change notification settings - Fork 2
/
fact.go
33 lines (31 loc) · 1.59 KB
/
fact.go
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
package gw2api
// Fact contains information about a skills/trait effect
type Fact struct {
Text string `json:"text"`
Icon string `json:"icon"`
Type string `json:"type"`
Value interface{} `json:"value"` // Type == AttributeAdjust || Number || Recharge || Unblockable (bool)
Target string `json:"target"` // Type == AttributeAdjust
Status string `json:"status"` // Type == Buff
Description string `json:"description"` // Type == Buff
ApplyCount int `json:"apply_count"` // Type == Buff
Duration int `json:"duration"` // Type == Buff || Duration || Time
FieldType string `json:"field_type"` // Type == ComboField
FinisherType string `json:"finisher_type"` // Type == ComboFinisher
Percent float64 `json:"percent"` // Type == ComboFinisher || Percent
HitCount int `json:"hit_count"` // Type == Damage || Heal
DmgMultiplier int `json:"damage_multiplier"` // Type == Damage
Distance int `json:"distance"` // Type == Distance || Radius
Prefix struct {
Text string `json:"text"`
Icon string `json:"icon"`
Status string `json:"status"`
Description string `json:"description"`
} `json:"prefix"` // Type == PrefixedBuff
}
// FactTraited contains skill effects that are overriding the default skill/trait effects
type FactTraited struct {
*Fact
RequiredTrait int `json:"required_trait"`
Overrides int `json:"overrides"`
}