Quest offsets correctly updated

This commit is contained in:
Hash Borgir
2022-06-22 06:04:13 -06:00
parent 3b03e54fa5
commit bdf2409c11
2 changed files with 109 additions and 102 deletions

View File

@@ -30,10 +30,6 @@ class D2Char {
return $this->parseChar(); // end of parseChar() calls parseItems()
}
// parse items from d2s and add to $this->items[]
/*
* @return Array of items
*/
public function parseItems() {
$_data = file_get_contents($this->filePath);
// get offset of first JM and skip it
@@ -192,7 +188,7 @@ class D2Char {
$a5 = strrev(strtobits(fread($this->fp, 1)));
$wp['Norm'] = str_split($a1 . $a2 . $a3 . $a4 . $a5);
ddump($wp['Norm']);
// ddump($wp['Norm']);
fseek($this->fp, $this->sData->wpOffsetsNM);
$a1 = strrev(strtobits(fread($this->fp, 1)));