add player rating to the db
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
mm = Rails.application.config.x.matchmaking = ActiveSupport::OrderedOptions.new
|
||||
|
||||
mm.game_server_url = ENV.fetch("GAME_SERVER_URL", "ws://localhost:8080")
|
||||
mm.default_rating = ENV.fetch("MATCHMAKING_DEFAULT_RATING", 1000).to_i
|
||||
# Players' initial rating lives in the DB (users.rating, default 100),
|
||||
# so no default rating is configured here.
|
||||
|
||||
# How long a found match (and its game token) stays valid, in seconds.
|
||||
mm.match_ttl = ENV.fetch("MATCHMAKING_MATCH_TTL", 120).to_i
|
||||
|
||||
Reference in New Issue
Block a user