diff --git a/data/default_fireunits.json b/data/default_fireunits.json index 863ba9b..ddbf0cc 100644 --- a/data/default_fireunits.json +++ b/data/default_fireunits.json @@ -14,6 +14,21 @@ "EORange": 8000.0, "IRRange": 5000.0 }, + { + "Id": "ground-light", + "Name": "轻型地基火力单元", + "PlatformType": 1, + "GunCount": 2, + "ChannelsPerGun": 4, + "ChannelInterval": 1.0, + "Cooldown": 5.0, + "AmmoChangeTime": 30.0, + "MuzzleVelocity": 800.0, + "AmmoTypes": [0, 1], + "RadarRange": 10000.0, + "EORange": 6000.0, + "IRRange": 3000.0 + }, { "Id": "ground-heavy", "Name": "重型地基火力单元", diff --git a/src/CounterDrone.Core/DefaultFireUnits.cs b/src/CounterDrone.Core/DefaultFireUnits.cs index a41b504..cc9cdbf 100644 --- a/src/CounterDrone.Core/DefaultFireUnits.cs +++ b/src/CounterDrone.Core/DefaultFireUnits.cs @@ -13,6 +13,22 @@ namespace CounterDrone.Core if (_cache != null) return _cache; _cache = new List { + new FireUnitTemplate + { + Id = "ground-light", + Name = "轻型地基火力单元", + PlatformType = 1, + GunCount = 2, + ChannelsPerGun = 4, + ChannelInterval = 1.0, + Cooldown = 5.0, + AmmoChangeTime = 30.0, + MuzzleVelocity = 800.0, + AmmoTypes = new() { 0, 1 }, + RadarRange = 10000.0, + EORange = 6000.0, + IRRange = 3000.0, + }, new FireUnitTemplate { Id = "ground-standard", diff --git a/src/Unity/Assets/Plugins/CounterDrone.Core/CounterDrone.Core.dll b/src/Unity/Assets/Plugins/CounterDrone.Core/CounterDrone.Core.dll index 2506860..2c57d78 100644 Binary files a/src/Unity/Assets/Plugins/CounterDrone.Core/CounterDrone.Core.dll and b/src/Unity/Assets/Plugins/CounterDrone.Core/CounterDrone.Core.dll differ diff --git a/test/unit/CounterDrone.Core.Tests/FullPipelineTests.cs b/test/unit/CounterDrone.Core.Tests/FullPipelineTests.cs index 18ea100..9546dc0 100644 --- a/test/unit/CounterDrone.Core.Tests/FullPipelineTests.cs +++ b/test/unit/CounterDrone.Core.Tests/FullPipelineTests.cs @@ -197,7 +197,7 @@ namespace CounterDrone.Core.Tests }); _scenario.SaveDeployment(_taskId, new List { - MakeEquipment(DefaultFireUnits.GetById("ground-standard"), AerosolType.InertGas, 1, 5000, 0, 50), + MakeEquipment(DefaultFireUnits.GetById("ground-light"), AerosolType.InertGas, 2, 5000, 0, 50), }); _scenario.SaveCloudDispersal(_taskId, new CloudDispersal { AerosolType = (int)AerosolType.InertGas, DisperseHeight = 500 });