forked from liza/Deliveroo
Fix 'Trade High-Quality Item?' prompt for JP
This commit is contained in:
parent
576baf0175
commit
e240ef568f
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0-windows</TargetFramework>
|
<TargetFramework>net7.0-windows</TargetFramework>
|
||||||
<Version>2.20</Version>
|
<Version>2.21</Version>
|
||||||
<LangVersion>11.0</LangVersion>
|
<LangVersion>11.0</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
@ -13,7 +13,7 @@ partial class DeliverooPlugin
|
|||||||
_pluginLog.Verbose("SelectYesNo post-setup");
|
_pluginLog.Verbose("SelectYesNo post-setup");
|
||||||
|
|
||||||
AddonSelectYesno* addonSelectYesNo = (AddonSelectYesno*)args.Addon;
|
AddonSelectYesno* addonSelectYesNo = (AddonSelectYesno*)args.Addon;
|
||||||
string text = MemoryHelper.ReadSeString(&addonSelectYesNo->PromptText->NodeText).ToString().Replace("\n", "").Replace("\r", "");
|
string text = MemoryHelper.ReadSeString(&addonSelectYesNo->PromptText->NodeText).ToString().ReplaceLineEndings("");
|
||||||
_pluginLog.Verbose($"YesNo prompt: '{text}'");
|
_pluginLog.Verbose($"YesNo prompt: '{text}'");
|
||||||
|
|
||||||
if (CurrentStage == Stage.ConfirmReward &&
|
if (CurrentStage == Stage.ConfirmReward &&
|
||||||
|
@ -21,8 +21,9 @@ internal sealed class GameStrings
|
|||||||
?? throw new Exception($"Unable to resolve {nameof(ClosePersonnelOfficerTalk)}");
|
?? throw new Exception($"Unable to resolve {nameof(ClosePersonnelOfficerTalk)}");
|
||||||
ExchangeItems = dataManager.GetRegex<Addon>(3290, addon => addon.Text, pluginLog)
|
ExchangeItems = dataManager.GetRegex<Addon>(3290, addon => addon.Text, pluginLog)
|
||||||
?? throw new Exception($"Unable to resolve {nameof(ExchangeItems)}");
|
?? throw new Exception($"Unable to resolve {nameof(ExchangeItems)}");
|
||||||
TradeHighQualityItem = dataManager.GetString<Addon>(102434, addon => addon.Text, pluginLog)
|
TradeHighQualityItem =
|
||||||
?? throw new Exception($"Unable to resolve {nameof(TradeHighQualityItem)}");
|
dataManager.GetString<Addon>(102434, addon => addon.Text, pluginLog)?.ReplaceLineEndings("")
|
||||||
|
?? throw new Exception($"Unable to resolve {nameof(TradeHighQualityItem)}");
|
||||||
|
|
||||||
var rankUpFc = dataManager.GetExcelSheet<LogMessage>()!.GetRow(3123)!;
|
var rankUpFc = dataManager.GetExcelSheet<LogMessage>()!.GetRow(3123)!;
|
||||||
RankUpFc = rankUpFc.GetRegex(logMessage => logMessage.Text, pluginLog)
|
RankUpFc = rankUpFc.GetRegex(logMessage => logMessage.Text, pluginLog)
|
||||||
|
Loading…
Reference in New Issue
Block a user