Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: jchv <[email protected]>
  • Loading branch information
JMC47 and jchv authored Jul 3, 2023
1 parent f2326d2 commit 05a41a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions game/server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,10 @@ func (c *Conn) Handle(ctx context.Context) error {
RemainingTurns: 50, // Displays as remaining turns in the box.
UnknownA: -1,
})
// TODO make Pang interaction transactional
// TODO make items show up in inventory
// TODO make sure not to subtract pang if a ticket is used.
// TODO Fix pang able to go negative.
// TODO: make Pang interaction transactional
// TODO: make items show up in inventory
// TODO: make sure not to subtract pang if a ticket is used.
// TODO: Fix pang able to go negative.
c.player.Pang, err = c.s.accountsService.AddPang(ctx, c.player.PlayerID, -10000)
if err != nil {
return err
Expand All @@ -501,9 +501,9 @@ func (c *Conn) Handle(ctx context.Context) error {
packet.CookiesRemaining = uint64(c.player.Points) // Cookies remaining even if the action doesn't cost cookies
c.SendMessage(ctx, packet)
case *gamepacket.ClientBlackPapelPlay:
// TODO make Pang interaction transactional.
// TODO make items show up in inventory.
// TODO make sure not to subtract pang if a ticket is used.
// TODO: make Pang interaction transactional.
// TODO: make items show up in inventory.
// TODO: make sure not to subtract pang if a ticket is used.
c.player.Pang, err = c.s.accountsService.AddPang(ctx, c.player.PlayerID, -500)
if err != nil {
return err
Expand Down

0 comments on commit 05a41a5

Please sign in to comment.