Xiangleng's Turret Pipeline patch
Translated by Google
Changed the ammo consumption of the turrets to the following ratio:
1 steel = 1 turret ammo
1 fiberglass = 1 turret ammo
1 uranium = 1 turret ammo
1 component = 25 turret ammo
1 advanced component = 150 turret ammo
1 reinforced barrel = 300 turret ammo
For example, the Tunguska in The Dead Man's Switch consumes 20 reinforced barrels to fire 2000 rounds, and now it needs to consume 20*300=6000 turret ammunition to fire 2000 rounds.
If other item is consumed as ammunition, a rough estimate based on its raw materials, workload, and market value is used, and the conversion is rounded up.
Include the 1:1 conversion of the component consumption of emp turrets by Vanilla Furniture Expanded - Security in the original mod has also been changed.
I will mainly focus on the mods I play. If you have subscribed to other patches and made changes to the same turret, the data sorted later will be used.
将炮塔的弹药消耗调整为以下比例:
1钢铁=1炮台弹药
1玻璃钢=1炮台弹药
1铀=1炮台弹药
1零部件=25炮台弹药
1高级零部件=150炮台弹药
1加固炮管=300炮台弹药
例如,失能机关中的通古斯卡炮塔原本消耗20个加固炮管发射2000发弹药,现在改为消耗 20*300=6000炮塔弹药 才能发射2000发。
如果消耗其他物品作为弹药,则根据它的原料、工作量、市场价值进行大致估算,四舍五入后进行转换。
包括原模组中对原版家具扩展 - 防卫的emp炮台零部件的1:1的转换也进行了更改。
本补丁主要针对我游玩的模组。若订阅了其他修改相同炮塔的补丁,排序靠后的补丁数据将优先生效。
Patches added for:
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=1845154007]Vanilla Furniture Expanded - Security[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3025493377]Vanilla Factions Expanded - Deserters[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2561619583]Fortifications - Industrial[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2887532326]Fortification Industrial - Citadel[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3121742525]The Dead Man's Switch[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3461990389]The Dead Man's Switch - Medium Caliber Multi-Purpose AutoCannon Program[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3406932075]Giant imperial turret[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2912279562]Mechanitor's Weapons[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3446237098]CeleTech Arsenal MKIII[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2583529720]Rah's Vanilla Turrets Expansion[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3300249757]Anti-Air: CIWS(Close-In Weapons System)[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2439966011]PLA-Armory[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3555662938]UF Heavy Industries[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3601719516]Sunset Technology 3[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3119816857]Grimworld 40,000 - Angels of Death[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3015391450]GrimWorld 40,000 - Hammer of the Imperium[/url]
添加了以下补丁
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=1845154007]原版家具扩展 - 防卫[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3025493377]原版派系扩展 - 变节者[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2561619583]防御工事 - 工业[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2887532326]防御工事 工业 - 城塞[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3121742525]失能机关[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3461990389]失能机关 - 中口径多用途自动炮项目(MC-MPAC)[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3406932075]巨型帝国炮塔[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2912279562]机械师武器拓展[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3446237098]天工铸造 3.0 CeleTech Arsenal[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2583529720]Rah 的原版炮塔扩展[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3300249757]防空近程防御系统[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2439966011]解放军武器[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3555662938]联合重工-UF Heavy Industries[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3601719516]残阳科技3[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3119816857]Grimworld 40,000 - 死亡天使[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3015391450]GrimWorld 40,000 - 帝国之锤[/url]
If you also want to try to modify the ammunition conversion multiplier in your own patch, you can do so by modifying [b]fuelMultiplier[/b], but be aware that in the game, the final ammunition required for filling will be [b]rounded up[/b], and may cause errors due to numerical precision.
Take Tunguska as an example, its value is:
fuelCapacity=2000, original fuelMultiplier=100, full filling required=2000/100=20 units (reinforced barrel), converted at a multiplier of 300 to 20*300=[b]6000[/b] units (turret ammunition).
In order to make the final result in the game meet expectations, it is necessary to find x that satisfies 2000/x rounded up to 6000.
Solve the inequality: 5999 < 2000/x < 6000
Then we get: 1/3 < x < 2000/5999 → x∈[b](1/3 , 2000/5999)[/b]
So just change the fuelMultiplier to an x that satisfies the condition, such as 0.33334, and the in-game ammunition consumption will meet expectations.
Of course, if you are not as picky as I am or don’t care about this little error, using 0.3 is also feasible.
I don't know if there is a better or simpler way, but I hope my experience can help you.
如果你也想要在自己的补丁中尝试修改弹药转换倍率的话,可以通过修改[b]fuelMultiplier[/b]实现,但是需要注意在游戏中,最终的填充所需弹药会被[b]向上取整[/b],并可能因为数值精度而导致误差。
以 通古斯卡 举例,它的数值为:
fuelCapacity=2000,原fuelMultiplier=100,完全填充所需=2000/100=20单位(加固炮管),按倍率300转换后为20*300=[b]6000[/b]单位(炮台弹药)。
为了使游戏内的最终结果符合预期需要找到x满足2000/x向上取整等于6000。
解不等式:5999 < 2000/x < 6000
得出:1/3 < x < 2000/5999 → x∈[b](1/3 , 2000/5999)[/b]
所以只要将fuelMultiplier更改为满足条件的x,例如0.33334就能使游戏内的弹药消耗符合预期。
当然,如果你没有我这么较真或者不在意这一点误差的话,使用0.3也是可行的。
我不知道有没有更好、更简单的方式,但希望我的经验能帮助到你。