Skip to content

Commit

Permalink
nerf money
Browse files Browse the repository at this point in the history
  • Loading branch information
tivvit committed Oct 10, 2023
1 parent f160ac0 commit 36c1beb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docker-compose.viz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3.8"

services:
traefik:
image: nginx:latest
restart: always
volumes:
- .:/data:rw
ports:
- "80:80"
2 changes: 1 addition & 1 deletion server/dungeonsandtrolls/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ func (g *Game) GetPlayerByKey(apiKey string) (*gameobject.Player, error) {
}

func (g *Game) GetMoney() int32 {
return int32(math.Pow(float64(g.Score)*0.03, 0.75) + float64(420))
return int32(math.Pow(float64(g.Score)*0.001, 0.75) + float64(420))
}

func (g *Game) SpawnPlayer(p *gameobject.Player, level int32) {
Expand Down
2 changes: 1 addition & 1 deletion server/dungeonsandtrolls/handlers/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func RegisterUser(game *dungeonsandtrolls.Game, user *api.User) (*api.Registrati
r := &api.Registration{
ApiKey: &apiKey,
}
game.AddPlayer(gameobject.CreatePlayer(user.Username), r)
game.AddPlayer(gameobject.CreatePlayer(userHandle), r)
r.ApiKey = nil
return r, nil
}

0 comments on commit 36c1beb

Please sign in to comment.