moonysolari
3c25f20174
Favorite contracts rework ( #163 )
...
* favIcon+UI fix for contract lookup
* Fix favorite status for retrieved contracts
* Support all fav functionalities binded to "P"
2023-03-26 14:30:11 -04:00
AnthonyFuller
992c77af0d
Set EG Level to 100 for default CPD
2023-03-26 14:02:39 +01:00
moonysolari
6d3ef2f486
Add mastery data for sniper missions ( #148 )
2023-03-24 09:19:01 -04:00
Lennard Fonteijn
22d6b6d1ba
Added vitest and configuration to support unit tests ( #37 )
...
* Added Vitest and configuration to support unit tests
Added Vite plugin to fix performance issue with JSON files
Added mock for configSwizzleManager to support the Vite plugin
* Added custom ESLint rule to enforce proper module paths
2023-03-20 20:19:26 -04:00
moonysolari
856859f3ca
Implement contract history and completion tracker ( #98 )
2023-03-20 20:12:54 -04:00
moonysolari
7a47bb418a
remove confusing log output ( #157 )
2023-03-20 19:54:59 -04:00
moonysolari
e6f72eb53d
Prevent disconnections caused by contract report requests ( #99 )
2023-03-20 12:24:21 -04:00
Lennard Fonteijn
168aee05fe
Fixed issue where LevelInfo was not properly set for normal contracts
2023-03-19 15:23:32 -04:00
Lennard Fonteijn
84fbce175b
Fixed Challenge XP from being capped on the Player Profile menu
...
Fixed Freelancer to not have payout when the mission failed
Fixed score screen from crashing when the current location has no mastery drops
2023-03-19 14:15:19 -04:00
Lennard Fonteijn
0eef121ac8
Added support for Sniper locations on the score screen
...
Fixed issue with Mastery not leveling beyond level 1
Fixed issue where the score screen wouldn't show for locations without Mastery
2023-03-19 14:15:19 -04:00
Lennard Fonteijn
4031779a91
Added distinction between Mastery XP and Action XP
...
Added extended Profile Profile to main menu
Added support for Payout objectives on the score screen
Added flag for unlocking all shortcuts
Added flag for unlocking all Freelancer masteries
Added flag to allow Peacock to be restarted when the game is running and connected
Fixed issue where playstyle wasn't show properly
2023-03-19 14:15:19 -04:00
Lennard Fonteijn
ba9b799abe
Add support for XP progression ( #86 )
...
* Fixed issue where restarting Peacock would require to first go offline again
* Added proper player progression
* Fixed most issues with the mission end screen
* Added final tweaks to scoring
* Update global challenges
* Added near-complete support for Freelancer
Added support for unlocking shortcuts
Cleaned up a bunch of magic values in relation to XP and levels
---------
Co-authored-by: moonysolari <changyiding@126.com>
2023-03-19 14:15:19 -04:00
moonysolari
e8d7821c31
Fix nullability issue in inclusion data check ( #154 )
...
* Fix nullability issue in incData check
* Fix comments
2023-03-17 22:06:51 -04:00
moonysolari
4a08faeec0
Implement "Contract search", "Trending", and "Most played last week" tiles for contracts menu ( #117 )
...
* Refactor: use function for lookupContractPublicId
* Trending and Mostplayed now display stuff
* Add call to contract-preserving backend
* Actually download contract data from official
* add getRemoteService function
* implement "contract search" tile
* Change variable naming
* Run prettier
* Change naming to hitmaps
* officialSearchContract -> contractsModeRouting.ts
* Fix imports
2023-03-06 13:17:22 -05:00
moonysolari
5f5ce0abe0
Add global "The Classics" challenges ( #146 )
...
* bar and difficulty UI fixes
* nullability fix
* Improve deptree logic
* Refactor: inclusionDataCheck
* Added global The Classics challenges
* Refactoring: tryToCompleteChallenge
---------
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-03-06 12:13:13 -05:00
moonysolari
e5417e10d9
Add recommended mission stories ( #138 )
2023-03-06 12:12:52 -05:00
moonysolari
db4fa8d7b7
Removes disguises from suits in h1 and h2 ( #149 )
2023-03-06 12:12:28 -05:00
moonysolari
98c192f3a5
Remove The Caged Bull from h1 ( #147 )
...
* Remove caged bull from h1
* Explicitly fastClone FCgroups
2023-02-28 20:21:58 -05:00
moonysolari
9e15fcd4a2
Optimization: grouping challenges by parent locations ( #143 )
...
* Organize the challenges using parent locations
* Fix Career challenges page
* Simplify filtering
* remove unused ChallengeFilterType
* Add comments, address nullibility issues
* Nullibility fix
2023-02-24 11:39:55 -05:00
moonysolari
9c4c71d9a6
Fixed the "Continue Story" tile for the Patient Zero and A Silver Tongue mission end page ( #137 )
...
* Added PlayNext tiles for PZ and A Silver Tongue
* Add Patient Zero mission
2023-02-23 18:16:38 -05:00
moonysolari
7c3427858d
New checkForUpdates
behavior for testing versions ( #141 )
...
* New behavior for testing versions
2023-02-23 18:14:33 -05:00
moonysolari
319815c3b9
Fix some bugs of The Jeffrey Consolation ( #139 )
...
* Add constantjeff brick
* Fix missing objectives
2023-02-23 09:29:15 -05:00
Reece Dunham
c2e57b6276
Merge branch 'v6' of https://github.com/thepeacockproject/Peacock into v6
2023-02-14 14:03:03 -05:00
Reece Dunham
b2cf8903b1
Tiny microoptimization in destination generation
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-02-14 14:02:57 -05:00
moonysolari
b4ca8ab690
Fix contract creation bugs ( #133 )
...
* Skip unknown mission stories
* Disable saving created contracts on the tutorial
* Update platformEntitlements.ts
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Use relative import pathing
---------
Signed-off-by: Reece Dunham <me@rdil.rocks>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-02-13 22:14:16 -05:00
moonysolari
e538854b10
Disable saving ( #127 )
2023-02-13 12:24:34 -05:00
moonysolari
a297973693
Get the latest entitlements for user upon authentication ( #128 )
...
* Get entitlements on connection
* Fall back to old data upon failure
* Added checks on error type
* Update components/platformEntitlements.ts
Co-authored-by: Reece Dunham <me@rdil.rocks>
Signed-off-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
* Update platformEntitlements.ts
Signed-off-by: Reece Dunham <me@rdil.rocks>
---------
Signed-off-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
Signed-off-by: Reece Dunham <me@rdil.rocks>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-02-12 00:02:38 -05:00
Cookie303728
a2df1d615d
adds a plugins folder when non is detected ( #129 )
2023-02-09 19:39:38 +01:00
moonysolari
9b64aa32c6
Remove duplicated items in the user's inventory ( #112 )
...
* ancestral fountain pen
* tactical wet suit
* colorado rabies suit
* move to brokenItems
* Changed to retain the other wetsuit
2023-02-05 15:21:01 -05:00
moonysolari
df5e3ae373
Use official downloader when HITMAP fails ( #126 )
2023-02-05 14:24:15 -05:00
moonysolari
546b81e0f2
Eliminate unwanted contract creation tiles ( #125 )
2023-02-05 10:56:08 -05:00
moonysolari
a551d30067
Remove unwanted contract creation locations ( #100 )
...
* Fix contract creation locations
* allow mamushi contract creation
* Update destinations.ts
Signed-off-by: Reece Dunham <me@rdil.rocks>
---------
Signed-off-by: Reece Dunham <me@rdil.rocks>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-02-01 18:44:32 -05:00
moonysolari
1d1e359b3a
Fix career -> challenges page ( #97 )
2023-01-29 15:34:30 +00:00
AnthonyFuller
8e0711d7e9
Fix Vanilla planning screen
2023-01-29 04:37:49 +00:00
AnthonyFuller
3a0b9d4a3e
Add Snug location data
2023-01-29 04:36:50 +00:00
AnthonyFuller
da81ce9919
Add CPD to GFP2 requests and add new GCs to the pool
2023-01-29 04:35:31 +00:00
AnthonyFuller
ea93abf85e
Add CPD support
2023-01-29 04:35:07 +00:00
AnthonyFuller
499631fa01
Up the limit on metric requests
2023-01-29 04:34:29 +00:00
AnthonyFuller
33ed4f02c7
Add Evergreen GCs and default CPD config
2023-01-29 04:33:43 +00:00
moonysolari
323419c497
Fix mission end screens for challenges ( #88 )
...
* Fix mission end screens for challenges
Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>
Co-authored-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>
2023-01-28 23:29:53 -05:00
Reece Dunham
485fa3dc45
Merge branch 'v6' of https://github.com/thepeacockproject/Peacock into v6
2023-01-28 21:59:32 -05:00
Reece Dunham
163f8e0452
Significant performance improvement that I have not actually tested
2023-01-28 21:59:26 -05:00
AnthonyFuller
275cb417b2
Respect inclusion data for GlobalChallenges
2023-01-29 02:44:54 +00:00
moonysolari
c617a23a04
Fix the legacy contract downloader and improve options related to it ( #96 )
...
* Fix legacy downloader for h3
2023-01-28 17:28:05 -05:00
moonysolari
7b4e417cb0
Fix planning page challenges ui ( #95 )
2023-01-28 17:27:44 +00:00
AnthonyFuller
926168bbd1
Fix elusive targets
...
(cherry picked from commit c8838f755b
)
2023-01-28 16:58:22 +00:00
AnthonyFuller
71ce9f0f87
Bump server version
...
(cherry picked from commit fa5827e995
)
2023-01-28 16:56:47 +00:00
AnthonyFuller
cfdf719e0e
Add base WoA entitlements, fix sins
...
(cherry picked from commit e3c6175679
)
2023-01-27 00:15:14 +00:00
AnthonyFuller
9e3dabdef0
Add new entitlements, remove EG items
...
(cherry picked from commit f9a48d0093
)
2023-01-27 00:15:14 +00:00
moonysolari
1a15f4cf71
Fix HITMAN 2 stuck at loading main menu ( #91 )
...
* Fix H2 hub stuck at loading
2023-01-26 10:15:27 -05:00
Reece Dunham
8ec9fb1824
Update copyright years to 2023
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-01-23 13:37:33 -05:00
Reece Dunham
9747ec5082
Fix a nullability issue
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-01-23 13:34:08 -05:00
Reece Dunham
60e7648a60
Fix some strange imports
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-01-23 13:33:45 -05:00
Alexandre Sanchez
873df1de89
fix(contracts): difficulty not set to normal on first contract load
2023-01-21 23:09:24 +01:00
moonysolari
d6cae91a0f
Fix completion data generation function ( #85 )
...
Added override for HideProgression
Added hidden mastery levels for FACILITY
Fixed Mastery-tab from showing when there aren't any drops
Co-authored-by: Lennard Fonteijn <lennard@lennardf1989.com>
2023-01-21 10:53:14 +01:00
Lennard Fonteijn
85a55d4b48
Added service for mastery data ( #30 )
...
Added simplified mastery data for all locations
Added runtime generation of the full mastery data
Added initial support for profile progression
Reworked code around loading of resources to be more generic
2023-01-20 22:00:20 +01:00
Reece Dunham
e238ecf720
Revert "Fixed issue where restarting Peacock would require to first go offline again"
...
This reverts commit 2cc63c9ec3
.
2023-01-19 15:56:30 -05:00
Lennard Fonteijn
2cc63c9ec3
Fixed issue where restarting Peacock would require to first go offline again
2023-01-19 21:39:51 +01:00
moonysolari
39b659d733
Improve getting challenges for contracts ( #83 )
2023-01-17 20:40:59 -05:00
Reece Dunham
c7f7cafbb8
Remove todos for soon to be retired game versions
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-01-17 16:45:40 -05:00
moonysolari
d78d5bf3ea
Fix all broken challenges in #22 ( #82 )
...
* Using state machine parser 5.2.0
* Correctly store and load challenge contexts
* Update THIRDPARTYNOTICES
2023-01-16 13:30:06 -05:00
moonysolari
bfe82fe1e2
Implement the Challenges tab on the Career page ( #80 )
...
* Renders Career->Challenges page
* Support sniper levels on Career->Challenges page
* Refactor the code to get challenges for locations
* Support clicking tiles on Career->Challenges page
* Add elusives part (currently unsupported)
* Add gameVersion check to avoid issues on old games
2023-01-14 02:12:08 -05:00
moonysolari
b1dfdb8066
Add Challenge completion and level completion percentage display ( #79 )
...
* Add challenges completion progress to responses
* Update components/scoreHandler.ts
Co-authored-by: Reece Dunham <me@rdil.rocks>
Signed-off-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
Signed-off-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-01-12 10:35:27 -05:00
moonysolari
95b71b79e7
Fix a nullibility issue in previous pr ( #76 )
2023-01-11 16:22:17 -05:00
moonysolari
3adb4b1f67
Fix a number of bugs on progression, entitlements, and warning logs ( #75 )
...
* Fix "Contract undefined not found!" warnings
* Implement support for /GetContractOpportunities
* Add OpportunityData to MissionManifestMetadata
* Resolved a ts-expect-error by providing types
* Fix requiem unlockables pistol
* Adjust max player level
2023-01-10 17:29:54 -05:00
moonysolari
e548325955
New saving/loading behaviors to fix bugs related to saving ( #73 )
...
Signed-off-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
2023-01-09 14:49:04 -05:00
moonysolari
d95553bd33
Fix image and text details on challenges page ( #71 )
...
* Remove getChallengePlanningDataForContract
Use getChallengeTreeForContract in instead.
* Separate out the better function for switched data
* reduce calls of generateCompletionData
* Use new switch data batcher for destination part
* Move Contract Not Found warning to resolveContract
2023-01-08 09:28:00 -05:00
moonysolari
fdfe8ff779
Fix default starting suits across different locations ( #69 )
2023-01-07 16:29:02 -05:00
moonysolari
f3803be4ef
Added Mission Story Progression ( #68 )
2023-01-06 21:15:14 -05:00
moonysolari
2ed110a703
Added challenges page for mission debriefing ( #67 )
...
* add debriefing challenges page
2023-01-04 11:36:22 -05:00
Reece Dunham
ba751852f1
Fix challenges being able to cause a recursion deadlock
...
Happens rarely, see https://discord.com/channels/826809653181808651/1058021993661861938 for an explanation.
2022-12-30 21:14:55 -05:00
Reece Dunham
79a32df1dd
unlockorderComparer
-> unlockOrderComparer
2022-12-30 21:06:09 -05:00
Reece Dunham
114a72038e
Add a few more event-specific type definitions.
2022-12-28 15:25:32 -05:00
Reece Dunham
c35f9a463d
Fix a bug causing an infinite loop when certain challenges are completed
2022-12-28 15:25:12 -05:00
Reece Dunham
7379688a91
The Christmas Calamity
2022-12-24 12:35:37 -05:00
Reece Dunham
193df194c5
Fix paginating of fake contracts
2022-12-22 14:49:04 -05:00
Reece Dunham
79558dd4a6
Clarify that push messages should not be pre-encoded.
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-12-20 16:03:08 -05:00
Reece Dunham
9e6e5dd4ed
Fixes to the express patch
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-12-15 20:40:49 -05:00
Reece Dunham
e34d1d0234
Fix SMF integration crash, dependency updates
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-12-15 10:04:56 -05:00
moonysolari
e7fb1c9211
Escalation picker fixes and improvements ( #61 )
2022-12-14 15:21:44 -05:00
atampy25
2d6a4ad616
Implement support for SMF's server replacement compatibility
2022-12-12 22:42:10 -05:00
Reece Dunham
73ff78b7c2
Reworking of challenge system ( #50 )
2022-12-12 16:38:55 -05:00
Alexandre Sanchez
240436f249
Livesplit - Provide a TimeCalc URL for Season/Trilogy speedruns ( #42 )
...
* wip(livesplit): store individual times for timecalc sheet
* feat(livesplit): generate timecalc link at run end
* chore: move livesplit typings in its own types file
* feat(livesplit): complete timecalc feature
- Return 2 URLs if there is not enough lines to fit all the resets
- Print time as mm:ss when time is over 60s
- Include resetMinimum and time under 1s logics in TimeCalc output
- Handle unsplit logic in TimeCalc
* feat(livesplit): couple of changes over pr comments
- Updated _addMissionTime to always return a floored time
- Updated _formatSecondsToTime to better match other code patterns in module
- Removed debug logs entries
2022-12-12 08:17:37 -07:00
Reece Dunham
556d9a6970
Retire The Barbegue Befuddlement
2022-12-10 21:11:50 -05:00
Reece Dunham
a1b656d364
Peacock-52: Option to use legacy contract downloader in H3
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-12-04 17:53:10 -05:00
atampy25
9969168616
Fix documentation for addClientSideModDependency
and add new modIsInstalled
function with more sensible naming and semantics ( #51 )
...
* Fix documentation and add new function
Signed-off-by: atampy25 <24306974+atampy25@users.noreply.github.com>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2022-12-02 22:33:14 -05:00
Alexandre Sanchez
81b130f5b3
fix(webui): fixing content type that broke webui ( #43 )
2022-11-27 21:35:34 -05:00
Lennard Fonteijn
c37241210a
Changed importing .json as text instead for performance reasons ( #40 )
2022-11-25 15:18:03 -05:00
Lennard Fonteijn
b44774d971
Fixed an issue where ExpressJS doesn't seem to set a default content-type ( #41 )
2022-11-25 15:17:23 -05:00
Reece Dunham
87dc916fe4
Revert automatic reformat of flags fix
2022-11-23 22:13:02 -05:00
Reece Dunham
0ff03964b7
Fix Redsnapper and Golden Doublet images
2022-11-23 22:11:22 -05:00
Reece Dunham
a0dab8be67
Export calculatePlaystyle
2022-11-22 21:43:15 -05:00
Reece Dunham
840cd0b57a
Move challenge contexts to the session
2022-11-20 20:28:01 +01:00
Lennard Fonteijn
770187586b
Prevent _checkInit debug message when LiveSplit is disabled
2022-11-19 17:50:53 -05:00
Lennard Fonteijn
449a8f7fe9
Added logDebug for ease of debugging
2022-11-19 22:05:44 +01:00
Reece Dunham
f0cb118c88
Fix 2016 route not returning the right data (doesn't do anything yet)
2022-11-18 21:49:11 -05:00
Alexandre Sanchez
70c67a3038
fix(livesplit): init livesplit after loadFlags completed
2022-11-17 21:28:19 +01:00
Lennard Fonteijn
381df4ea6f
Added hook for the MissionEnd response
2022-11-17 00:59:44 +01:00
Reece Dunham
15e829d0d5
Merge branch 'v5' of https://github.com/thepeacockproject/Peacock into v5
2022-11-16 10:31:27 -05:00
Reece Dunham
6b1f37f149
Backport GameChangerReferences duplication fix from Evergreen branch
...
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-11-16 10:31:22 -05:00