Skip to content

Commit

Permalink
XEEN: Fix initial generation of blacksmith wares
Browse files Browse the repository at this point in the history
This only applies to newly started games; existing savegames will have
invalid wares in the Blacksmiths
  • Loading branch information
dreammaster committed Apr 1, 2018
1 parent b6fc3fd commit b442db8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions engines/xeen/party.cpp
Expand Up @@ -121,9 +121,7 @@ void BlacksmithWares::regenerate() {
ItemCategory itemCat = tempChar.makeItem(idx2 + 1, 0, 0);
if (catCount[itemCat] < 8) {
XeenItem &item = (*this)[itemCat][0][slotNum][catCount[itemCat]];
item._id = tempChar._weapons[0]._id;
item._material = tempChar._weapons[0]._material;
item._state = tempChar._weapons[0]._state;
item = tempChar._items[itemCat][0];

++catCount[itemCat];
}
Expand All @@ -140,9 +138,7 @@ void BlacksmithWares::regenerate() {
ItemCategory itemCat = tempChar.makeItem(idx2 + (slotNum >= 2 ? 3 : 1), 0, 0);
if (catCount[itemCat] < 8) {
XeenItem &item = (*this)[itemCat][1][slotNum][catCount[itemCat]];
item._id = tempChar._misc[0]._id;
item._material = tempChar._misc[0]._material;
item._state = tempChar._misc[0]._state;
item = tempChar._items[itemCat][0];

++catCount[itemCat];
}
Expand Down

0 comments on commit b442db8

Please sign in to comment.