Skip to content

Commit

Permalink
Optimize dat. Fix bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
daidodo committed Mar 8, 2020
1 parent 9846cb7 commit 88260c7
Show file tree
Hide file tree
Showing 10 changed files with 4,510 additions and 4,492 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,5 @@ __pycache__/
/Diablo Edit2/DlgPropertyList.cpp.bak
/Diablo Edit2/DlgPrefixSuffix.h.bak
/Diablo Edit2/DlgPrefixSuffix.cpp.bak
/history
/参考资料
2 changes: 1 addition & 1 deletion Diablo Edit2/D2Item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ void CItemInfo::WriteData(COutBitsStream & bs, const CItemMetaData & itemData, B

BOOL CItemInfo::IsNameValid() const {
for(char c : sTypeName)
if(c != ' ' && (c < 'a' || c > 'z'))
if(c != ' ' && !isalnum(c))
return FALSE;
return TRUE;
}
Expand Down
Binary file modified Diablo Edit2/Diablo Edit2.cpp
Binary file not shown.
Binary file modified Diablo Edit2/Pictcures/Misc/Skeleton Flag.bmp
Binary file not shown.
Binary file modified Diablo Edit2/itemdata.dat
Binary file not shown.
Binary file modified Diablo Edit2/language.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion Generate Data/Generate Data.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
</ItemGroup>
<ItemGroup>
<Text Include="itemdata.txt" />
<Text Include="lang.txt" />
<Text Include="language.txt" />
<Text Include="property.txt" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Generate Data/Generate Data.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<Text Include="property.txt">
<Filter>资源文件</Filter>
</Text>
<Text Include="lang.txt">
<Text Include="language.txt">
<Filter>资源文件</Filter>
</Text>
</ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion Generate Data/itemdata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,20 @@ brz 1 1
jaw 1 1
eyz 1 1
hrn 1 1
dhn -1 1
tal 1 1
flg 12 1 1
flg 1 1
std -1 1
fng 1 1
qll 1 1
sol 1 1
scz 4 1 1
spe 1 1
key 1
luv 12 1
pk1 -1 12 1
pk2 -1 12 1
pk3 -1 12 1
xyz 1
j34 12 1 1
g34 12 1 1
Expand All @@ -46,8 +51,10 @@ tr1 22 1 1
mss 1 1
ass 22 1 1
qey 1 1
bey -1 1
qhr 1 1
qbr 1 1
mbr -1 1
ear 1
gcv 1 1
gfv 1 1
Expand Down
Loading

0 comments on commit 88260c7

Please sign in to comment.