Commit Graph

112 Commits

Author SHA1 Message Date
Jesse d0af6acbe6 Move MathUtil methods to extensions (#432)
* Begin moving MathUtil methods to Extensions

* Add missing extension
2025-06-28 16:15:11 +01:00
Chomp 770d187061 Created WildSpawnTypeExtensions 2025-06-28 15:05:23 +01:00
Chomp 0c7f659042 Fixed GetAllBotDifficulties 2025-06-28 13:34:33 +01:00
Chomp da5644cfa2 made properties readonly 2025-06-28 12:53:21 +01:00
Chomp 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01:00
Jesse 22c71bee5b Helper methods extensions (#431)
* Remove unused model

* Start moving methods to extensions, cleanup code
2025-06-28 12:14:50 +01:00
Chomp a3dbd3176e Updated FindAndReturnChildrenByItems to be an extension method 2025-06-28 11:58:50 +01:00
Chomp 0a28dc4657 Moved GetScavKarmaLevel to extension method 2025-06-28 11:47:29 +01:00
Chomp 4babdb59ab Added QuestConditionExtensions removed questConditionHelper 2025-06-28 10:29:33 +01:00
Chomp d2d119f3b4 Added CurrencyTypeExtensions 2025-06-28 10:09:56 +01:00
Chomp 6126dc2394 Added item extensions 2025-06-28 10:04:52 +01:00
Chomp 0be02bc3f5 Created ProfileExtensions 2025-06-28 09:27:41 +01:00
Chomp b432a6d999 Updated GetAllBotDifficulties to iterate over enum instead of strings 2025-06-28 08:46:39 +01:00
Chomp d2267847a8 Deconstructed dictionaries to improve readability 2025-06-27 23:21:44 +01:00
Chomp f256cbf529 Resolved various editor warnings inside TraderController 2025-06-26 13:11:22 +01:00
Chomp c7a72ba6bc Removed magic strings from GetItemPrices 2025-06-26 13:05:08 +01:00
Chomp c91b6c4407 Improved accuracy of client/match/join and client/match/group/start_game 2025-06-26 11:14:24 +01:00
Archangel 0280815fbc Handle active profiles not existing if server is closed while client is running 2025-06-24 17:44:01 +02:00
chompDev 81766c7a1b .NET Format Style Fixes 2025-06-24 15:26:57 +00:00
Chris Adamson b8f33e5a90 null check for new profiles with no raid data 2025-06-23 19:48:03 -05:00
Chomp e0975c6958 Localised various error and warning messages 2025-06-23 11:38:26 +01:00
Cj b3dca61ac0 Break rest of repeatable quest generation code into components. Fix nullability of exploration generation and improve error handling, make new helper method, add pick random quest type method to controller (#419) 2025-06-23 10:03:56 +01:00
chompDev 1520cfadc3 .NET Format Style Fixes 2025-06-22 11:48:07 +00:00
Chomp 4b29aaf9d6 Fixed hideout area upgrades softlocking client when upgrading areas with containers
Removed unused injections

Renamed field to `_areasWithResources` and converted into hashset
2025-06-22 12:47:34 +01:00
chompDev ae417899b1 .NET Format Style Fixes 2025-06-22 10:33:34 +00:00
Chomp 7dde75053d Fixed Exploit - Selling item for any value when no other offers existing for item
`GetItemMinAvgMaxFleaPriceValues` ran after `CreatePlayerOffer`, resulting in the average price values using the players offer, skewing the results
2025-06-22 11:32:59 +01:00
Cj d68228b5c9 Quest config nullability and documentation (Part 2) (#415)
* Make Interp1 generic

* Finish quest controller nullability fixes

* More model and nullability improvements and fixes

* Rename `specificLocationChance`

* rename `bodyPartChance`

* finish comments
2025-06-22 09:04:45 +01:00
Archangel f7782e1b1a Begin cleanup of quest model & nullability in Quests & Achievements 2025-06-20 14:24:58 +02:00
Cj 445243aad5 Task: Quest config changes Part 1 (#407)
* Remove nullable and add properties, make side use an enum instead of a string.

* remove double semi-colon

* fix comment
2025-06-20 08:48:12 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp e869f6ebef Refactored ragfair code for improved readability 2025-06-16 13:00:06 +01:00
Chomp 4cc0d98a6a Removed PMC level check for repeatable Quest pool generation #395
they will always generate for both GZ variants
2025-06-15 09:14:53 +01:00
Chomp 5c83bf3925 Repeatable code cleanup 2025-06-15 09:03:39 +01:00
Chomp 8d0c9999bc Improved comments inside RemoveResourceFromArea 2025-06-14 11:44:14 +01:00
Chomp 6804258a1d Improved nullguard inside RemoveResourceFromArea + changed warnings to errors 2025-06-14 11:39:27 +01:00
Chomp 8754690748 Cleaned up logic inside AddContainerImprovementToProfile + Added nullguard 2025-06-14 11:31:51 +01:00
Chomp cc1196717c Fixed easy start profile templates lacking a Place of Fame stash #386
Fixed hideout stash item upgrades not being correctly sent to client
2025-06-13 13:22:45 +01:00
Jesse 83f629b407 Fix up AchievementController (#389)
* Stop blacklisted achievement profiles from counting up to total profile count

* Properly calculate percentage of profiles having achievements
2025-06-10 20:36:13 +01:00
Jesse 2c52012740 Further async changes (#387)
* Further async changes
- SaveServer & Backup Server are now async
- Anything that ties in with SaveServer saving (Such as callbacks) are now async
- Various async util methods added
- Removed two wrapper methods and switched code over to use the actual method

* Update test
2025-06-09 20:09:12 +01:00
Chomp 8179e5c86b Localised strings
Improved nullguards
2025-06-09 14:45:47 +01:00
Chomp d9132e5325 made class props readonly
Removed unused injections

Removed unnecessary .ToLower()
2025-06-09 11:47:49 +01:00
Chomp 57c9ff477e Localised various error messages 2025-06-09 09:35:47 +01:00
Chomp 609bad2431 Fixed selecting 'delete messages' on a dialog failing #378 2025-06-08 16:18:18 +01:00
Chomp e1588f8c8b Fixed profile viewing of other players throw null errors #377 2025-06-08 16:00:07 +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 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 e444a9a3b6 Small optimisation of GetOffers()
Only process the paginated trader offers before sending to client
2025-06-07 10:40:27 +01:00
Chomp 5b29ce761b Added resasonable defaults for call to _ragfairSortHelper.SortOffers 2025-06-07 10:31:22 +01:00