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

104 Commits

Author SHA1 Message Date
2d7fdc0dc2
Various Async improvements (#1044)
- Done some slight refactoring to `DatabaseImporter` to get rid of the
old loading methods that have been sitting unused for sometime, as well
as slightly refactoring `loadAsync` for better readability and using
map's wherever possible, this should also yield a slight performance
improvement?
- Updated VFS to use node:fs/promises rather than our own promisfying of
those methods.
- Got rid of commands on VFS, I don't see why these are necessary
anymore? If there's a good reason to still leave these I can revert
this.
- Changed loadImages to loadImagesAsync

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-07 18:31:22 +00:00
7190557805
Biome Configuration Updates (#1042)
See 0d1e1ba3591458bb195812232d3b8c3345abbeaa for actual changes. The
rest is from running the `style:fix` script.

- Consolidated ignores
- Enabled for `ModCompilerService.ts`
- Added a format ignore line to `ModCompilerService.ts` to prevent
mappings from being affected
- Enabled for `jsonc` file types

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-01-07 15:36:08 +00:00
ed2b90fa0a
Various fixes so biome is happy (#1032)
- Changes to import typing for ILogger and ICloner
- Targets es2022 in compilerOptions (Matching the target in .swcrc)
because otherwise Biome doesn't seem to find a proper target.
- Fixes up the seasonal event typing
- fixes run:debug to target the correct file
2025-01-06 17:09:33 +00:00
Chomp
1676ea0d2b updated forced event system to be more generic - Fixed issue with weatherConfig.overrideSeason check 2025-01-04 12:56:46 +00:00
Chomp
9138248954 Fixed forceSeasonalEvent not correctly flagging properties as enabled when forcing christmas/halloween 2025-01-04 12:41:10 +00:00
Chomp
ad70c9a66e Expanded handleModEvent to make use of forceSeason, enableChristmasHideout, enableHalloweenHideout, addEventGearToBots and addEventLootToBots 2025-01-01 14:47:56 +00:00
Chomp
a0a9fcacb9 Improvemetns to seasonal event system
Extended christmas event to 7th of january

new years event has christmas event actions

Moved seasonal code into functions

Added more seasonal settings for events
2025-01-01 14:37:11 +00:00
Chomp
6628eb9bab Added system to allow adjustment of bot appearance by season
PMCs have higher weighting to wear winter clothing during Christmas
2025-01-01 11:21:50 +00:00
Chomp
1f6a2c8435 Add function to get active seasonal events 2024-12-31 17:57:33 +00:00
Chomp
02082ef6f6 Send new years 2024 gift during NEW_YEARS event 2024-12-31 11:25:20 +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
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
5a15aa348d Reset existing event data when caching currently active seasonal events 2024-12-24 19:13:02 +00:00
Chomp
952544f5d3 Revert "Improved ability for modders to adjust active seasonal events - Active events can be set via pre-db load event"
This reverts commit 4cd868aeb302515b879ed204397b567c73d2fcd2.
2024-12-24 19:09:51 +00:00
Chomp
4cd868aeb3 Improved ability for modders to adjust active seasonal events - Active events can be set via pre-db load event 2024-12-24 18:54:12 +00:00
Chomp
bb6c4cae6a Made SeasonalEventService.cacheActiveEvents() public 2024-12-24 09:10:27 +00:00
Chomp
7caec6efad Added system to insert items into bot storage areas during seasonal events - Used to add Christmas items to scavs 2024-12-18 23:51:25 +00:00
Chomp
ccc9a8ba5b Removed unused imports
(cherry picked from commit cdd1831f46005825913ca7a4d8ed89428b568528)
2024-12-13 17:06:53 +00:00
Chomp
07699e4144 Removed unused varaible 2024-12-07 11:42:09 +00:00
Chomp
6562d05142 Fixed configureZombies() incorrectly handling location ids 2024-12-01 10:21:47 +00:00
Chomp
063d1eaea8 Added forceSnow to seasonal mod event
Moved majority of code into `handleModEvent` to help modders handle custom events via method overriding
2024-11-30 14:13:18 +00:00
Chomp
dd88571e29 Flagged christmas gifts as being part of christmas event 2024-11-30 12:23:43 +00:00
Dev
75caa6d989 Fixed casing issue with getLocationFromInfectedLocation() 2024-11-21 13:16:13 +00:00
Dev
59eb80f29b Fixed configureZombies() not correctly handling factory or sandbox maps 2024-11-19 19:15:25 +00:00
Dev
ef7ed5870a Added spt friend code VERYSPOOKY to enable halloween/zombies 2024-11-15 19:01:27 +00:00
Dev
060c7f0988 Added system to replace hostility settings for an event 2024-11-11 21:18:41 +00:00
Dev
6ea51ce365 Updated JSONs with post-halloween data 2024-11-11 10:40:15 +00:00
Dev
5ed4802d9e Fixed infection rate value not applying 2024-11-04 20:35:35 +00:00
Dev
574300d8cb Improved logic used inside addEventBossesToMaps() 2024-11-04 09:47:12 +00:00
Dev
7159f3cca3 Pass infection rate into addEventBossesToMaps() so only maps with value > 0 spawn zombies 2024-11-03 23:25:49 +00:00
Dev
abc317b862 Added ability to disable access requirements for event 2024-11-01 20:25:18 +00:00
Dev
5534406449 Further progress on zombie spawning 2024-11-01 15:51:03 +00:00
Dev
edaec549c9 Expanded zombies configuration 2024-11-01 15:19:54 +00:00
Dev
8055a00fc8 Fixed addEventWavesToMaps() not adding waves to correct location + now wipes out existing wave data 2024-11-01 13:22:16 +00:00
Dev
140b4b4619 groundwork for Halloween zombies event 2024-10-31 23:24:49 +00:00
Dev
8863053786 Rename bitcoin for April 1st event 2024-10-29 16:04:54 +00:00
Dev
3c3877d753 Added call to handleModEvent() inside updateGlobalEvents() to allow modders to override with their own implementation 2024-10-27 17:25:11 +00:00
Dev
bc3ac3d3e6 Added ability to enable/disable certain sub-events during seasonal events 2024-10-27 15:37:18 +00:00
Dev
22b6ee2741 Added new april 1st event 2024-10-26 16:39:31 +01:00
Dev
5a6dd6f5df Removed unnecessary SNOW seasonal event, handled by seasons instead 2024-10-26 16:12:15 +01:00
Dev
731d9f3f0b Added enabled property to events config + wire up 2024-10-25 11:53:18 +01:00
Dev
9eba62d5e2 Moved code from gameStart() into server start via new class PostDbLoadService
Fixed player adding their name multiple times to PMCs inside `addPlayerToPMCNames()`

Updated `enableSeasonalEvents()` to not require a session id, moved player-specific code into new function `givePlayerSeasonalGifts()`
2024-10-22 13:33:07 +01:00
Dev
0b729fba11 Improvements to how weather temperature is calculated - takes into account current season
Centralised the season override into `getActiveWeatherSeason()`
Adjusted weather values based on client data
2024-10-17 13:05:01 +01:00
Dev
8114271faf Added method comments 2024-10-13 12:09:47 +01:00
Dev
ab1422bc40 Updated interfaces to follow correct naming convention
Removed some interface duplication
2024-09-24 12:47:29 +01:00