Commit Graph

195 Commits

Author SHA1 Message Date
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
bf85ca82a0 Obj DMG Calc: More accurate Explosher damage 2022-12-10 20:08:41 +02:00
Kalle
21cfd958d8 Tri-Stringer correct damage 2022-12-10 19:58:17 +02:00
Kalle
2ba9f62d41 Obj DMG Calc: special cases calculation data driven 2022-12-10 19:45:42 +02:00
Kalle
3caecef855 Obj DMG Calc: Support calculating multishot 2022-12-10 16:17:43 +02:00
Kalle
602e545831 Build Analyzer: Add stringers damage 2022-12-08 23:48:49 +02:00
Kalle
26e43b2ead Restore light mode 2022-12-08 21:29:51 +02:00
Kalle
4813d0a042 Object DMG Calc: Splatana support 2022-12-08 21:29:51 +02:00
Kalle
d8b1b5a367 Obj Calc: WIP Splatana 2022-12-08 01:25:02 +02:00
Kalle
ce3eda3545 Build Analyzer: Splatana damages 2022-12-08 00:51:34 +02:00
William Lam
94ddd3031b
Ability chunk calculation now properly takes Ability Doubler into account (#1186)
* Issue 1180: ability chunk section now properly ignores Ability Doubler in its calculations
- Build Analyzer also no longer shows Ability Doubler as an Ability Chunk entry, nor does it show the Ability Chunks accordion if Ability Doubler is the only selected ability in the build

* Prettier formatting

* Now handles edge case for subabilities on Clothing gear with Ability Doubler
2022-12-07 19:07:29 +02:00
Kalle
ec2133b9c8 Analyzer: Fix Splattershot Pro negative run speed
Closes #1176
2022-12-06 15:34:00 +02:00
Kalle
a9701f874f Analyzer: Add sub weapon ink consumption stat 2022-12-05 16:17:26 +02:00
Kalle
34ca290bdd
Redesign (#1179)
* Remove light mode

* Trim header

* New front page initial

* Get rid of build layout

* Breadcrumbs

* Desktop side nav

* Overhaul colors

* Add breadcrumbs

* New sub nav style

* Front page action buttons

* Add back add new build button

* Add articles page with icon

* Minor Object damage page layout tweaks

* Remove one unnecessary render from object damage

* Fix wrong link in article page

* Profile -> My Page in header

* Log in/out buttons in front

* Add drawings to front page

* Remove unnecessary comment
2022-12-05 16:05:51 +02:00
Kalle
dacc475efb Add 2.0 maps 2022-12-05 11:25:13 +02:00
Kalle
6908fa10a0 Build Analyzer: Fix untranslated weight class 2022-12-03 02:29:28 +02:00
Kalle
0affb028a0 Build Analyzer: Big ink tank to CJR 2022-12-03 02:09:18 +02:00
Kalle
938a208698 Fix CI 2022-11-30 22:29:23 +02:00
Kalle
ffc92bdbce Chill Season 2022 update (2.0) 2022-11-30 22:24:56 +02:00
Kalle
aea7406586
Map Planner (#1145)
* Initial

* Add images

* Tweaks

* Proper sized bg image and weapons

* Stage bg picker

* Outlined weapon images for planner

* First version

* Lint

* Add alt and title to weapon
2022-11-23 17:38:38 +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
Remmy Cat Stock
8fac1cca76
Rename Spanish language options according to feedback
Closes #1094
2022-11-05 00:43:32 +01:00
Kalle
6ff4efdc20 Add American Spanish language
Closes #985

Just in-game names are different. Rest is copied from EU translation.
2022-11-03 22:10:24 +02:00
Kalle
123565a952 Add November's Salmon Run gear 2022-11-03 20:20:34 +02:00
Remmy Cat Stock
19fbd85f8f
Add auto theme option for detecting the theme from system/browser preferences (#1083)
* Add "auto" option to theme switcher

* Add labels to language and user menu buttons

* Update translation-progress.md
2022-11-03 01:44:56 +01:00
Kalle
60a0495b9d Support for blob 4 shots in analyzer
+ fixed L-3 showing curling damage in multiples.
+ fixed "1 hit" typoed to "1 hits"

Closes #1065
2022-10-29 21:04:34 +03:00
Kalle
7af8e7a9db Add slosher class weapons damages 2022-10-29 20:36:48 +03:00
Kalle
bfc3cbfc87 Fix Hydra wrong dmg multipliers
Closes #1055
2022-10-29 12:42:40 +03:00
Remmy Cat Stock
9d6c86b5ab
Fix theme switching via cookie during development 2022-10-27 22:29:31 +02:00
Kalle
29896aa76c Add Hydra Splatling shots to pop RM test 2022-10-27 20:29:44 +03:00
Kalle
fbe1c61356
Merge pull request #1047 from Sendouc/map-pool-templates
Map pool templates
2022-10-27 20:29:35 +03:00
Kalle
b340f32ae3 Fix theme cookie not saved after session closing 2022-10-27 18:12:36 +03:00
Kalle
6bacfe9717 Add Hydra full charge to prioritized damage types 2022-10-27 17:59:58 +03:00
Remmy Cat Stock
63154e507e
Initial support for map pool templates 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
edd3a1d91b
Improve MapPoolSelector UI 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
3b18598288
Introduce utility MapPool class 2022-10-27 13:31:36 +02:00
Kalle
41120088e0 Add Hydra fully charged shot damage to analyzer
Closes #1046
2022-10-27 09:27:12 +03:00
Kalle
672fa07152 Update Build Analyzer to patch 1.2.0 2022-10-27 09:14:02 +03:00
Kalle
b4762d6455 Fix crash when no damage data on obj dmg calc 2022-10-26 17:29:32 +03:00
Kalle
6e43b6bbd3 Add tests and fix damage calculation of some wpns 2022-10-26 08:42:04 +03:00
Kalle
292e3c2759 More relevant damage receivers order 2022-10-25 00:19:30 +03:00
Kalle
6eea2edb7b Add splatted by RP user stat to analyzer (ss) 2022-10-24 19:32:53 +03:00
Kalle
12bd09cb14 Add splatted by RP user stat to analyzer 2022-10-24 19:24:26 +03:00
Kalle
6f1a4935a9 Add object shredder to damage table 2022-10-23 22:36:04 +03:00
Kalle
c918aafb9d Add remaining hitpoint values 2022-10-23 15:05:20 +03:00
Kalle
d487af683a Object damage filter by damage type 2022-10-23 12:50:25 +03:00
Kalle
14f7507e2c Make damage use rounding that matches data struct 2022-10-23 12:01:05 +03:00
Kalle
86a5e9ee2a Objective damage table change SPU/BRU 2022-10-23 11:59:03 +03:00