安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








Just change the percentage in the DeckgunBoostConfig.xlsx.
500% gives you smove 55 knots top speed.
If you dont want to miss out on the deck gun, make sure the DeckgunEnginePatches.cs looks like this:
using System.Collections.Generic;
using Harmony;
using UBOAT.Game.Core;
using UBOAT.Game.Core.Data;
using UBOAT.Game.Sandbox;
using UBOAT.Game.Scene.Items;
using UBOAT.Game.Scene.Entities;
using UBOAT.Game.Scene.Characters.Actions;
using DWS.Common.InjectionFramework;
using UnityEngine;
namespace UBOAT.Mods.DeckgunEngine
{
class DeckgunEnginePatches
{
[Inject] private static PlayerShip playerShip;
static bool RecheckDeckGun = true;
static bool RemovedDeckGun = false;
private static readonly GameDataReference Boost = new GameDataReference("DeckgunBoostConfig/Settings/DeckgunBoost/Underwater Speed Boost");
private static bool CheckRemovedDeckGun()
{
if (RecheckDeckGun)
{
Debug.Log($"{Constants.ModName} Rechecking Deck Gun");
List<Equipment> equiment = playerShip.Equipment;
foreach (Equipment item in equiment)
{
if (item.Name == "Removed Deck Gun" || item.Name == "Deck Gun Mount Cover")
{
Debug.Log($"{Constants.ModName} Found Removed Deck Gun");
RemovedDeckGun = true;
break;
}
if (item.Name == "Artillery - 8.8 cm")
{
Debug.Log($"{Constants.ModName} Found Deck Gun");
RemovedDeckGun = true;
break;
}
}
RecheckDeckGun = false;
}
return RemovedDeckGun;
}
[HarmonyPatch(typeof(Propeller), "FixedUpdate")]
public class FixedUpdatePatch
{
public static bool modified = false;
public static void Prefix(ref float __state, ref float ___power)
{
if (!Physics.autoSimulation)
return;
if (!CheckRemovedDeckGun() || playerShip.DeckDepth < 1.5f)
return;
modified = true;
__state = ___power;
___power += __state * Boost;
//Debug.Log($"{Constants.ModName} Old Power {__state} Power Increase {__state * Boost} New Power {___power} ");
}
public static void Postfix(float __state, ref float ___power)
{
if (!modified)
return;
___power = __state;
modified = false;
}
}
[HarmonyPatch(typeof(PlayerCareer), "OnAfterDeserialize")]
public class OnAfterDeserialize
{
public static void Postfix()
{
Debug.Log($"{Constants.ModName} Deck Gun Recheck Needed");
RecheckDeckGun = true;
}
}
[HarmonyPatch(typeof(EnterUpgradeModeAction), "GameState_UpgradeModeChanged")]
public class EnterUpgradeModeActionPatch
{
public static void Prefix(GameState ___gameState)
{
if (!___gameState.UpgradeMode)
{
Debug.Log($"{Constants.ModName} Deck Gun Recheck Needed");
RecheckDeckGun = true;
}
}
}
}
}