0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

2564 Commits

Author SHA1 Message Date
Chomp
1f6a2c8435 Add function to get active seasonal events 2024-12-31 17:57:33 +00:00
Chomp
89b4620b25 Improved seasonal event setting typing 2024-12-31 17:56:57 +00:00
Chomp
545707d0bb Implemented system that purges Christmas containers when outside of relevant event 2024-12-31 17:56:23 +00:00
39b95ac2fa Adopt orphaned items sent with the mail service 2024-12-31 13:24:03 +01:00
Chomp
828dcf83ab Fixed send message failing 2024-12-31 11:25:45 +00:00
Chomp
02082ef6f6 Send new years 2024 gift during NEW_YEARS event 2024-12-31 11:25:20 +00:00
Chomp
00814dc489 Moved EntryType into its own file 2024-12-31 10:20:21 +00:00
dbed08a747
Static Program Properties & Simplified Entry Points (#1010)
Significant refactoring of globals and entry points. Oh my.

- The global variables previously accessible throughout the codebase
have been restructured as private static properties of the Program
class. Public static getter methods have been added to allow read access
to these properties throughout the codebase.
- Entry points, which were dispersed across multiple files, have been
consolidated and simplified into a static method on the Program class,
making the entry logic easier to follow.
- Removed unnecessary ~~globals~~ Program static properties.
- Adjusted imports and references across the codebase to reflect the new
structure.

Try not to focus on the `gulpfile.mjs` changes, as it won't be around
for much longer. *[winky face]*

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-31 10:11:08 +00:00
Chomp
539b505c61 Added null protection to updateGlobalEvents 2024-12-31 10:07:21 +00:00
Chomp
02832a1c53 Refactored seasonal and event date checking code into one function
Capitalised and localised `Event is active` text
2024-12-31 09:57:23 +00:00
Chomp
1e486c867b Updated cacheActiveEvents() to treat eventEndDate as inclusive
Moved enabled check to be earlier
2024-12-31 09:41:10 +00:00
Chomp
c46d97a65a Updated getActiveWeatherSeason() to treat eventEndDate as inclusive 2024-12-31 09:25:42 +00:00
Chomp
91a9cb8964 Expanded weather system to have per-season weather parameters
Adjusted winter weather to be less sunny and more snowy
2024-12-30 22:06:55 +00:00
a87dc96e77
Handle websockets asynchronously & Fix up typing on HTTP (#1008)
Should handle the websockets asynchronously, also has some typing
updates considering ws's server is not called Server anymore but is now
'WebSocketServer'

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2024-12-30 17:18:15 +00:00
Chomp
d1d2adcc78 Added function addMissingInternalContainersToProfile that runs on profile creation 2024-12-30 17:10:52 +00:00
Chomp
43a0950e5b Removed unused code from getHandledRoutes 2024-12-30 16:56:35 +00:00
Chomp
d5f9c1f253 Implemented updated endpoint for applying clothing to a players character
Fixed dogtag customisation choice not being saved to the correct parameter

Removed dead endpoint
2024-12-30 16:55:32 +00:00
Chomp
502f08c414 Added globalLootBlacklist to pmc config
Reworked `PmcLootGenerator` to make use of new property
Unified how pocket/vest/backpack slots create blacklist
Utilise set when combining blacklist sources

Blacklisted prestige dogtags from reward pool and PMC loot
2024-12-30 16:27:24 +00:00
Chomp
3abc73e802 Code lint 2024-12-30 09:56:39 +00:00
Chomp
a4f6fdfa70 Log when generating flea offers 2024-12-30 09:55:26 +00:00
Chomp
a29533aa9f Added handling of prestige level dogtags 2024-12-29 20:47:59 +00:00
Chomp
12bfdb135e Fixed incorrect ID issue 2024-12-29 20:43:52 +00:00
Chomp
d8ed1ab9c0 Fixed typo issue 2024-12-29 20:35:53 +00:00
Chomp
b6bb71ada0 Improved getCustomisationStorage() handling of new profiles just after creation 2024-12-29 20:31:32 +00:00
Chomp
a812f30cc0 Fixed replaceIDs replacing hideoutCustomizationStashId IDs 2024-12-29 20:19:25 +00:00
Chomp
d32638cd7d Updated getCustomisationStorage endpoint to take into account calling profiles game version 2024-12-29 20:11:14 +00:00
Chomp
96605479cf Cleaned up prestige related types 2024-12-29 14:19:25 +00:00
Chomp
411925654b Updated JSONs
Regenerated production quest ids + item tpls
2024-12-29 14:08:59 +00:00
Chomp
446dffba49 Added type to prestige endpoint 2024-12-28 10:09:42 +00:00
Chomp
b77c2825e3 Cleaned up type duplication inside locationbase 2024-12-28 09:55:19 +00:00
Chomp
987137c38f Fixed return type errors 2024-12-28 09:49:40 +00:00
Chomp
1f01bea20a Updated location path data 2024-12-28 09:49:14 +00:00
6d92b4d9c0
Pulls type from request.customisation instead of request 2024-12-27 21:34:47 -05:00
ad94814c9a
Adds default object key to abide by type 2024-12-27 21:33:12 -05:00
059b4b8a30
Adjusts case of import 2024-12-27 21:32:41 -05:00
Chomp
2decc21346
Fixed profile creation not using supplied name 2024-12-27 20:46:15 -05:00
Chomp
cf9a901d69
Fixed typo 2024-12-27 20:45:40 -05:00
Chomp
a5397ba5ab
Fixed loadImages() 2024-12-27 20:45:31 -05:00
Chomp
3b945b8b84
Set BotLocationModifier.KhorovodChance value during christmas 2024-12-27 20:45:04 -05:00
Chomp
cb68bf83c6
Added null guards 2024-12-27 20:43:08 -05:00
Chomp
4740fa8cf1
Enabled Khorovod tree during christmas 2024-12-27 20:43:00 -05:00
Chomp
48abbfcba3
Added implementation for setClothing
Fixed incorrect return type for `getStorage`
2024-12-27 20:42:44 -05:00
Chomp
c349bc4f63
Update location base JSONs + added new location property 2024-12-27 20:42:38 -05:00
Chomp
b8bb6b921f
Expanded new endpoints
# Conflicts:
#	project/src/callbacks/CustomizationCallbacks.ts
#	project/src/callbacks/HideoutCallbacks.ts
#	project/src/controllers/CustomizationController.ts
#	project/src/controllers/HideoutController.ts
2024-12-27 20:42:08 -05:00
Chomp
5d08bd501c
Stubbed out hideoutCustomizationApply event 2024-12-27 20:40:03 -05:00
Chomp
d495acc0a5
Improved generateUniqueBotNickname debug logging 2024-12-27 20:39:52 -05:00
Chomp
d2b71aedbd
Updated IHideout with Customization property 2024-12-27 20:39:47 -05:00
Chomp
d0259c5a93
include new enum 2024-12-27 20:39:34 -05:00
Chomp
98dbdbe003
Store exit taken on raid end and store in app context for future use 2024-12-27 20:39:28 -05:00
Chomp
04207555b9
Updated transit-related properties - TODO: check if request.transition is hydrated now
# Conflicts:
#	project/src/models/eft/match/IStartLocalRaidResponseData.ts
2024-12-27 20:38:59 -05:00