Skip to content

Commit

Permalink
Added ladder bit, the parser will now recognize if a character is lad…
Browse files Browse the repository at this point in the history
…der or not.
  • Loading branch information
nokka committed Oct 6, 2017
1 parent c8f86bc commit 423d000
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions status.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type readableStatus struct {
Expansion bool `json:"expansion"`
Died bool `json:"died"`
Hardcore bool `json:"hardcore"`
Ladder bool `json:"ladder"`
}

// Readable will return a readable format for the status byte.
Expand All @@ -15,5 +16,6 @@ func (s status) Readable() readableStatus {
Expansion: ((s >> 5) & 1) > 0,
Died: ((s >> 3) & 1) > 0,
Hardcore: ((s >> 2) & 1) > 0,
Ladder: ((s >> 6) & 1) > 0,
}
}

0 comments on commit 423d000

Please sign in to comment.