package model

type Encounter struct {
	ID      string `json:"id"`
	POI     string `json:"poi,omitempty"`
	Enemies []Unit `json:"enemies"`
	Boss    bool   `json:"boss,omitempty"`
}

type Threat struct {
	POI       string   `json:"poi,omitempty"`
	Band      string   `json:"band,omitempty"`
	Enemies   []Unit   `json:"enemies"`
	Odds      int      `json:"odds"`
	Wounds    int      `json:"wounds"`
	Falls     int      `json:"falls"`
	Worst     int      `json:"worst"`
	WorstUnit string   `json:"worstUnit,omitempty"`
	Barred    bool     `json:"barred,omitempty"`
	Needs     []string `json:"needs,omitempty"`
	Edge      Edge     `json:"edge"`
}

type Edge struct {
	Hits    []string `json:"hits"`
	Blunted []string `json:"blunted"`
}

type CombatEvent struct {
	Tick    int    `json:"tick"`
	Actor   string `json:"actor"`
	Target  string `json:"target"`
	Ability string `json:"ability"`
	Kind    string `json:"kind"`
	Type    string `json:"type,omitempty"`
	Amount  int    `json:"amount"`
	Dodged  bool   `json:"dodged,omitempty"`
	Crit    bool   `json:"crit,omitempty"`
	Killed  bool   `json:"killed,omitempty"`
	Text    string `json:"text"`
}

type Rewards struct {
	XP    int    `json:"xp"`
	Gold  int    `json:"gold"`
	Items []Item `json:"items"`
}
