RimWorld

RimWorld

Not enough ratings
Xiangleng's Turret Pipeline patch
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
110.614 KB
11 May @ 11:45am
11 Jul @ 11:10am
5 Change Notes ( view )

Subscribe to download
Xiangleng's Turret Pipeline patch

Description
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 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.

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加固炮管=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


添加了以下补丁
原版家具扩展 - 防卫
原版派系扩展 - 变节者
防御工事 - 工业
防御工事 工业 - 城塞
失能机关
失能机关 - 中口径多用途自动炮项目(MC-MPAC)
巨型帝国炮塔


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也是可行的。
我不知道有没有更好、更简单的方式,但希望我的经验能帮助到你。
5 Comments
Xiangleng  [author] 11 Jul @ 11:11am 
@SOLDIERRFK Updated, it should be work
SOLDIERRFK 11 Jul @ 6:10am 
Will this be brought to 1.6?
King Matt 👑 11 May @ 8:04pm 
I had Neolitic in my last playthrough, they're not bad!
Xiangleng  [author] 11 May @ 4:39pm 
The Fortifications series is made by AOBA, who also made The Dead Man's Switch. I really like both of these. (◔◡◔)
King Matt 👑 11 May @ 3:34pm 
Nice conversion! I use basically all the same mods except the fortification mods :D