Sea Power

Sea Power

评价数不足
Strong Battleship Armor
   
奖励
收藏
已收藏
取消收藏
Object Type: Battleship
标签: Iowa, Armor
文件大小
发表于
2.057 MB
1 月 2 日 下午 10:55
1 项改动说明 ( 查看 )

订阅以下载
Strong Battleship Armor

描述
Changes armor penetration table and munition penetration values so that Iowa can now tank dozens of Shipwrecks or other ASMs. In my test, it has survived 34 Shipwrecks and 5 S300F's. It was very close to being destroyed due to fire and secondary damages, but got repaired to 30% hull integrity and 2% flooding eventually. Torpedo effectiveness has not been changed. Integrates the "Pretty Gunnery" mod from rgreat (thank you!).

This mod is not compatible with mods which changes the ammunition folder, but you can make your own changes as described below:

Step 1: change all non-torpedo weapon with `Penetration=Always` to `Penetration=Heavy`. You can use the python script below and replace the <Dir to Sea Power> with your own directory.

```
import os

directory_path = r"<Dir to Sea Power>\Sea Power_Data\StreamingAssets\original\ammunition"

for filename in os.listdir(directory_path):
if filename.endswith(".ini"):
file_path = os.path.join(directory_path, filename)

with open(file_path, "r") as file:
lines = file.readlines()

has_torpedo = any("Type=Torpedo" in line for line in lines)
if not has_torpedo:
modified_lines = [line.replace("Penetration=Always", "Penetration=Heavy") for line in lines]

with open(file_path, "w") as file:
file.writelines(modified_lines)
```

Step 2: Change the armor penetration table, which is located in:

<Dir to Sea Power>\Sea Power_Data\StreamingAssets\original\ammunition\damage.ini

Change the `PenetrationVsArmorMatrix` to:
```
[PenetrationVsArmorMatrix]
#Format: ArmorValue=minMinorPen,MaxMinorPen|minModeratePen,MaxModeratePen|minHeavyPen,MaxHeavyPenn|minAlwaysPen,MaxAlwaysPen
#Armor values:
None=1.0|1.0|1.0|1.0
Minor=0.5,0.75|0.85,1.0|0.9,1.0|0.95,1.0
Moderate=0.1,0.25|0.5,0.75|0.85,1.0|0.9,1.0
Heavy=0.0,0.0|0.0,0.0|0.0,0.03|0.8,1
```
1 条留言
TaterTot1-1 1 月 9 日 下午 2:27 
I have several mods that add things to the ammunition folder so I tried the python script but I can't get it to work. I also have no idea how to get it to work. Any help would be appreciated.