Documentation
¶
Index ¶
- type ActionUsage
- type Actions
- type ArmorClass
- type Attack
- type AttackDamage
- type Client
- type Damage
- type DamageType
- type Dc
- type DcType
- type LegendaryActions
- type Monster
- type MonsterSearchResp
- type MonsterSearchResult
- type Proficiencies
- type Proficiency
- type Senses
- type SpecialAbilities
- type Speed
- type SubActions
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionUsage ¶
type Actions ¶
type Actions struct {
Name string `json:"name"`
MultiattackType string `json:"multiattack_type,omitempty"`
Desc string `json:"desc"`
Actions []Actions `json:"actions"`
AttackBonus int `json:"attack_bonus,omitempty"`
Damage []Damage `json:"damage,omitempty"`
Dc Dc `json:"dc,omitempty"`
Usage Usage `json:"usage,omitempty"`
}
type ArmorClass ¶
type Attack ¶
I don't entirely think this section should be here? It seems slightly out of place to me. TODO: Move to a more logical place in the codebase.
type AttackDamage ¶
func UseRandomAttack ¶
func UseRandomAttack(attacks []*Attack) *AttackDamage
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAllMonsters ¶
func (c *Client) GetAllMonsters() ([]MonsterSearchResult, error)
type Damage ¶
type Damage struct {
DamageType DamageType `json:"damage_type"`
DamageDice string `json:"damage_dice"`
}
type DamageType ¶
type LegendaryActions ¶
type Monster ¶
type Monster struct {
Index string `json:"index"`
Name string `json:"name"`
Size string `json:"size"`
Type string `json:"type"`
Alignment string `json:"alignment"`
ArmorClass []ArmorClass `json:"armor_class"`
HitPoints int `json:"hit_points"`
HitDice string `json:"hit_dice"`
HitPointsRoll string `json:"hit_points_roll"`
Speed Speed `json:"speed"`
Strength int `json:"strength"`
Dexterity int `json:"dexterity"`
Constitution int `json:"constitution"`
Intelligence int `json:"intelligence"`
Wisdom int `json:"wisdom"`
Charisma int `json:"charisma"`
Proficiencies []Proficiencies `json:"proficiencies"`
DamageVulnerabilities []string `json:"damage_vulnerabilities"`
DamageResistances []string `json:"damage_resistances"`
DamageImmunities []string `json:"damage_immunities"`
Senses Senses `json:"senses"`
Languages string `json:"languages"`
ChallengeRating float32 `json:"challenge_rating"`
ProficiencyBonus int `json:"proficiency_bonus"`
Xp int `json:"xp"`
SpecialAbilities []SpecialAbilities `json:"special_abilities"`
Actions []Actions `json:"actions"`
LegendaryActions []LegendaryActions `json:"legendary_actions"`
URL string `json:"url"`
}
func (*Monster) ParseAttacks ¶
type MonsterSearchResp ¶
type MonsterSearchResp struct {
Count int `json:"count"`
Results []MonsterSearchResult `json:"results"`
}
type MonsterSearchResult ¶
type Proficiencies ¶
type Proficiencies struct {
Value int `json:"value"`
Proficiency Proficiency `json:"proficiency"`
}
type Proficiency ¶
type SpecialAbilities ¶
type SubActions ¶
Click to show internal directories.
Click to hide internal directories.