Skip to content

Commit

Permalink
allow reading custom txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dschu012 committed Apr 24, 2021
1 parent ee3073c commit e48ae7a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ File.WriteAllBytes(Environment.ExpandEnvironmentVariables($"%userprofile%/Saved
```

TODO: let others seed w/ their own mod txt files. currently this can be done if you build it yourself.
How to seed the library with your own TXT files
```
TXT txt = new TXT();
txt.ItemStatCostTXT = ItemStatCostTXT.Read(@"ItemStatCost.txt");
txt.ItemsTXT.ArmorTXT = ArmorTXT.Read(@"Armor.txt");
txt.ItemsTXT.WeaponsTXT = WeaponsTXT.Read(@"Weapons.txt");
txt.ItemsTXT.MiscTXT = MiscTXT.Read(@"Misc.txt");
Core.TXT = txt;
D2S character = Core.ReadD2S(File.ReadAllBytes(@"DannyIsGreat.d2s"));
```

##### Useful Links:
* https://github.com/d07RiV/d07riv.github.io/blob/master/d2r.html (credits to d07riv for reversing the item code on D2R)
Expand Down

0 comments on commit e48ae7a

Please sign in to comment.