Skip to content

Commit

Permalink
Fix item creation init
Browse files Browse the repository at this point in the history
  • Loading branch information
DMD authored and DMD committed Mar 8, 2017
1 parent 7d79026 commit 7b6d40f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions TemplePlus/ui/ui_item_creation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,19 @@ class ItemCreationHooks : public TempleFix {

UiItemCreation::UiItemCreation(const UiSystemConf &config) {

for (int i = 0; i < 30; i++) {
GoldCraftCostVsEffectiveBonus[i] = 1000 * i*i;
GoldBaseWorthVsEffectiveBonus[i] = GoldCraftCostVsEffectiveBonus[i] * 2;
}

craftedItemExistingEffectiveBonus = -1; // stores the crafted item existing (pre-crafting) effective bonus
//craftingItemIdx = -1;

memset(numItemsCrafting, 0, sizeof(numItemsCrafting));
memset(craftedItemHandles, 0, sizeof(craftedItemHandles));
craftedItemNamePos = 0;
craftingWidgetId = -1;

LoadMaaSpecs();

mCreateBtnRect = TigRect(133, 339, 112, 22);
Expand Down

0 comments on commit 7b6d40f

Please sign in to comment.