Generated turrets are stocked with the crates their weapons reload from

GenerateTurretLoadout calls the same StockAmmunition as ships; an ammo-fed turret otherwise went quiet after one magazine.
Test: generated turrets hold exactly the crates for each ammunition type they draw.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-11 03:12:36 +00:00
commit 35fa50f256
2 changed files with 20 additions and 0 deletions

View file

@ -76,6 +76,7 @@ public class LoadoutGenerator
var entity = new OrbitalEntity(ItemManager, null, hull, default, ItemManager.GameplaySettings.DefaultEntitySettings);
entity.Faction = Faction;
OutfitEntity(entity);
StockAmmunition(entity);
return EntitySerializer.Pack(entity) as OrbitalEntityPack;
}