Commit Graph

31 Commits

Author SHA1 Message Date
Jesse 5686f4a486 Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
2025-06-28 19:08:42 +01:00
chompDev d4d2ed0403 .NET Format Style Fixes 2025-06-28 15:15:48 +00:00
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 42e79c981b Converted FindAndReturnChildrenAsItems into extension method 2025-06-28 12:38:34 +01:00
chompDev d7b61e857c .NET Format Style Fixes 2025-06-22 08:12:25 +00:00
Chomp 8477cc6485 Refactored AddForcedDynamicLoot 2025-06-22 09:11:50 +01:00
chompDev 10880881b4 .NET Format Style Fixes 2025-06-22 07:43:05 +00:00
Chomp a266556b3c Rename method for better clarity as to its purpose 2025-06-22 08:42:30 +01:00
chompDev 81692bec65 .NET Format Style Fixes 2025-06-22 07:37:40 +00:00
Chomp 34d4de1d54 Fixed nullref in loot generation when Location has no item limits 2025-06-22 08:35:58 +01:00
chompDev c3463098be .NET Format Style Fixes 2025-06-21 14:16:39 +00:00
Chomp 1c207568a5 Moved loot generation logic from LocationLifecycleService into LocationLootGenerator 2025-06-21 15:16:01 +01:00
chompDev 203e30a637 .NET Format Style Fixes 2025-06-21 13:45:45 +00:00
Chomp 21bd868abe Added ability to track loot items and prevent more than a pre-defined amount from spawning
Replaced `location.json` `forcedLootSingleSpawnById` with `lootMaxSpawnLimits`

Added 5 item limit to `Labrys research notes` #290
2025-06-21 14:45:08 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 039c1fe678 Minor cleanup of LocationLootGenerator 2025-06-15 11:20: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
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
CWX 9bfd051725 dont calculate size twice 2025-05-03 13:06:46 +01:00
Chomp ab7cdd63ba Use same item size method as airdrop loot 2025-05-02 19:53:57 +01:00
Chomp 344ea6de35 Moved container methods around
Added code to validate items fit into airdrop crate

Updated `CreateForcedLoot` and `CreateRandomLoot` to return items with their children

Updated `SetFoundInRaid` to not add a upd to money/currency if it doesn't already have one
2025-05-02 19:48:28 +01:00
Chris Adamson de38f1fe88 try just the enum 2025-04-29 10:57:12 -05:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
Chomp 6faa69964d Improved comments inside GetSizeByInventoryItemHash and string comparisons 2025-04-20 19:00:52 +01:00
Chomp b281254bff Cleaned up AddLootToContainer 2025-04-20 16:31:14 +01:00
Chomp d1bdb7b99d Added early exit to AddLootToContainer when 0 loot item count is picked 2025-04-20 15:12:06 +01:00
Chomp 34cd52454d Made GetLooseLootMultiplierForLocation and GetStaticLootMultiplierForLocation safer 2025-03-28 16:14:35 +00:00
Chomp 0fa2c827e5 Simplified logic 2025-03-28 16:09:43 +00:00
Chomp b85a9eeb86 Fixed GenerateStaticContainers failure when checking if map has randomised container settings 2025-03-28 16:02:46 +00:00
Chomp 69e841e52c Correctly pass a double into FillMagazineWithRandomCartridge 2025-03-08 10:05:08 +00:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00