1
0
Fork 0

Update bundle and remove debug messages from production build

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-09-05 11:52:53 +08:00
parent c1e26e7ba8
commit cc89d0b1fd
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -163,12 +163,12 @@ const crate_warnings = {
trigger: (crate, occupied) => { trigger: (crate, occupied) => {
const nbrHP = useShopStore.getState().crateParams(crate.crate_mode).hp; const nbrHP = useShopStore.getState().crateParams(crate.crate_mode).hp;
const stacked_phasers = crate.items.filter((elem, index, data) => { const stacked_phasers = crate.items.filter((elem, index, data) => {
console.log(elem, index)
return (elem.name_codename === "Phaser") && ((index < data.length - 1) ? ( return (elem.name_codename === "Phaser") && ((index < data.length - 1) ? (
(data[index + 1].consumes && data[index + 1].consumes.depth && data[index + 1].consumes.depth >= 8.5) (data[index + 1].consumes && data[index + 1].consumes.depth && data[index + 1].consumes.depth >= 8.5)
) : (occupied >= nbrHP && nbrHP > 0)) ) : (occupied >= nbrHP && nbrHP > 0))
} }
).length; ).length;
// #!debug
console.log(stacked_phasers, occupied) console.log(stacked_phasers, occupied)
return stacked_phasers > 0 && (occupied + stacked_phasers*2 >= nbrHP) && nbrHP >0; return stacked_phasers > 0 && (occupied + stacked_phasers*2 >= nbrHP) && nbrHP >0;
} }