-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Delete already migrated items config * Add power up fields to game config * Show and edit new power up fields from game configurator * Use new power up fields from config instead of json * Add power ups fields to game seeds * Remove unnecessary power up fields from config.json * Fix game configuration creation * Remove missing power_up from json config * Update apps/configurator/lib/configurator_web/controllers/game_configuration_html/game_configuration_form.html.heex Co-authored-by: Tomás Villegas <[email protected]> --------- Co-authored-by: Tomás Villegas <[email protected]>
- Loading branch information
1 parent
e6f6b4a
commit e580917
Showing
9 changed files
with
139 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...backend/priv/repo/migrations/20240812142938_add_power_up_config_to_game_configuration.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule GameBackend.Repo.Migrations.AddPowerUpConfigToGameConfiguration do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:game_configurations) do | ||
add :distance_to_power_up, :integer | ||
add :power_up_damage_modifier, :float | ||
add :power_up_health_modifier, :float | ||
add :power_up_radius, :float | ||
add :power_up_activation_delay_ms, :integer | ||
add :power_ups_per_kill, :map | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters