mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-22 00:21:31 +00:00
Hide resource notifs over 100
This commit is contained in:
parent
f5f608aa29
commit
4b1428bcde
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue