Dev
612b1b7940
Localized more warnings
2024-05-24 16:42:42 +01:00
Alex
d13e86ba46
Rebranding to SPT ( !345 )
...
Rebranded src code and scripts to SPT
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/345
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-21 17:59:04 +00:00
Refringe
cb169a18b9
Project Code Format
...
Ran the `npm run format` command to bring the entire project in-line with the formatting rules.
2024-05-17 15:32:41 -04:00
Dev
d95423b0f1
Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.9.0-DEV
...
# Conflicts:
# project/assets/configs/core.json
# project/package.json
# project/src/models/eft/common/IGlobals.ts
# project/src/routers/dynamic/BundleDynamicRouter.ts
2024-05-15 16:39:41 +01:00
Refringe
14e8f8fa19
Take your brackets back!
...
I don't want em'. Grumble. Ahem...
This change allows for "extra" parentheses to be added in situations where, without them, the code could possibly, potentially be seen as maybe a little-bit, tiny confusing.
Also, fixes a bunch of other ESLint errors. Mostly down to naming warnings now. Mostly.
2024-05-13 17:04:23 -04:00
Alex
f8d1227dfd
Introduced a new ICloner interface with 3 implementations, one of them being a recursive cloner which is faster and more efficient than its counterparts by more than 50% ( !328 )
...
Co-authored-by: clodan <clodan@clodan.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Co-authored-by: chomp <chomp@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/328
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-13 17:58:17 +00:00
Dev
ac5103390c
Added nullguard check inside generateLoot()
to prevent 380 mods killing bot generation
2024-05-11 16:21:39 +01:00
Refringe
50c7a26a58
ESLint Pass
...
This is the first pass of ESLint on the codebase.
ESLint formatting is less strict when it comes to line-length and line-breaks then dprint/biome, so if you see formatting that you don't like... fix it! It shouldn't require a configuration change.
- This should merge clean into master (when the time comes).
- This will not merge clean into `3.9.0-DEV`, but the conflicts aren't that bad.
2024-05-07 23:57:08 -04:00
Dev
99444c7237
Added config to not included secure container loot in PMCs - set to false by default
2024-05-03 21:31:24 +01:00
chomp
b6926c1bf9
Improved about 5-10% performance on botgen and fixed bug that would skip containers when generating items that wouldnt fit in pockets ( !314 )
...
Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/314
2024-04-29 13:27:07 +00:00
Dev
b305ffdc24
Add currency
to generation configuration for each bot
...
Fix various missing properties in some bot jsons
2024-04-18 11:56:45 +01:00
Dev
fe7ef06c6c
Dont force regen stims into PMC secures, may cause problems
2024-04-11 16:29:52 +01:00
Dev
ef2442178a
Implement weights for food/drink on bots
2024-04-08 12:31:51 +01:00
Dev
e3b31ed972
Added extra IFAKs to PMCs + replaced morphine with etg regen stims
2024-03-20 15:10:39 +00:00
Kaeno
480683b25b
Remove grizzly from PMC secured container to avoid dropping them on the ground.
2024-03-19 12:18:09 +00:00
Dev
1098a9d869
Fixed wallets not having money stacks in them
...
Increased chance of money in wallets
some lint fixes
2024-03-10 14:13:08 +00:00
Dev
479898ecab
Centralise check for upd object / creation if it doesnt exist into one helper function inside ItemHelper
...
Some minor formatting updates
2024-03-07 09:18:39 +00:00
Dev
3846363758
Added system to weight stack size of money in bot inventories
...
Removed `dynamicLoot` system from pmc config as its been replaced with this one
#546
2024-03-05 12:24:09 +00:00
Dev
63d5da4c18
Wallet loot improvements:
...
Added % chance to have loot to config
Added currency added weigfht system to config (only roubles by default)
Added allowed wallet types array to config
Added WZ wallet to pool of wallets to add money to
Fixed bug where itemCount type was incorrect
2024-03-04 20:18:53 +00:00
Dev
a5450c6552
Moved addItemWithChildrenToEquipmentSlot()
from BotWeaponGeneratorHelper
to botGeneratorHelper
2024-02-25 11:45:34 +00:00
Dev
6d84dbb2d4
Commnent improvement
2024-02-22 21:51:44 +00:00
Dev
104fd03b39
FIxed infinite loop when only one item exists in pool and bot has maxed out number of that item already
2024-02-22 21:48:57 +00:00
Dev
5e496af804
Move itemLimit code to be across all bot containers instead of per
...
Remove a tpl from loot pool once an item limit has been reached - prevents it being picked over and over
Remove loot data from pmc jsons as its generated dynamically, adding data into jsons now acts as an override for the dynamic generation
Reduced rouble max count to 1 for PMCs
Split PMC loot caches by side (usec/bear)
2024-02-22 16:34:15 +00:00
Dev
ded7142774
Comment improvement
2024-02-22 13:55:57 +00:00
Dev
a26ff26a4a
Add code to add items to a wallets flee slot if available
2024-02-22 13:52:59 +00:00
Dev
25a4e64e9a
Invert Currency check
2024-02-21 18:37:24 +00:00
Dev
9525953444
Add code to insert roubes into wallets on bots
2024-02-21 18:36:45 +00:00
Dev
cc0f543bdf
Rewrote how bot loot is stored + chosen during bot gen
...
All loot is now weighted - weights come from offline-live bot dumps
Removed `lootNValue` - loot is no longer picked by its value
Regenerated bot loot files - i saw some additional weapons get added to scavs
2024-02-21 17:36:27 +00:00
Dev
9819ac3737
Mimic live behaviour for ammo box locarion values
2024-02-11 12:12:27 +00:00
Dev
7d97bc4945
Correctly generate ammo boxes for dynamic/static/bot loot with one stack of cartridges. It seems the 0.14 client update now handles ammo boxes having a single stack and properly splits the ammo inside it
2024-02-08 16:01:38 +00:00
Dev
72345abb4a
Force plates to spawn in armor items found inside PMC backpacks
2024-02-06 10:53:08 +00:00
Refringe
3a2b24b9b8
Simple Parameter Reassignment Issues
...
Addresses some of the more simple linting errors regarding the reassignment of function parameters.
2024-02-05 19:03:26 -05:00
Dev
63603f5d9a
Reduce grizzly count added to PMC secure to 1 + morphine to 2
2024-02-04 14:43:37 +00:00
Dev
ec9a877cd4
Force item limits to be used with special loot items
2024-02-03 17:34:08 +00:00
Refringe
90492f3aa2
Formatting
...
Have you been using the recommended VSCode extensions? ;)
2024-02-02 15:00:21 -05:00
Dev
1c9acbbc2e
improve bot generation time
2024-01-19 19:21:51 +00:00
Dev
34b9d318a3
Pull some code out of addLootFromPool()
into its own function
2024-01-19 11:57:25 +00:00
Dev
f3f008e0ec
Rename function to help with clarity
2024-01-19 09:52:56 +00:00
Dev
bb741f681d
Store and process secure container loot items for bots
...
Give gifter more items
2024-01-18 12:07:32 +00:00
Dev
cb18d251ba
Improve selection of items to add mods for:
...
quest rewards
bot loot gen
map loot gen
fence assort gen
Updated `removeRandomModsOfItem()` to also skip slots with a _required prop
2024-01-11 17:42:58 +00:00
Dev
a9c36ec205
Fix issue with armors as quest rewards not being sent with soft inserts
...
Centralised a soft insert check into `ItemHelper`
Add extra base types to `generateGearPool()` in equipment bot pool service
2024-01-09 16:49:59 +00:00
Dev
f3964639bd
Rename mods
to weaponMods
and add new object equipmentMods
...
regenerate bot jsons to include this new data (includes correct inclusion of equipment slot "TacticalVest" which was previously missing)
Fix issue with PMM ammo causes generation issues
2024-01-09 15:31:56 +00:00
Dev
bac86262d4
Improve handling of equipment mod generation
2024-01-09 10:30:00 +00:00
Dev
15d53a2d38
Fix armor in bot backpacks having no soft inserts
...
centralise code that adds mods to equipment into one location
2024-01-08 23:27:18 +00:00
Dev
9e95e1bbac
prevent random ammo stacks going above 60
2023-12-17 22:36:47 +00:00
Dev
18dc76ec2c
Improve handling of adding items to a bot container when the items type is incompatible with container
2023-12-08 16:27:34 +00:00
Dev
cc488477fb
Logging improvements
2023-11-27 17:01:38 +00:00
Dev
3c0e6a34f2
Improve addItemWithChildrenToEquipmentSlot()
, Make it return different result when:
...
There are no containers to add item to
Unknown reason
Improved handling of when container has no space for item
Improve `ExternalInventoryMagGen.process()`, Handle edge case when a weapon with a default internal magazine but weapon uses external magazine
Improve most locations that call `addItemWithChildrenToEquipmentSlot()` to log failure reason
2023-11-24 16:05:58 +00:00
Dev
27e16e09d7
log when addLooseWeaponsToInventorySlot()
fails to add weapon to bot inventory
2023-11-24 15:26:41 +00:00
Refringe
4ac12ef70a
Formatting/Linting Changes ( !168 )
...
These are the formatting & linting configuration changes from the `3.8.0` branch and the changes that they make to the overall project.
The majority of these changes are from running two commands:
`npm run lint:fix`
`npm run style:fix`
This has already been run on the `3.8.0` branch and this PR should make `master` play nicer when it comes to merges going forward.
There are now four VSCode plugins recommended for server development. They've been added to the workspace file and a user should get a UI notification when the workspace is opened if they're not installed.
The four plugins are:
https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
https://marketplace.visualstudio.com/items?itemName=dprint.dprint
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
https://marketplace.visualstudio.com/items?itemName=biomejs.biome
Once installed they should just work within the workspace.
Also, be sure to `npm i` to get the new dprint application.
Co-authored-by: Refringe <brownelltyler@gmail.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/168
2023-11-16 21:42:06 +00:00