Hide resource notifs over 100

This commit is contained in:
thepaperpilot 2023-05-07 22:15:26 -05:00
parent f5f608aa29
commit 4b1428bcde

View file

@ -543,7 +543,11 @@ export const main = createLayer("main", function (this: BaseLayer) {
watch( watch(
() => resourceLevels.value[resource], () => resourceLevels.value[resource],
(level, prevLevel) => { (level, prevLevel) => {
if (Decimal.gt(level, prevLevel) && settings.active === player.id) { if (
Decimal.gt(level, prevLevel) &&
settings.active === player.id &&
Decimal.lte(level, 100)
) {
toast.info( toast.info(
<div> <div>
<h3> <h3>