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

98 Commits

Author SHA1 Message Date
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
Dev
5fd9271491 Updated various interfaces to use correct naming scheme
Added `IGroupPostion`
2024-09-24 11:26:45 +01:00
5740774a46
Apply Biome Formatting
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
2024-07-23 11:12:53 -04:00
edfe995c52 Initial implementation of an ItemTpl and Weapon enum generator (!364)
ItemTplGenerator will create a full ItemTpl.ts and Weapons.ts file with all items and weapons respectively
Renamed WeaponTypes to Weapons to better indicate its new format
Updated all references to these enums to use the new names
New npm command `npm run gen:items` to run this tool

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: SPT/Server#364
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-06-16 08:33:01 +00:00
Dev
f8bd65ed90 Replaced various array.find() with array.some()
Rewrote `tagItem()` to use `.find()`
2024-06-13 13:41:29 +01:00
Dev
8c05345b85 Replaced various magic strings with enum values
Added `itemHelper.getItemFromPool()`
2024-06-13 10:53:07 +01:00
Dev
ca642b94a7 Reworked gift sending/storage sytem to not store the max sends in profile and use the existing gift data
Fixed `sendPraporStartingGift()` not sending gifts
Expanded `GiftService` to include methods to get gift by id / all gifts / all gift ids
2024-06-09 09:13:38 +01:00