This commit is contained in:
lenheart
2024-10-27 15:32:44 +08:00
parent e82c5ceee3
commit 6c71c79563
21 changed files with 846 additions and 253 deletions

View File

@@ -24,26 +24,6 @@ class Script {
InitStringBin(FileRo);
InitLoadString(FileRo);
// local AllFileStartPos = ScriptData.StartPos;
// foreach(FilePath, Info in ScriptData.PvfFileInfo) {
// //Ani太多了 加载的时候解密 其他文件 现在解密
// //构建AniMap
// if (endswith(FilePath, ".ani") && !endswith(FilePath, ".als")) {
// // ScriptData.Ani[FilePath] <- InitPvfAni(FileRo);
// ScriptData.AniPathTable[FilePath] <- {
// Pos = (AllFileStartPos + Info.ROffset),
// Length = Info.Length,
// Cr32 = Info.Cr32
// }
// } else {
// FileRo.seek(AllFileStartPos + Info.ROffset);
// CrcDecode(FileRo, Info.Length, Info.Cr32);
// // 解密完需要重新调整指针位置
// FileRo.seek(AllFileStartPos + Info.ROffset);
// }
// }
ScriptData.IO = FileRo;
ScriptData.Init();
@@ -1043,7 +1023,7 @@ class GlobaData {
i += 5;
}
//grade 套装Id
else if (str == "[grade]" || str == "[part set index]" || str == "[anti evil]") {
else if (str == "[grade]" || str == "[part set index]" || str == "[anti evil]" || str == "[sb dongcai]") {
local RealKey = str.slice(1, str.len() - 1);
EquipmentAtt[RealKey] <- UnpackData(FilePos, i).tointeger() - 9;
i += 5;