Commit Graph

183 Commits

Author SHA1 Message Date
Chomp db34eaa501 Updated various methods to accept IEnumerable instead of List 2025-07-23 10:57:49 +01:00
Chomp 829f227579 Improved null check against mongoId 2025-07-23 08:51:38 +01:00
Chomp 731b79519f Rename method to GetItemWithChildren 2025-07-22 20:43:08 +01:00
Alex 5bbf671acd Refactored unit tests to use NUnit and added DI usage 2025-07-22 19:41:34 +01:00
Chomp 02b0c23cba Created CreateFleaOfferDetails 2025-07-21 14:38:00 +01:00
Chomp 3901a91f45 Improved how ragfair offer creator status is checked - store creator type in offer
Converted `IsTraderOffer` into extension method
string to mongoid conversions
2025-07-21 13:36:51 +01:00
Chomp 776c5454ad Fixed pmc loot overrides from bear/usec.json not applying correctly 2025-07-20 11:35:07 +01:00
Chomp 80e0637b26 string to mongoid conversion
Removed unnecessary nulls

Cleaned up access levels for methods in `BotGenerator`
2025-07-20 11:33:25 +01:00
Chomp 737776c99d Made use of Math.Clamp to simplify logic across server
Made all fence rep clamping use min/max values from config instead of magic values
2025-07-20 10:29:34 +01:00
Chomp d7f7d6c3c6 Renamed variable to ensure consistency 2025-07-19 23:08:46 +01:00
Chomp 5142f6b689 Reduce allocations inside AddAmmoToSecureContainer 2025-07-19 22:51:21 +01:00
Chomp 02d079985f Updated pmc dogtag generation systems to use weights + prestige tags 2025-07-19 22:26:22 +01:00
Chomp 43cc325da2 Removed unnecessary clone of db when generating flea offers 2025-07-19 14:08:29 +01:00
Chomp 0e72f9e21c Generate player scav items using "assault" randomisation settings 2025-07-18 16:21:54 +01:00
chompDev 67b886127c .NET Format Style Fixes 2025-07-18 15:06:05 +00:00
Chomp 38fb2454c7 Various micro-optimisations 2025-07-18 16:05:29 +01:00
Chomp 50f684537d Expanded max loot in pmc container systems
Now allows for per-map multipliers + pocket + vest loot uses same level-based value as backpack

labs multiplier = 2
labyrinth = 4

Removed nullability from some properties
2025-07-17 18:25:31 +01:00
Chomp b94d625362 string to mongoId + Various small refactors 2025-07-16 21:29:35 +01:00
chompDev 4393feaafa .NET Format Style Fixes 2025-07-16 13:57:00 +00:00
Chomp dfe39a0395 Fixed typo + use FirstOrDefault instead of direct index access 2025-07-16 14:56:24 +01:00
Chomp fdfbf66c1b Removed unncessary nulls 2025-07-16 13:26:09 +01:00
Chomp f3482e28d9 Removed unnecessary nulls from Globals class 2025-07-16 12:20:19 +01:00
chompDev 1b2b2c04f9 .NET Format Style Fixes 2025-07-15 09:38:23 +00:00
Chomp 2639504471 String to MongoId conversions
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01:00
chompDev c8faa33b51 .NET Format Style Fixes 2025-07-14 21:30:15 +00:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +01:00
Chomp 5ef2271a29 Converted collections to their frozen counterparts for improved lookup speed 2025-07-14 19:56:20 +01:00
Chomp 3aa13dd46b Removed reflection from AdjustBotAppearanceValues
More string to MongoId conversions
2025-07-14 18:42:42 +01:00
Chomp 0ec5aeab91 Removed FilterBlacklistedGear, same functionality can be done via editing the equipment's weighting to 0 2025-07-14 17:57:32 +01:00
Chomp 4d1ef0d326 Improved FilterBlacklistedGear logic 2025-07-14 17:41:25 +01:00
Chomp d99416a5a4 Removed use of reflection inside RemoveChristmasItemsFromBotInventory
Replaced more strings with mongoIds
2025-07-14 17:32:09 +01:00
Chomp 5d9a97ce5b Converted customisations ids to mongoIds 2025-07-09 17:24:12 +01:00
Chomp 4ba9a9f0d4 Correctly supply ID of voice not name of voice when generating bot 2025-07-09 17:16:17 +01:00
Chomp d5fc9be339 Removed Voice from profile.info
Added 'voice' to `profile.Customisation`
2025-07-09 17:02:31 +01:00
Chomp 7bda1b525f Updated acceptableFileExtensions to be a frozenSet
Removed more boxing
2025-07-07 13:31:39 +01:00
Chomp 0137af1838 String to MongoId changes 2025-07-07 12:42:10 +01:00
Chomp 61f62f191d Converted more strings to mongoIds and fixed issue with buying items from pmcs on flea 2025-07-07 11:56:19 +01:00
Chomp 266b6bcc10 Fixed build 2025-07-07 09:50:41 +01:00
Cj 448c258600 update mongoIds, remove underscores from injections in generators (#460) 2025-07-07 09:46:51 +01:00
Chomp 3d11031dc6 Converted sessionIds from strings to MongoId struct 2025-07-07 09:34:43 +01:00
chompDev 772fb40101 .NET Format Style Fixes 2025-07-06 21:23:01 +00:00
Cj 090d7b6494 change vars to MongoId, remove underscore from injections, fix bug introduced from last PR 2025-07-06 16:40:08 -04:00
Chomp fa674d6add Converted RemapRootItemId into extension method 2025-07-05 17:46:58 +01:00
Chomp f140e1e106 Converted ReplaceIDs into extension method 2025-07-05 17:25:59 +01:00
chompDev 7dc5bb106d .NET Format Style Fixes 2025-07-05 11:35:33 +00:00
Chomp 4f5571c2d4 Converted more ids to MongoId 2025-07-05 12:35:03 +01:00
chompDev 1af4834336 .NET Format Style Fixes 2025-07-05 10:03:38 +00:00
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
chompDev df3e7c9210 .NET Format Style Fixes 2025-07-04 18:30:22 +00:00
Chomp 01cd251b68 Moved more code into extension methods 2025-07-04 19:29:43 +01:00