Skip to content

Commit

Permalink
Clean up WitchBuyItem
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Oct 22, 2020
1 parent 8040716 commit 9150cb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2282,8 +2282,8 @@ void WitchBuyItem()
StoreAutoPlace();

if (idx >= 3) {
if (idx == 19) {
witchitem[19]._itype = ITYPE_NONE;
if (idx == WITCH_ITEMS - 1) {
witchitem[WITCH_ITEMS - 1]._itype = ITYPE_NONE;
} else {
for (; witchitem[idx + 1]._itype != ITYPE_NONE; idx++) {
witchitem[idx] = witchitem[idx + 1];
Expand Down
2 changes: 2 additions & 0 deletions defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,15 @@
// todo: enums
#ifdef HELLFIRE
#define NUMLEVELS 25
#define WITCH_ITEMS 25
#define SMITH_ITEMS 25
#define SMITH_PREMIUM_ITEMS 15
#define SMITH_MAX_VALUE 200000
#define SMITH_MAX_PREMIUM_VALUE 200000
#define STORE_LINES 104
#else
#define NUMLEVELS 17
#define WITCH_ITEMS 20
#define SMITH_ITEMS 20
#define SMITH_PREMIUM_ITEMS 6
#define SMITH_MAX_VALUE 140000
Expand Down

1 comment on commit 9150cb7

@qndel
Copy link
Member

@qndel qndel commented on 9150cb7 Oct 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol :D

Please sign in to comment.