Walt I've got a bug report.
If a part doesn't have FireModeToggle
but still uses a weapon for other functions the upgrader would not add it properly to AutoTarget
or AutoTargets
. In this case it should have been set to the component's OperationalToggle
instead. As a result the game crashes because it can't find the FireModeToggle
.
Example crash message:
System.InvalidOperationException: No component named 'FireModeToggle' in part 'xyz'.
at Cosmoteer.Ships.Parts.Part.GetComponent[T](ID1 id) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 478
at Cosmoteer.Ships.Parts.Logic.PartModeToggle.OnAddedToPart(Part part) in C:\Users\Walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Logic\PartModeToggle.cs:line 72