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

237 Commits

Author SHA1 Message Date
moonysolari
46777981dd
fix nullablility issue affecting eg wardrobe (#206) 2023-04-11 19:59:39 -04:00
AnthonyFuller
e07e551bb6 Add go to destination button on Freelancer tile 2023-04-11 20:59:56 +01:00
Reece Dunham
ee8b54132e
Bump version to v6.1.0
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-11 13:35:59 -04:00
moonysolari
efd6ede347
Support configurable default starting suits lock/unlock (#202)
* refactor: use object for suit lookup

* improve sublocation default suits

* change getDefaultSuitFor function signature

* use TOKEN_OUTFIT_WET_SUIT to simplify logic

* Correctly hide/give default starting suits
2023-04-11 12:10:24 -04:00
Lennard Fonteijn
74a387445d Added support for statistics under the Player Profile menu 2023-04-11 10:55:43 +02: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
Anthony Fuller
e53095a0f7
Bump SMP version to v5.5.2 (#199) 2023-04-09 18:48:19 -04:00
Reece Dunham
6998d2b3fb Fix the type checking 2023-04-08 22:48:27 -04:00
Reece Dunham
2016394041 Add a CI task to run the tests 2023-04-08 22:46:51 -04:00
Reece Dunham
934fe294ec Skip inclusion of helper cmd files in lite version 2023-04-08 22:42:51 -04:00
Reece Dunham
27942b17d4 TypeScript v5 2023-04-08 22:29:40 -04:00
Reece Dunham
1dfd710a93 Update deps, don't do prettier through eslint 2023-04-08 22:25:29 -04:00
Reece Dunham
189755f52d Gitignore thirdpartynotices 2023-04-08 22:06:27 -04:00
Reece Dunham
673bfec718
Improve how export debug info stores data (#185)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-06 23:07:54 -04:00
AnthonyFuller
f68bf02808 Bump SMP version to v5.5.1 2023-04-07 04:04:29 +01:00
moonysolari
3ded3490e1
Fix contract lookup for H2 (#179)
* Fix contract lookup for H2

* dedupe jsons
2023-04-06 22:03:59 -04:00
AnthonyFuller
0e2135e1eb Bump SMP version to v5.5.0 2023-04-07 02:10:58 +01:00
Lennard Fonteijn
303b0596d2
Fixed an issue where refresh_token was not properly served (#190) 2023-04-06 21:47:08 +01:00
Lennard Fonteijn
b8a68820d9
Added fallback for loadSession in case someone might have disconnected. (#191) 2023-04-06 21:46:28 +01:00
moonysolari
21b3663c50
Added featured contracts challenges (#186)
* Add semi-working featured contracts challenges

* Pass contract IDs to $pushunique (need SMP update)

* Add readme for challenges

* Use drop ids

* fix fc challenges json

* Added h2 featuren contracts challenges

* Update smp to 5.4.0
2023-04-06 17:05:36 +01:00
Lennard Fonteijn
02f1fbbc00
Added additional logging for debugging purposes (#183) 2023-04-06 00:21:12 +01:00
moonysolari
1e6e9a8c11
fix: type mismatches due to version-awareness (#184) 2023-04-05 21:43:10 +01:00
J0k3r-1
ce0f64cf30
feat: initial support for mastery progression (#161)
* feat: Initial support for mastery progression

* chore: Fix typo

* feat: Award users challenge drops immediately after completion. Also builds the inventory on startup with those drops

* feat: Award mastery unlockables to user as soon as they are available

* feat: Added flag to toggle mastery progression

* fix: Address linting issues

* feat: Handle loadout lock for Miami and Hokkaido

* fix: Looking for LimitedSlots on parent location, to include all contracts on the location

* Update components/flags.ts

Co-authored-by: Reece Dunham <me@rdil.rocks>
Signed-off-by: J0k3r-1 <128742169+J0k3r-1@users.noreply.github.com>

* refactor: Look at location LimitedLoadout to prevent unecessary unlockable lookups

* refactor: Add a different Map for mapping Level and Location to an unlockable id

* fix: Prevent evergreen gear unlockables to be awarded to the user inventory w/t proper mastery level

Evergreen level unlockables for gear are treated the same as packages, and include the actual unlockable item within their properties, so similar logic to packages was needed to address those correctly

* refactor: Use gameVersion from contractSession on grantLocationMasteryXp

* fix: Fix typo

* feat: Add progression service to handle XP and Drop award (#1)

* refactor: Cleanup unused imports

* refactor: Added some improvments over feedback

* fix: Fix wrong evergreen check flag condition

* feat: Added challenge drops to missionEnd screen + minor fixes

* refactor: Removed writeUserData from challengeService

The progressionService already stores the data, so theres no need to call it again here

* fix: Prevent evergreenmastery unlock types from being awarded to the inventory

* chore: Amend the explanation for getLocationMasteryDrops on evergreen type unlock

* Update components/menus/planning.ts

Co-authored-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
Signed-off-by: J0k3r-1 <128742169+J0k3r-1@users.noreply.github.com>

* refactor: Award evergreenmastery but filter on inventory grant, like createInventory

* refactor: Refactor challenge drop usage as they have been refactored from Unlockable[] to string[]

* fix: Add mastery requirement for locked loadouts on Miami and Hokkaido + Add interface for sourcechallenge

* chore: Remove console.log

* fix: fixed H1 hokkaido not starting

---------

Signed-off-by: J0k3r-1 <128742169+J0k3r-1@users.noreply.github.com>
Co-authored-by: Reece Dunham <me@rdil.rocks>
Co-authored-by: moonysolari <118079569+moonysolari@users.noreply.github.com>
2023-04-05 20:19:28 +01:00
moonysolari
5fff1c89ae
Fix challenges for H2 and H2016 (#152)
* Add location templates for older game versions

* Fix challenge data extraction script for h1

* Add challenge location templates

* unfinished game version support

* Fix challenge data extraction script for H2

* Conform function calls to new signature

* Add a game version for all maps

* Improve comments

* Try to add difficulty support

* fix type error

* fix GetActiveChallengesAndProgression difficulty

* Add difficulty for GetChallengeTreeFor

* Fix up difficulty in other places

* Add challenges data jsons for all three games

* Add H2 global TC challenges

* Fix H1 challenge typeheader

* Fix Type fields in SavedChallenge

* Fix imports

* Delete backup file

* Reduce hard-coding of difficulty number

* Support versioned global challenges

* remove H2GlobalChallenges

* Add missing global Challenges

* Make versions a global variable

* run prettier

* Use Drop Ids instead of unlockables

---------

Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-04-05 20:02:25 +01:00
AnthonyFuller
235072b38c Make the Freelancer tile take in-game 2023-04-05 17:24:08 +01:00
moonysolari
79dc9b8fa0
Support "Discover [Location]" challenges (#180) 2023-04-04 09:15:35 -04:00
moonysolari
dcf68d064d
Add VR bricks to side missions (#178)
* Update snow festival json

* Update holiday hoarders json

* Add vr for special assignments

* Add VR for PZ missions

* Add VR bricks for extra missions

* run prettier

* Update contractdata/HOKKAIDO/HOKKAIDOSNOWFESTIVAL.json

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-04-03 14:55:16 -04:00
Reece Dunham
ed5e0428d8
Additionally target v7 PRs
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-02 01:07:45 -04:00
Reece Dunham
da1d1e4818
Slight unification to 2016 stashpoint logic
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-02 00:59:47 -04:00
Reece Dunham
ba3e8e1f96
Node 18.15.0
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-02 00:35:02 -04:00
Reece Dunham
a1961521fd
Add assertion that game version is provided in campaigns
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-02 00:25:32 -04:00
Reece Dunham
3421ee385b
Fix some style issues
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-02 00:22:26 -04:00
Reece Dunham
8fcd4db87d
Add assertions to prevent type confusion
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-02 00:10:14 -04:00
Reece Dunham
9d8767a076
Add CodeQL (#142)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-01 23:47:04 -04:00
Lennard Fonteijn
bb63c06b31 Fixed location mastery from not always properly showing in the menus 2023-04-02 02:06:07 +02:00
Lennard Fonteijn
307ab08d89 Fixed all challenges JSON-files to contain the expected data format 2023-04-01 23:26:02 +02:00
Lennard Fonteijn
87b2743ce3 Fixed drops from not showing on their respective challenges in the menu 2023-04-01 23:26:02 +02:00
Lennard Fonteijn
10ce9c14e8
Fixed default log levels for "run-dev" (#175) 2023-03-31 20:17:53 -04:00
moonysolari
d8334918bf
Update Elusive Target jsons to add VR bricks (#169)
* Update et jsons

* Update ET list
2023-03-29 22:30:17 -04:00
moonysolari
fd3ca51f85
Store inclusion data for global challenges (#167) 2023-03-29 17:38:48 -04:00
moonysolari
3906b1e348
Remove recon gear and update inventory items list (#168)
* fix some ownerships

* Remove recon gear

* Updated legacy unlockables
2023-03-29 16:02:15 -04:00
Reece Dunham
f779d15d44
Bump version to v6.0.0
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-03-27 09:08:56 -04:00
Reece Dunham
55b3a8928b
Update ingame roadmap
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-03-27 09:06:31 -04:00
moonysolari
f961c08846
Fix SA for freelancer (#164) 2023-03-26 17:20:55 -04:00
Reece Dunham
732632f212
Update the image pack
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-03-26 17:10:27 -04:00
Lennard Fonteijn
f732942e39
Add support for logging to console and files (#159)
* Add support for logging to console and files

* Added support for internal and custom log categories
Added support for disabling log categories
Added support for setting desired log levels for both console and file
2023-03-26 14:59:57 -04:00
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
Reece Dunham
a4114c0926
run prettier
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-03-23 10:01:33 -04:00