Skip to content

Commit

Permalink
Add uren to playable characters list
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Sanchez committed Nov 12, 2024
1 parent 2a96293 commit e1f89c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/arena_load_test/lib/arena_load_test/socket_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ defmodule ArenaLoadTest.SocketHandler do
# This is enough for now. Will request bots from the bots app in future iterations.
# https://github.com/lambdaclass/mirra_backend/issues/410
defp get_random_active_character() do
["muflus", "h4ck", "uma", "valtimer", "kenzu", "otix", "shinko"]
["muflus", "h4ck", "uma", "valtimer", "kenzu", "otix", "shinko", "uren"]
|> Enum.random()
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ defmodule GameBackend.Matches.ArenaMatchResult do
|> validate_inclusion(:result, ["win", "loss", "abandon"])
## TODO: This enums should actually be read from config
## https://github.com/lambdaclass/mirra_backend/issues/601
|> validate_inclusion(:character, ["h4ck", "muflus", "uma", "valtimer", "kenzu", "otix", "shinko"])
|> validate_inclusion(:killed_by, ["h4ck", "muflus", "uma", "valtimer", "kenzu", "otix", "shinko", "zone"])
|> validate_inclusion(:character, ["h4ck", "muflus", "uma", "valtimer", "kenzu", "otix", "shinko", "uren"])
|> validate_inclusion(:killed_by, ["h4ck", "muflus", "uma", "valtimer", "kenzu", "otix", "shinko", "uren", "zone"])
|> foreign_key_constraint(:user_id)
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= if assigns[:current_user_id] do %>
<.form :let={f} for={%{}} action={~p"/"}>
<.input field={f[:character]} name="character" label="Select a Character" type="select" options={["muflus", "h4ck", "uma", "valtimer", "kenzu", "otix", "shinko"]} value=""/>
<.input field={f[:character]} name="character" label="Select a Character" type="select" options={["muflus", "h4ck", "uma", "valtimer", "kenzu", "otix", "shinko", "uren"]} value=""/>
<.input field={f[:user_id]} name="user_id" type="hidden" value={assigns[:user_id]}/>
<.button type="submit" name="game_mode" value="battle-royale">Play Battle Royal</.button>
<.button type="submit" name="game_mode" value="pair">Play Pair</.button>
Expand Down

0 comments on commit e1f89c4

Please sign in to comment.