Commit Graph

326 Commits

Author SHA1 Message Date
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
Kalle
cca225c780 Remove calculations from component code 2022-10-23 11:13:02 +03:00
Kalle
430d347f79 Add damages from Lean 2022-10-23 10:39:23 +03:00
Kalle
b448c19b71 Object damages with calculation 2022-10-22 16:43:31 +03:00
Kalle
89c388e1c3 Fix hp showed wrong for Crab Tank/brellas 2022-10-22 12:08:20 +03:00
Kalle
63a80c8ecd Object damage hitpoints initial 2022-10-22 11:43:19 +03:00
Kalle
bc892dc2fb Fix TS error 2022-10-21 22:15:15 +03:00
Remmy Cat Stock
ab98a106bb
Show dialog for failed login attempts 2022-10-20 22:40:34 +02:00
Kalle
dc5fc84c83 Option to get wpn damage multiplier from all keys 2022-10-19 23:34:14 +03:00
Kalle
586c27eaa7 Object damage calculator page initial 2022-10-18 01:12:52 +03:00
Kalle
1a8ede563e Fix map list generation crash if small map pool 2022-10-15 11:54:06 +03:00
Kalle
e36e213793 Fix analyzer respawn time
Closes #1006
2022-10-14 23:40:19 +03:00
Kalle
7ccfe79984 Add title to maps page 2022-10-14 23:16:56 +03:00
Remmy Cat Stock
abfd387062 Deactivate i18next interpolation escaping 2022-10-14 16:38:16 +02:00
Kalle
0f2a5ee728 Remove action related code from maps page 2022-10-13 20:36:02 +03:00
Kalle
4108637a30 Save map pool in edit calendar event page 2022-10-13 19:22:23 +03:00
Kalle
6770b8e214 Map pool from server 2022-10-09 19:06:22 +03:00
Kalle
20a5beb119 Add function 50% SZ toggle 2022-10-09 10:55:11 +03: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
16ad28d617 Run speed while shooting stats
Closes #963
2022-10-02 21:14:56 +03:00
Kalle
3129822c49 Remember selected language
Closes #921
2022-09-25 15:55:22 +03:00
Kalle
cb369985c8 Build analyzer don't scroll to top on build change
Closes #952
2022-09-25 14:24:18 +03:00
Kalle
494e5af5f7 Builds index page initial 2022-09-25 00:29:49 +03:00
Kalle
fe67eb8df7 Add translators to contributions
Closes #932
2022-09-24 14:51:24 +03:00
Kalle
3333d4486f Consider Splattershot Jr's big tank in analyzer
Closes #965
2022-09-24 09:47:32 +03:00
Kalle
ebe1d6deea Fix Big Bubbler HP 2022-09-24 09:12:07 +03:00
Kalle
be0b4ebc29 Fix hard coded sub save lvl Closes #953 2022-09-22 23:47:44 +03:00
Kalle
8a8e3c344a Fix @ts-expect-error with weaponParams 2022-09-21 17:37:30 +03:00
Kalle
829e564eb6 Add BRU Beakon effect 2022-09-21 00:17:59 +03:00
Kalle
03a3eec318 Hard code missing SubInkSaveLv and InkConsume 2022-09-20 23:56:01 +03:00
Kalle
18a7f7edae Add Squid Surge IA effect 2022-09-20 23:42:01 +03:00
Kalle
37738ad8e5 Add Tacticooler effect 2022-09-19 23:36:40 +03:00
Kalle
85e43091f2 Map a few more special params 2022-09-19 23:31:29 +03:00
Kalle
7539e0e76e Killer Wail 5.1 SPU effect 2022-09-19 20:31:59 +03:00
Kalle
d5ddc97e7c Ink Vac SPU effect 2022-09-19 20:27:48 +03:00
Kalle
059d738340 Wave Breaker SPU effect 2022-09-19 17:58:38 +03:00
Kalle
5b64515976 Booyah Bomb SPU effect 2022-09-18 21:26:59 +03:00
Kalle
2be14cda3b Ink Storm SPU effect 2022-09-18 21:14:47 +03:00
Kalle
cabdbd1da4 Tenta Missiles SPU effect 2022-09-18 21:14:47 +03:00
Kalle
502240ad23 Zipcaster SPU effects 2022-09-18 21:14:47 +03:00
Kalle
6ef1b0c55b Big Bubbler SPU effects 2022-09-18 21:14:47 +03:00
Kalle
64d2a64b5f Trizooka paint and damage radius effect 2022-09-18 21:14:47 +03:00
Kalle
34a77b6506 Special duration stat 2022-09-18 21:14:47 +03:00
Kalle
d0afd203e3 Parse special to weapon-params.json 2022-09-18 21:14:47 +03:00
Kalle
bb9eb2be31 More descriptive jump RNG reduction stat 2022-09-18 21:14:47 +03:00
Kalle
b601c0421c IA jump RNG reduction effect 2022-09-18 21:14:47 +03:00
Kalle
8539205f71 Bomb Heavy/Light damage 2022-09-18 21:14:47 +03:00
Kalle
40679764a9 Add RP/NS icons to modified by row 2022-09-18 21:14:47 +03:00
Kalle
d10d4bf0c5 Calculate own use of RP 2022-09-18 21:14:47 +03:00
Kalle
4a381e17e3 Add Ninja Squid calculation 2022-09-18 11:56:02 +03:00
Kalle
1f26fe68bf Add bomb def damage reduction stats 2022-09-17 18:19:38 +03:00
Kalle
5d9a3ea13c Angle Shooter tracking defense stat + explanation 2022-09-17 17:20:35 +03:00
Kalle
bdaa18b3a2 Sub defense stats for Point Sensor and Ink Mine 2022-09-17 17:09:46 +03:00
Kalle
f57d1a750d Move xxx comments to GitHub 2022-09-17 14:26:45 +03:00
Kalle
4b128c59a6 BRU effects for analyzer 2022-09-17 12:58:43 +03:00
Kalle
e87fd714e2 Toggle effects 2022-09-16 21:17:29 +03:00
Kalle
81029e054c Fix Tacticooler overwriting build abilities 2022-09-16 21:17:10 +03:00
Kalle
e57f1d63c1 EffectsSelector with LDE dropdown 2022-09-16 20:19:43 +03:00
Kalle
cefb55d19f Effect and LDE intensity in Search Params 2022-09-16 17:59:06 +03:00
Kalle
d07bf0af86 Move abilityPoints calculation to caller 2022-09-16 17:00:35 +03:00
Kalle
db27e6b6b0 Implement special effects calculation 2022-09-16 16:40:54 +03:00
Kalle
4b9ab64647 Main weapon white ink stats 2022-09-15 20:03:42 +03:00
Kalle
a5e13218f4 Charge charging params 2022-09-15 19:32:33 +03:00
Kalle
f2fc3492e5 Analyzer Ink Resistance 2022-09-15 18:21:50 +03:00
Kalle
30159be6f7 Fix Brella for consumption table 2022-09-15 15:38:30 +03:00
Kalle
67d3299e82 Analyzer super jump stat 2022-09-15 15:31:09 +03:00
Kalle
491f51f543 Analyzer respawn stat 2022-09-15 15:18:41 +03:00
Kalle
f4b893dfa5 Splat/Suction/Burst Bomb to damage table 2022-09-15 14:16:34 +03:00
Kalle
36f38cc791 Analyzer show brella canopy hp and damage 2022-09-15 13:56:17 +03:00
Kalle
dc4b670869 Display L-3/H-3 damage better 2022-09-15 13:36:35 +03:00
Kalle
3e28818269 Analyzer damage table initial 2022-09-15 13:14:33 +03:00
Kalle
69b1e476d7 Analyzer add missing overwrites 2022-09-15 11:32:25 +03:00
Kalle
2fc048d1a9 Analyzer add weapon badge about weight 2022-09-15 01:23:49 +03:00
Kalle
1f6d034b14 Analyzer add patch badge 2022-09-15 00:34:14 +03:00
Kalle
c8d2d996e4 Run/swim speed to analyzer 2022-09-15 00:16:37 +03:00
Kalle
263bcbbecb Analyzer Ink Recover Up effect 2022-09-14 22:18:11 +03:00
Kalle
a6226a215c White ink stat 2022-09-14 19:46:08 +03:00
Kalle
13db27b512 Display slosher shots as "Sloshes" 2022-09-14 19:13:01 +03:00
Kalle
60b2038a2f Full charges instead of shots for splatlings 2022-09-14 18:56:52 +03:00
Kalle
6ae3f02236 Remove internal name from params json 2022-09-14 15:11:34 +03:00
Kalle
c0c91b3d28 Combine vertical and horizontal swing if same val 2022-09-14 15:03:47 +03:00
Kalle
dad5c3c0ac Ink consumption table for analyzer 2022-09-14 14:55:30 +03:00
Kalle
18c2d3bbab Make lint happy 2022-09-14 14:06:52 +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
5216ea9275 Serialize build and weapon to URL in analyzer 2022-09-14 12:11:04 +03:00
Kalle
acb94460c6 Ink saver levels initial 2022-09-14 01:12:18 +03:00
Kalle
ef1b89675d KitCards for analyzer 2022-09-12 19:31:33 +03:00
Kalle
8990f565c7 Fix bug w/ WeaponCombobox not showing initial val 2022-09-12 17:08:49 +03:00
Kalle
dd5680b41b buildToAbilityPoints handle main abilities 2022-09-12 16:52:52 +03:00
Kalle
8065e8a6e5 Add special saver effect 2022-09-12 16:52:52 +03:00
Kalle
454dc923a4 Add id: 8010 to params.json 2022-09-12 16:52:52 +03:00
Kalle
3d837a95fe Rename variable 2022-09-12 16:52:52 +03:00
Kalle
bc2b83373f Handle changing weapon in analyzer 2022-09-10 21:16:29 +03:00
Kalle
73e3ddf007 Analyzer UI initial 2022-09-10 21:06:19 +03:00
Kalle
9324d5cdfa Add Danish language to dropdown 2022-09-10 11:32:12 +03:00
Kalle
0b040e170a Bake ability values calculation into abilityPointsToEffect 2022-09-08 22:28:53 +03:00
Kalle
b7c6ac7a67 Ability values with overwrites 2022-09-08 22:14:13 +03:00
Kalle
2ba93c41c8 Create analyzer json get overwrites 2022-09-08 20:27:36 +03:00
Kalle
109c60ca41 Analyzer core structure 2022-09-08 18:32:00 +03:00
Kalle
fe7a14168c Gear and weapon translations for every language 2022-09-05 21:12:20 +03:00
Kalle
395be2f95f Upgrade deps 2022-09-04 18:57:56 +03:00
Kalle
db0878c3ab Add color mode toggle
Closes #830
2022-09-04 15:23:59 +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
db96345e53 Articles on front page initial 2022-08-24 00:17:45 +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
Kalle
b7b8e382de User db queries to sql files 2022-08-16 17:43:41 +03:00
Kalle
294807ce2a PlusVotes db queries to sql files 2022-08-16 00:29:32 +03:00
Kalle
6adb44dbf6 Move DB models to folders 2022-08-14 12:05:44 +03:00
Kalle
dcdb7bef0d Fix hydration hanging in E2E tests 2022-07-20 19:33:14 +03:00
Kalle
640eba9cea i18n support 2022-07-16 14:56:20 +03:00
Kalle
333c30a25c Patrons with node cron 2022-07-13 00:11:09 +03:00
Kalle
4888fc248c Try Cypress in Github Actions 6 2022-07-08 14:27:16 +03:00
Kalle
67c8b2c449 Improve getting started with project experience 2022-07-06 11:02:23 +03:00
Kalle
6438d1a781 Vote with S/K keys instead of < > keys 2022-07-02 14:22:10 +03:00
Kalle
5544a489a0 Add max-age to login cookie for persisting 2022-06-24 11:02:07 +03:00
Kalle
b633562f7e More graceful 404's 2022-06-18 23:37:57 +03:00
Kalle
c7a50ded65 Impersonate users in prod 2022-06-18 15:51:17 +03:00
Kalle
f510afe522 Adjust voting range 2022-06-13 18:37:18 +03:00
Kalle
52fea7fcc9 Rename upcomingVoting -> nextNonCompletedVoting 2022-06-12 23:19:16 +03:00
Kalle
1b2376a951 Fix state bio/suggestions from local storage 2022-06-12 23:13:51 +03:00
Kalle
b39c3b745f Rename vote function 2022-06-12 16:41:33 +03:00
Kalle
010f709e4b Plus upvote/downvote from constant 2022-06-12 16:19:43 +03:00
Kalle
f5f589a28c Plus voting saves votes to DB 2022-06-12 16:17:43 +03:00
Kalle
1e8a63c961 Submit votes initial 2022-06-12 15:11:23 +03:00
Kalle
039c0b115e Vote with arrow keys 2022-06-12 13:07:46 +03:00
Kalle
253d0112c4 Undo last vote functionality 2022-06-12 12:44:53 +03:00
Kalle
9e9e9ed44e Voting with usePlusVoting hook 2022-06-12 11:35:08 +03:00
Kalle
79278c4cbc Add usersForVoting backend logic 2022-06-11 18:28:12 +03:00
Kalle
f06a4c9b20 Move plus server from core to modules 2022-06-11 11:49:22 +03:00
Kalle
77cadcb06d Move useUser to modules/auth 2022-06-11 11:34:25 +03:00
Kalle
1c1d8dd6fe Move auth to modules 2022-06-11 11:21:06 +03:00