Commit Graph

125 Commits

Author SHA1 Message Date
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
Chomp 972dd997fc Fixed null being thrown when searching for an item that has no offers requiring it 2025-05-28 18:25:14 +01:00
Chomp 7f82fdbe1f Minor cleanup 2025-05-28 17:05:19 +01:00
Chomp 74a5310de0 Added nullguards surrounding laser and nvg checks 2025-05-28 11:44:14 +01:00
qe201020335 d3a819b00f Optimize chatbot with dictionary 2025-05-26 01:07:38 -04:00
hulkhan22 aef3a4202f Fix presentation of messages with items (rewards & insurance returns) (#265) 2025-05-21 22:29:34 +01:00
Chomp d88db583c1 Moved ItemSize into modules section, changed to record
Updated `GetItemSize` to accept `ICollection` instead of list
2025-05-21 11:34:02 +01:00
Chomp 8b3a5bbb90 Converted method comments to c# style
Made some protected properties readonly / static
2025-05-21 11:14:49 +01:00
Chomp 77547114de Converted comments to c# style inside AssortHelper
Improved readability of `RemoveItemFromAssort`
2025-05-21 10:57:54 +01:00
Chomp c9e28e05bb Moved in-game reward check even further up chain into ApplyQuestReward()
Replaced magic strings with string consts inside `IngameTraders` collection

Various comment improvements
2025-05-21 10:42:13 +01:00
Chomp e41002dc01 improved readability of GetQuestFromDb()
Added nullguards
Flagged return as nullable
2025-05-21 10:41:24 +01:00
Chomp da9920af49 Fixed typo 2025-05-21 10:38:37 +01:00
Chomp e41d4a10bf Added nullguards inside ApplyMoneyBoost()
Renamed variables to improve clarity
Converted comments
2025-05-21 10:37:51 +01:00
Chris Adamson e14f216209 skip btr driver and lightkeeper quest rewards (#262)
* skip btr driver and lightkeeper quest rewards

* remove new line

* fixed circular dep

* fixes based on feedback

* more feedback fixes
2025-05-20 23:02:55 +01:00
Chomp 604137bad1 Improved various comments inside ItemHelper
Moved values out of `ArmorItemCanHoldMods` and into frozen set

Added Tpls to spelling dictionary

Changed list parameters to be `ienumerable` or `icollection` where possible

Made `ArmorItemHasRemovablePlateSlots` use class property directly

Made `ItemHasSlots` return false when checked item doesn't exist instead of throwing an unhandled exception

Folded `HasBuyRestrictions` logic into one line
2025-05-20 12:34:22 +01:00
Chomp c8ad685081 Improved HasItemWithTpl and GetItemFromPoolByTpl 2025-05-20 12:00:01 +01:00
Chomp a9c33e1dfc Improved IsAttachmentAttached comments 2025-05-20 10:54:32 +01:00
Chomp 7fe20a49c9 Use nameof inplace of toString for _slotsAsStrings values 2025-05-20 10:51:49 +01:00