Fix tec counter #162

Merged
sb10q merged 1 commits from esavkin/web2019:fix-tec-counter into master 2024-12-23 13:08:16 +08:00
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@ const count_item_occupied_hp = (item) => {
} }
const count_item_occupied_tec = (item) => { const count_item_occupied_tec = (item) => {
return (item.options_data && item.options_data.tec === false) ? 0 : (item.consumes && item.consumes.tec); return (item.options_data && item.options_data.tec === false) ? 0 : ((item.consumes && item.consumes.tec) || 0);
} }
export const item_occupied_counters = { export const item_occupied_counters = {