1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-22 22:12:45 +01:00
Commit Graph

24 Commits

Author SHA1 Message Date
Reece Dunham
fd16845434
Remove userId parameter from startContract function
The function startContract in challengeService.ts no longer requires the userId to be passed in as it already exists in the ContractSession. This commit removes the unnecessary userId parameter from both the function definition and usage in eventHandler.ts.

Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-11-28 21:28:01 -05:00
Anthony Fuller
46052c7b0e
Multi-Version Mastery and Sniper Scoring (#270)
* Add multi-version mastery files

* Add pro1 unlocks to legacy allunlockables

* Add 47's suit to scpc all unlockables

* Add and remove various configs

* Remove some useless promises

* Fix scpc hub

* Fix issue with user profile saving

* Fix scpc issues for hub

* Add singleplayer/multiplayer sniper

* A great many things

- Add multi-version mastery
- Improve sniper mastery support
- Improve general H2016 support

* Fix some warnings

* Fix pro1 mastery on destination screens

* Remove entP from createInventory, lock/unlock pro1 accordingly

* Remove JSDoc entP parameter from createInventory

* Remove difficultyunlocks from safehouse pages

* Add versioned user profiles

* Prettier run

* Remove false point from user profiles docs

* Add comment about profile versioning to types

* Fix default profile links

* Remove remaining lowercase

* Fix sniper showing XP as XP

* Add game versions to the unlockable map

* Update getMasteryForUnlockable call in planning

* Fix missing locations when updating profiles

* Update versions to v7

* Fix ICA Facility destination mastery

* Fix sniper challenge unlockables showing in inventory

* Sniper Scoring (#273)

* Initial sniper scoring

* Fix linting errors

* Update require table

* Calculate and display final sniper score on end screen

* Bump SMP version to v5.7.0

* Update since version for scoring

* Fix create inventory call for sniper scoring

* Support sniper unlockables in the inventory

* Update versions to v7

* Reflect changes to createInventory in scoreHandler

* Get unlockable name in completion data

* It was not okay.

* Thanks webstorm

* Add support for /profiles/page/GetMasteryCompletionDataForUnlockable

* Support sniper play next

* Remove sniper gamemodes template from overrides

* Remove debug prints from scoring event handler

* Fix challenge multiplier

* Exclude sniper unlockables from stashpoint

* Start fixing up the missionEnd response for sniper

* Update misleading comment

* Use existing global challenge to check for SA on sniper contracts

* Re-add removed global challenges

* Proper support for the mission end screen on sniper contracts

* Remove redundant label

---------

Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>

* Add co-op sniper scoring defs

* Update MasteryUnlockable template

* Bump SMP version to v5.9.3

* Re-add deepmerge

* Fix SMP checksum

* Fix linting errors caused by merge

* Fix score handler imports

* Move load flags

* Remove unnecessary game version arg

* Whoopsies

Co-authored-by: Reece Dunham <me@rdil.rocks>
Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>

---------

Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-07-24 23:47:28 +01:00
moonysolari
f6e44b4a71
Fix disconnection when dying in arcade (#272) 2023-05-08 17:03:28 +01:00
moonysolari
2a7f41b1c0
Save challenge states (#271) 2023-05-07 07:46:00 +01:00
AnthonyFuller
c609b9db3d Fix arcade reset 2023-05-01 19:35:21 +01:00
Reece Dunham
9a000b6d70
Update deps + eslint rules
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-28 23:39:57 -04:00
Anthony Fuller
c2d477f02e
Add support for Elusive Target Arcade (#209)
* Add arcade support, remove use of deprecated function

* Fix retrieval of escalation group id in planning

* Add arcade contracts

* remove incorrectly acquired arcade challenges

* Fix locations for arcade levels

* Add arcade challenges

* run prettier

* fix nullibility issue in h1

* The Icon is not an elusive target

* sort eta and et contracts by location

* Reset arcade contract on fail

* show arcade challenges in career page

* fix arcade challenges filtering for destinations

* run prettier

* Don't fail arcade on exit menu with no objectives completed

* Handle secondary objectives on arcade fail

* Make a ContractSession know its Id

* fix global arcade challenges

* Add arcade contracts to the level picker

* Update Peacock require tables with ETA

* Add escalationTypes array

* Get ETA locations at startup

* remove unused arrays

---------

Co-authored-by: moonysolari <changyiding@126.com>
2023-04-21 18:48:56 +01:00
moonysolari
4499173e29
Update AreaDiscovered challenges during evergreen missions (#196)
* ignore AreaDiscovered for evergreen

* Revert "ignore AreaDiscovered for evergreen"

This reverts commit 78beddec95.

* Track area discovery in evergreen

* remove persistentBools

* fix global challenges' location

* run prettier

* fix REVEALED
2023-04-10 04:50:58 +01:00
Reece Dunham
6998d2b3fb Fix the type checking 2023-04-08 22:48:27 -04:00
moonysolari
856859f3ca
Implement contract history and completion tracker (#98) 2023-03-20 20:12:54 -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
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
e538854b10
Disable saving (#127) 2023-02-13 12:24:34 -05:00
AnthonyFuller
ea93abf85e Add CPD support 2023-01-29 04:35:07 +00: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
Alexandre Sanchez
873df1de89
fix(contracts): difficulty not set to normal on first contract load 2023-01-21 23:09:24 +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
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
f3803be4ef
Added Mission Story Progression (#68) 2023-01-06 21:15:14 -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
840cd0b57a Move challenge contexts to the session 2022-11-20 20:28:01 +01:00
Lennard Fonteijn
e608f4d7c7
Fixed issue where the newEvent-hook is called twice (#23) 2022-11-13 08:48:31 -05:00
Reece Dunham
6245e91624 Initial commit
Co-authored-by: Tino Roivanen <tino.roivanen98@gmail.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>
Co-authored-by: Gray Olson <gray@grayolson.com>
Co-authored-by: Alexandre Sanchez <alex73630@gmail.com>
Co-authored-by: Anthony Fuller <24512050+anthonyfuller@users.noreply.github.com>
Co-authored-by: atampy25 <24306974+atampy25@users.noreply.github.com>
Co-authored-by: David <davidstulemeijer@gmail.com>
Co-authored-by: c0derMo <c0dermo@users.noreply.github.com>
Co-authored-by: Jeevat Singh <jeevatt.singh@gmail.com>
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-10-19 21:33:45 -04:00