Skip to content

Commit

Permalink
Fix player rank.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jul 1, 2023
1 parent 8efc797 commit bc8ea47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions game/server/playerdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func (c *Conn) getPlayerInfo() pangya.PlayerInfo {
func (c *Conn) getPlayerStats() pangya.PlayerStats {
return pangya.PlayerStats{
Pang: uint64(c.player.Pang),
Rank: byte(c.player.Rank),
// TODO
}
}
Expand Down
2 changes: 1 addition & 1 deletion pangya/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type PlayerStats struct {
LongestPutt float32
LongestChip float32
TotalXP uint32
Level byte
Rank byte
Pang uint64
TotalScore int32
DifficultyScore [5]uint8
Expand Down

0 comments on commit bc8ea47

Please sign in to comment.