durabilities are not being calclated correctly, but item bits match old/new

This commit is contained in:
Hash Borgir
2023-06-16 01:08:25 -06:00
parent 143cf8d1ae
commit a67e421977
3 changed files with 301 additions and 469 deletions

View File

@@ -43,7 +43,7 @@ foreach ($ISCData as $k => $v) {
//$filePath = "D:\Diablo II\MODS\MedianXL2012\save\Test.d2s";
$filePath = "Test.d2s";
$filePath = "testa.d2s";
$char = new D2Char($filePath);
//$char->setChar("CharacterStatus", "Died", 0);
@@ -51,14 +51,14 @@ $char = new D2Char($filePath);
//$char->setChar("CharacterStatus", "Expansion", 1);
//$char->setChar("LeftmousebuttonskillID", 223);
$char->setAllSkills(0);
//$char->setAllSkills(0);
//$char->setSkill(3, 20);
//$char->setChar("CharacterClass", "Necromancer"); // 127
//$char->setChar("CharacterProgression", 1); // 0 in normal, 1 finished normal, 2 finished nm, 3 finished hell
//$char->setChar("CharacterStatus", "Died", 1);
$char->setChar("CharacterLevel", 1);
$char->setStat("newskills", 99);
//$char->setChar("CharacterLevel", 1);
//$char->setStat("newskills", 99);
//$char->setStat("strength", 270);
//$char->setStat("energy", 270);
//$char->setStat("dexterity", 270);
@@ -85,9 +85,9 @@ $char->setStat("newskills", 99);
unset($char); // destroy $char so we can read it again after writing to it to get updated stats
//unset($char); // destroy $char so we can read it again after writing to it to get updated stats
$char = new D2Char($filePath);
//$char = new D2Char($filePath);
var_dump($char->cData);
//var_dump($char->cData);
//var_dump($char->cData['stats']);