Fixes several bugs and streamlines the BOD code. (#32)

This commit is contained in:
Kamron Batman 2019-03-12 23:41:19 -07:00 • committed by GitHub
parent a45094f2dc
commit 114dc1a16b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 500 additions and 777 deletions

View file

@ -1179,14 +1179,14 @@ namespace Server.Commands
html.WriteLine(" </table></td></tr></table>");
}
private static void DocumentTailorBOD(StreamWriter html, List<Item> items, string amt, BulkMaterialType material,
private static void DocumentTailorBOD(StreamWriter html, List<RewardItem> items, string amt, BulkMaterialType material,
Type type)
{
bool[] rewards = new bool[20];
for (int i = 0; i < items.Count; ++i)
{
Item item = items[i];
Item item = items[i].Construct();
if (item is Sandals)
{
@ -1456,13 +1456,13 @@ namespace Server.Commands
html.WriteLine(" </table></td></tr></table>");
}
private static void DocumentSmithBOD(StreamWriter html, List<Item> items, string amt, BulkMaterialType material)
private static void DocumentSmithBOD(StreamWriter html, List<RewardItem> items, string amt, BulkMaterialType material)
{
bool[] rewards = new bool[24];
for (int i = 0; i < items.Count; ++i)
{
Item item = items[i];
Item item = items[i].Construct();
if (item is SturdyPickaxe || item is SturdyShovel)
{