mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 16:34:23 -05:00
durabilities are not being calclated correctly, but item bits match old/new
This commit is contained in:
@@ -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']);
|
||||
|
Reference in New Issue
Block a user