|
@@ -6,6 +6,7 @@
|
|
|
#include "../common/random.h"
|
|
|
#include "../common/showmsg.h"
|
|
|
#include "../common/strlib.h"
|
|
|
+#include "../common/utils.h"
|
|
|
#include "itemdb.h"
|
|
|
#include "map.h"
|
|
|
#include "battle.h" // struct battle_config
|
|
@@ -1003,7 +1004,7 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr
|
|
|
id->type = IT_ETC;
|
|
|
}
|
|
|
|
|
|
- id->wlv = atoi(str[15]);
|
|
|
+ id->wlv = cap_value(atoi(str[15]), REFINE_TYPE_ARMOR, REFINE_TYPE_MAX);
|
|
|
id->elv = atoi(str[16]);
|
|
|
id->flag.no_refine = atoi(str[17]) ? 0 : 1; //FIXME: verify this
|
|
|
id->look = atoi(str[18]);
|