Commit Graph

43 Commits

Author SHA1 Message Date
Kalle
cfbd18b4fe Object Damage Calc: Separate subs in the combobox Closes #1220
Also due to a bug the subs were not accessible at all before.
This was a bug introduced in c014ba5e18
2023-04-15 12:06:07 +03:00
Kalle
5a28f402c4 Add April SR gear 2023-04-02 15:34:28 +03:00
Kalle
cfa0d4dd0d
Build stats / popular builds (#1307)
* Add abilityPoints migration

* Initial stats

* Build stats UI

* Add TODO

* Update css file name

* Popular builds page
2023-03-11 14:05:08 +02:00
Kalle
e079370cdf Add Grizzco gear you can buy with scales Closes #1292 2023-03-07 01:13:01 +02:00
Kalle
2392427762 Patch 3.0 Closes #1284 2023-03-01 18:42:32 +02:00
Kalle
369e7ecb57 Add February SR gear 2023-02-05 13:55:00 +02:00
Kalle
f0f6b14f58 Upgrade deps 2023-01-22 13:40:05 +02:00
Kalle
6e630ab8e3 Add January's SR reward 2023-01-07 10:53:09 +02:00
Kalle
791744c40c Move build analyzer to feature folder 2022-12-22 00:14:29 +02:00
Kalle
6feb269193
Full tournament feature WIP (#1196)
* Layout initial

* Add FillRosterSection component

* Move tournaments to feature folder

* Refactor Button props

* SubmitButton

* Register action

* Identifier -> Id

* Invite link via nanoid

* Team info submit

* Enter tiebreaker map list UI

* Invite members to tournament team initial

* Show banner if joined a team not captain of

* Add back teams page

* Change team roster size color when good

* Delete tournament team member
2022-12-21 23:24:59 +02:00
Kalle
dacc475efb Add 2.0 maps 2022-12-05 11:25:13 +02:00
Kalle
ffc92bdbce Chill Season 2022 update (2.0) 2022-11-30 22:24:56 +02:00
William Lam
2da0738dc6
Ability Chunks Required section in Build Analyzer (#1120)
* Added Ability Chunks Required section in Build Analyzer

* Renamed a variable to be more precisely correct

* Added reference

* Removed some extra Javadoc comments

* Prettier fix

* We now only render the AbilityChunksRequired section only if the main abilities array contains a value other than "UNKNOWN"

* Improved React keys naming for performance reasons

* Ability Chunks map is now converted to an array & sorted by value (descending) before it gets rendered as visual components

* Fixed typing error

* Moved logical function to a new file in the analyzer module called abilityChunksCalc.ts
- Refactored for loop content to be cleaner
- Removed & changed some comments

* More for loop refactoring

* We now pass the entire build into abilityChunksCalc.ts

* Refactored map() to flatMap() so we avoid unknowns/null/undefined

* Refactored code to process mainAbilities and subAbilities

* Fixed subability list construction logic & typing in updateAbilityChunksMap()

* Got my first unit test working

* Added working unit tests, also changed sort order slightly

* Added a "real" build for testing

* Removed residual console.warn() call

* Moved constants to abilityChunksCalc.ts

* Ability chunk calculation is now correct for sub abilities

* Uncommented tests & improved their descriptions

* Rearranged expected output to match sorted order for clarity (even though it doesn't have to be)

* Fixed Prettier error

* Spacing

* Moved comments around

* More spacing

* Prettier error on test file

* Improved check in the tests

* Added a second "real" build to tests for good measure

* Added error message to empty array test

* Updated comments again

* More comments updated

* Update test name

* Ability Chunks section is now shown if we have at least one selected ability (handles edge case for primary slot-only abilities being the only chosen ability)
2022-11-16 00:10:48 +02:00
Kalle
ecd5a2a2f7
TO Tools (#1077)
* Add DB tables

* Toggle TO Tools in new calendar event page

* TO tools page initial

* Add counter pick map pool UI

* Save tie breaker map pool

* Save team name

* Layout initial

* Load users own team

* Make team name input required

* Rename team

* Divide to sections

* Submit team map pool

* New style for counter pick map pool section expand

* Fix tiebreaker map pool not saved when new event made

* Split to many forms

* According for team name

* Small UI consistency tweaks

* Add explanation to tie breaker maps

* Remove redundant prop

* Fix new calendar event todos

* Use required hidden input component in new build page

* Fix to tools page showing even when toToolsEnabled = 0

* Delete team

* Map list generation tests initial

* Add tournament map list generation tests

* First version of map list generation

* Add seeded RNG

* Rearrange files

* Generation with strats initial

* Default map pool + allow one team not to have any maps

* Implement map generation via backtracking

* Make order of stages irrelevant

* Add one more TODO

* Seed

* Fixes

* Tournament map list generator initial

* More functional maplist

* Fix any

* Persist in search params initial

* Add date to calendar seed

* Revert "Persist in search params initial"

This reverts commit f01a9e6982.

* Allow admin to start tournament

* Rate maplist instead of optimal / suboptimal

* Add fallback if map list generation errors out

* Hide TO Tools if not admin

* Submit team roster and delete members

* Teams page

* Give roster s p a c e

* Clear user combobox on sent + layout tweaks

* Gracefully handle updating after tournament has started

* Add title

* Persist map list in search params

* Add i18n
2022-11-13 14:41:13 +02:00
Kalle
123565a952 Add November's Salmon Run gear 2022-11-03 20:20:34 +02:00
Remmy Cat Stock
edd3a1d91b
Improve MapPoolSelector UI 2022-10-27 13:31:36 +02:00
Kalle
b1042f8e37 Generates map lists 2022-10-09 00:58:19 +03:00
Kalle
bba380840c Make maplist serializer use ids 2022-10-06 20:54:14 +03:00
Kalle
87bca7aa44 Maps page initial 2022-10-06 20:54:14 +03:00
Kalle
5da1a66a6c Add Lo-Vis Visor 2022-10-04 21:07:14 +03:00
Kalle
494e5af5f7 Builds index page initial 2022-09-25 00:29:49 +03:00
Kalle
34a77b6506 Special duration stat 2022-09-18 21:14:47 +03:00
Kalle
bdaa18b3a2 Sub defense stats for Point Sensor and Ink Mine 2022-09-17 17:09:46 +03:00
Kalle
cefb55d19f Effect and LDE intensity in Search Params 2022-09-16 17:59:06 +03:00
Kalle
012d7f8afc Add launch gear 2022-09-14 13:43:57 +03:00
Kalle
b6ae4f73da Add Hero Shot & REEF-LUX 2022-09-14 13:02:52 +03:00
Kalle
ef1b89675d KitCards for analyzer 2022-09-12 19:31:33 +03:00
Kalle
3d837a95fe Rename variable 2022-09-12 16:52:52 +03:00
Kalle
b7c6ac7a67 Ability values with overwrites 2022-09-08 22:14:13 +03:00
Kalle
109c60ca41 Analyzer core structure 2022-09-08 18:32:00 +03:00
Kalle
c06a7c4f74 Can submit a new build 2022-09-03 18:14:53 +03:00
Kalle
e94cd3e755 AbilitySelector 2022-09-03 18:14:53 +03:00
Kalle
b75a3c5703 Build schema initial 2022-09-03 18:14:53 +03:00
Kalle
8260004b92 Gear selectors 2022-09-03 18:14:53 +03:00
Kalle
b94a1beb6f UNKNOWN ability 2022-09-03 18:14:53 +03:00
Kalle
0f0542f2e9 Build cards initial 2022-09-03 18:14:53 +03:00
Kalle
0efff0c907 Builds migration with seed 2022-09-03 18:14:53 +03:00
Kalle
382af8439f Add ability types 2022-09-03 18:14:53 +03:00
Kalle
ea9fda5cb5 Gear ids and translations 2022-09-03 18:14:53 +03:00
Kalle
820dfc7668 Add ability icons 2022-09-03 18:14:53 +03:00
Kalle
98584b6299 Add weapon ids list 2022-09-03 18:14:53 +03:00
Kalle
a5f9d91b91 Add map pool serializer module 2022-08-18 17:51:14 +03:00
Kalle
f7224588bd Map list serializer module initial 2022-08-17 22:48:41 +03:00