Commit Graph

142 Commits

Author SHA1 Message Date
Chomp 4e89fbbfd8 Fixed typos and improved code readability 2025-06-14 12:42:19 +01:00
agavalda 610e971568 Use double for quantity instead of int (#393)
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-06-13 09:25:12 +01:00
Chomp 9c37b79c1d Improved GetDeltaQuests description 2025-06-12 23:05:28 +01:00
Chomp c2e0193450 Fixed inverted logic inside GetDeltaQuests 2025-06-12 23:03:29 +01:00
Chomp 6175e37044 Add todo for RewardType.WebPromoCode 2025-06-11 21:38:18 +01:00
Chomp 327ad33bb6 Added comments
Made fields readonly
2025-06-11 15:05:12 +01:00
Chomp e8b938faab Cleaned up GetPresetItemsByTpl and GetPresetItems 2025-06-10 16:24:42 +01:00
Chomp 650b94540b Expanded ragfair.offerItemCount functionality. #388
Is now defined per item type with a fallback.

Currently only ammo boxes have custom values (0 to 3 vs the default 7 to 30)
2025-06-10 16:20:00 +01:00
Chomp 05354d8cbc Cleaned up CompleteQuest
Optimised `GetDeltaQuests`
Simplified `FindAndRemoveQuestFromArrayIfExists`

Various comment formatting fixes
2025-06-10 14:57:36 +01:00
Chomp c8a6943eaf Fixed GetQuestsFromProfileFailedByCompletingQuest not processing multiple failure conditions #345 2025-06-10 10:32:29 +01:00
Chomp f4d9649f0b Improved how SPT bot responds to 'help' command
Added GARBAGE to command list #366
2025-06-09 17:17:51 +01:00
Chomp 57c9ff477e Localised various error messages 2025-06-09 09:35:47 +01:00
Chomp cfd2116fb6 Allow altering the parentId of values placed inside handbookPriceOverride 2025-06-08 21:34:29 +01:00
Chomp e1588f8c8b Fixed profile viewing of other players throw null errors #377 2025-06-08 16:00:07 +01:00
Chomp a597c0e2a3 Improved dictionary access to prevent errors when production isn't found
Made some methods static
Comment improvements
Added keywords to spelling whitelist
Usings cleanup
Removed unused injections

#374
2025-06-08 11:18:54 +01:00
Chomp 1d5162c761 Various changes and fixes for things that have been bugging me
Removed/flagged unused props
Typo fixes
Use `FirstOrDefault` over direct index access
Log stacktrace on exception inside `CreateWeaponItems`
2025-06-08 10:40:40 +01:00
Chomp 4eac8d90fb Fixed limb effect not being nulled correctly inside TransferPostRaidLimbEffectsToProfile 2025-06-08 10:06:51 +01:00
Chomp 89106d5448 Refactored how skills are parsed, fixes issues with bot generation and end of raid profile parsing 2025-06-08 09:39:14 +01:00
Chomp 3a2f68a232 Fixed issues relating to gift codes with profile modifications
Updated enums to match client formatting and ids
Added `SkillClass` enum

#368
2025-06-07 23:08:21 +01:00
Chomp 2d67d8002b Send string representation of notification type enum to client to let profile changes work #368 2025-06-07 19:50:46 +01:00
Chomp fb31786ee2 Updated profile templates to be a dictionary, cleaned up all uses of it throughout code
Added `profileHelper.GetProfileTemplateForSide`
2025-06-07 12:17:28 +01:00
Chomp 85014c1ec5 Added comment to AddStashRowsBonusToProfile 2025-06-06 15:22:40 +01:00
Chomp c264b87c30 Created CreateRagfairNewRatingNotification and show when player offer fails and is returned 2025-06-06 12:27:50 +01:00
Chomp 206d57f9da Fixed SPT bot not showing new lines #361 2025-06-05 15:19:06 +01:00
Chomp fee5a1f4dc Fixed AddStashRowsBonusToProfile due to inverted null check fixes #360 2025-06-05 15:10:33 +01:00
Chomp 2019e7d182 Renamed variable for clarity 2025-06-05 12:06:45 +01:00
Chomp ecad23cd31 Improved ExtensionData checks, moved closer to source 2025-06-05 08:28:13 +01:00
Archangel 3fc3ecc0fc Set PMC types statically 2025-06-05 07:31:05 +02:00
Chomp 37bd3a433c Handle various locations where ExtendedData causes issues 2025-06-04 21:28:29 +01:00
Jesse 787752b555 Async task OnUpdate (#355)
* Make OnUpdate a task instead a void, handle OnUpdate better by running it in it's own task

* Make helper transient, resolve mod loading issues
2025-06-04 20:53:39 +01:00
Chomp 112afd3391 Fixed flea logic that prevented offers being listed for complex items (items /w children)
`GetItemsToListOnFleaFromInventory` would not keep the root item at index 0, client requires this

`FindAndReturnChildrenAsItems` now inserts root item at index 0
`CreateMultiOffer` now looks for root item by its id

Updated `CreateSingleOffer` to not choose first inventory item as root, search for it instead

Fixes #318
2025-06-04 17:30:26 +01:00
Chomp adf65f497c Fixed quests not failing other quests #345 2025-06-04 15:53:12 +01:00
Jesse ff1dfa54ae Do a small pass on SPT's config's to reduce warnings and cleanup (#348)
* Do a small pass on SPT's config's to reduce warnings and cleanup

* Revert

* Revert EFT models

* Set list as null
2025-06-04 14:46:52 +01:00
Chomp 54fe3cf7c5 Added todo for reward type we dont currently handle 2025-06-02 11:59:21 +01:00
Chomp 8ae5aaa0ee FIxed reward-type_not_handled error message not showing ID value 2025-06-02 11:55:05 +01:00
Chomp c42449b150 Added handling of SHOOTING_RANGE_MARK to AddHideoutCustomisationUnlock() Resolves #339 2025-06-02 09:43:03 +01:00
CWX f9eb5cd136 change for lastOrDefault, return null 2025-06-01 23:43:11 +01:00
CWX cc6f116e18 Value is now not an object, give it straight to it and no double to string to double shenanigans 2025-06-01 21:35:10 +01:00
hulkhan22 44332cf785 Fixes Usec armbands being lootable and skill rewards resetting to 0 2025-06-01 18:31:02 +02:00
Chomp a2d2a44a2f Improved logic flow inside AddItemsToInventory 2025-05-30 20:05:51 +01:00
Chomp 7ebafa402b Improved where logic inside RemoveFiRStatusFromItemsInContainer 2025-05-30 20:05:39 +01:00
Archangel 4e3c755e90 Remove AppContext, store profile related data in ProfileActivityService 2025-05-30 19:36:23 +02:00
Chomp fedfe1bf8e Renamed method: RemoveFiRStatusFromItems`` 2025-05-30 14:32:07 +01:00
clodanSPT ee51e1fcab Refactored pre spt mod loader to user IOnLoad, moved Watermark to IOnLoad as well (#313)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
2025-05-30 11:03:08 +01:00
Cj ab1886f3ab Fix comment formatting 2025-05-29 13:31:57 -04:00
Chris Adamson 541f326409 added a lock for trader buy method (#303)
* added a lock for trader buy method

* moved the lock higher
2025-05-29 17:25:09 +01:00
Jesse 636e250085 Handle AlreadyRunning with TcpListener to stop tons of exceptions (#302)
* Handle AlreadyRunning with TcpListener to stop tons of exceptions

* Use same properties as web server
2025-05-29 12:56:37 +01:00
clodanSPT 1968afccba Fixes and logs (#301)
* Added safety checks around dictionary lookups for Areas Stages

* Added lots of debug logs for websocket handling

* Removed debug comments

---------

Co-authored-by: Alex <alex@dm-me-for-questions.com>
2025-05-29 11:06:32 +01:00
CWX deaa2d8530 Merge branch 'develop' into just-oblivion-memes 2025-05-28 20:41:54 +01:00
Chris Adamson 173fc6b8a9 I saw a mudcrab the other day. Horrible creatures 2025-05-28 13:47:13 -05:00