Skip to content

Commit a6acf06

Browse files
Fix fate and cn 6.41
1 parent b258edc commit a6acf06

3 files changed

Lines changed: 22 additions & 28 deletions

File tree

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<Copyright>Copyright © RainbowMage 2015, Kuriyama hibiya 2016, ngld 2019, OverlayPlugin Team 2022</Copyright>
66
<RunCodeAnalysis>false</RunCodeAnalysis>
77
<EnableNETAnalyzers>true</EnableNETAnalyzers>
8-
<AssemblyVersion>26.1.7.1</AssemblyVersion>
9-
<FileVersion>26.1.7.1</FileVersion>
8+
<AssemblyVersion>26.1.31.0</AssemblyVersion>
9+
<FileVersion>26.1.31.0</FileVersion>
1010
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1111
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
1212
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>

OverlayPlugin.Core/GameRepoInfo.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ namespace RainbowMage.OverlayPlugin
88
{
99
public class GameRepoInfo
1010
{
11-
//CN 7.40b
11+
//CN 7.41
1212
public static readonly Version version = new Version(7, 4);
13-
public static readonly int ActorMoveOpcode = 0x02D4;
14-
public static readonly int ActorSetPosOpcode = 0x01CC;
15-
public static readonly int BattleTalk2Opcode = 0x00E6;
16-
public static readonly int CountdownOpcode = 0x03AF;
17-
public static readonly int CountdownCancelOpcode = 0x00DD;
18-
public static readonly int CEDirectorOpcode = 0x0305;
19-
public static readonly int MapEffectOpcode = 0x0223;
20-
public static readonly int MapEffect4Opcode = 0x03E1;
21-
public static readonly int MapEffect8Opcode = 0x0144;
22-
public static readonly int MapEffect12Opcode = 0x00B1;
23-
public static readonly int RSVDataOpcode = 0x03AB;
24-
public static readonly int NpcYellOpcode = 0x01DC;
13+
public static readonly int ActorMoveOpcode = 0x013b;
14+
public static readonly int ActorSetPosOpcode = 0x0202;
15+
public static readonly int BattleTalk2Opcode = 0x012d;
16+
public static readonly int CountdownOpcode = 0x0098;
17+
public static readonly int CountdownCancelOpcode = 0x0371;
18+
public static readonly int CEDirectorOpcode = 0x00f5;
19+
public static readonly int MapEffectOpcode = 0x00b6;
20+
public static readonly int MapEffect4Opcode = 0x03d0;
21+
public static readonly int MapEffect8Opcode = 0x0398;
22+
public static readonly int MapEffect12Opcode = 0x0196;
23+
public static readonly int RSVDataOpcode = 0x0374;
24+
public static readonly int NpcYellOpcode = 0x02ea;
2525
}
2626
}

OverlayPlugin.Core/NetworkProcessors/FateWatcher.cs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ private struct ActorControlSelfFateUpdateOpcodes
4545
public readonly int remove;
4646
public readonly int update;
4747
};
48-
private static readonly ActorControlSelfFateUpdateOpcodes acFateUpdate_v5_2 = new ActorControlSelfFateUpdateOpcodes(
48+
private static readonly ActorControlSelfFateUpdateOpcodes acFateUpdate_v6_2 = new ActorControlSelfFateUpdateOpcodes(
49+
0x942,
4950
0x935,
50-
0x936,
51-
0x93E
51+
0x93C
5252
);
5353

5454
[Serializable]
@@ -75,10 +75,10 @@ public struct CEDirectorData
7575
private static SemaphoreSlim ceSemaphore;
7676
private Dictionary<GameRegion, ActorControlSelfFateUpdateOpcodes> fateControlOpcodes
7777
= new Dictionary<GameRegion, ActorControlSelfFateUpdateOpcodes>() {
78-
{ GameRegion.Korean, acFateUpdate_v5_2 },
79-
{ GameRegion.Chinese, acFateUpdate_v5_2 },
80-
{ GameRegion.TraditionalChinese, acFateUpdate_v5_2 },
81-
{ GameRegion.Global, acFateUpdate_v5_2 },
78+
{ GameRegion.Korean, acFateUpdate_v6_2 },
79+
{ GameRegion.Chinese, acFateUpdate_v6_2 },
80+
{ GameRegion.TraditionalChinese, acFateUpdate_v6_2 },
81+
{ GameRegion.Global, acFateUpdate_v6_2 },
8282
};
8383

8484
// fates<fateID, progress>
@@ -88,12 +88,6 @@ private Dictionary<GameRegion, ActorControlSelfFateUpdateOpcodes> fateControlOpc
8888
public event EventHandler<FateChangedArgs> OnFateChanged;
8989
public event EventHandler<CEChangedArgs> OnCEChanged;
9090

91-
public int GetOffset(Type type, string property)
92-
{
93-
var netHelper = container_.Resolve<NetworkParser>();
94-
return netHelper.GetOffset(type, property);
95-
}
96-
9791
public FateWatcher(TinyIoCContainer container)
9892
{
9993
container_ = container;

0 commit comments

Comments
 (0)