feat(parity): replicate skill execution, affect sync, packet send methods, and monster color oracle (pass34)
This commit is contained in:
@@ -18,6 +18,7 @@ template<class WindowsRecord> void check(bool encrypted) {
|
||||
row.bType=2;row.bRank=4;row.bLevel=77;row.dwGoldMin=123;row.dwGoldMax=456;row.dwExp=987654;row.dwMaxHP=1234567;
|
||||
row.bRegenCycle=8;row.bRegenPercent=9;row.dwRaceFlag=0x12345678;row.bStr=44;row.bDex=55;
|
||||
row.dwDamageRange[0]=999;row.dwDamageRange[1]=1999;row.bOnClickType=3;row.fDamMultiply=1.75f;
|
||||
row.dwMonsterColor=0xAABBCCDD;
|
||||
for(size_t i=0;i<sizeof(row.cResists);++i) row.cResists[i]=static_cast<char>(int(i)-5);
|
||||
if constexpr(requires {row.bLvlPct;}) row.bLvlPct=231;
|
||||
auto raw=std::span(reinterpret_cast<const uint8_t*>(&row),sizeof(row));auto packed=literalLzo(raw);
|
||||
@@ -33,6 +34,7 @@ template<class WindowsRecord> void check(bool encrypted) {
|
||||
require(actual->goldMin==row.dwGoldMin && actual->goldMax==row.dwGoldMax && actual->exp==row.dwExp && actual->hp==row.dwMaxHP,"shifted DWORD mismatch");
|
||||
require(actual->regenCycle==8 && actual->regenPercent==9 && actual->raceFlags==row.dwRaceFlag && actual->st==44 && actual->dx==55,"shifted stats mismatch");
|
||||
require(actual->damageMin==999 && actual->damageMax==1999 && actual->event==3 && actual->damageMultiply==1.75f,"post-resist field mismatch");
|
||||
require(actual->monsterColor==row.dwMonsterColor,"monster color mismatch");
|
||||
// Original TMobTableAll copies the first eleven resist entries, including claw for r262/263.
|
||||
for(int i=0;i<11;++i) require(actual->resists[i]==int(row.cResists[i]),"resist index/sign mismatch");
|
||||
packet.resize(31);require(!database.load(std::string(reinterpret_cast<const char*>(packet.data()),packet.size())),"truncated container accepted");
|
||||
|
||||
Reference in New Issue
Block a user