Skip to content

Commit 0111b19

Browse files
committed
修复物品显示缺少每页最下面一行的问题
1 parent 01573b7 commit 0111b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GameData.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ export function get_game_data(mod_guid_list) {
145145
let grid_index = item["GridIndex"];
146146
if (data.GenesisBookEnable) {
147147
data.item_grid_index_valid[item["Name"]] =
148-
grid_index % 1000 / 100 >= 1 && grid_index % 1000 / 100 <= 7
148+
Math.floor(grid_index % 1000 / 100) >= 1 && Math.floor(grid_index % 1000 / 100) <= 7
149149
&& grid_index % 100 >= 1 && grid_index % 100 <= 17;
150150
} else {
151151
data.item_grid_index_valid[item["Name"]] =
152-
grid_index % 1000 / 100 >= 1 && grid_index % 1000 / 100 <= 8
152+
Math.floor(grid_index % 1000 / 100) >= 1 && Math.floor(grid_index % 1000 / 100) <= 8
153153
&& grid_index % 100 >= 1 && grid_index % 100 <= 14;
154154
}
155155
data.item_icon_name[item["Name"]] = item["IconName"];

0 commit comments

Comments
 (0)