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:
Vanilla Furniture Expanded – Security
Vanilla Factions Expanded – Deserters
Fortifications – Industrial
Fortification Industrial – Citadel
The Dead Man’s Switch
The Dead Man’s Switch – Medium Caliber Multi-Purpose AutoCannon Program
Giant imperial turret
Mechanitor’s Weapons
CeleTech Arsenal MKIII
Rah’s Vanilla Turrets Expansion
Anti-Air: CIWS(Close-In Weapons System)
PLA-Armory
UF Heavy Industries
添加了以下补丁
原版家具扩展 – 防卫
原版派系扩展 – 变节者
防御工事 – 工业
防御工事 工业 – 城塞
失能机关
失能机关 – 中口径多用途自动炮项目(MC-MPAC)
巨型帝国炮塔
机械师武器拓展
天工铸造 3.0 CeleTech Arsenal
Rah 的原版炮塔扩展
防空近程防御系统
解放军武器
联合重工-UF Heavy Industries
If you also want to try to modify the ammunition conversion multiplier in your own patch, you can do so by modifying fuelMultiplier, but be aware that in the game, the final ammunition required for filling will be rounded up, 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=6000 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∈(1/3 , 2000/5999)
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.
如果你也想要在自己的补丁中尝试修改弹药转换倍率的话,可以通过修改fuelMultiplier实现,但是需要注意在游戏中,最终的填充所需弹药会被向上取整,并可能因为数值精度而导致误差。
以 通古斯卡 举例,它的数值为:
fuelCapacity=2000,原fuelMultiplier=100,完全填充所需=2000/100=20单位(加固炮管),按倍率300转换后为20*300=6000单位(炮台弹药)。
为了使游戏内的最终结果符合预期需要找到x满足2000/x向上取整等于6000。
解不等式:5999 < 2000/x < 6000
得出:1/3 < x < 2000/5999 → x∈(1/3 , 2000/5999)
所以只要将fuelMultiplier更改为满足条件的x,例如0.33334就能使游戏内的弹药消耗符合预期。
当然,如果你没有我这么较真或者不在意这一点误差的话,使用0.3也是可行的。
我不知道有没有更好、更简单的方式,但希望我的经验能帮助到你。