mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-27 18:41:54 +00:00
Tweak logic for showing level up notifs
This commit is contained in:
parent
51ed914f39
commit
4f80e00eb2
1 changed files with 5 additions and 1 deletions
|
@ -180,7 +180,11 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
() => resourceLevels.value[resource],
|
||||
(level, prevLevel) => {
|
||||
const diff = Decimal.sub(level, prevLevel);
|
||||
if (Decimal.gt(diff, 1) && settings.active === player.id) {
|
||||
if (
|
||||
(Decimal.eq(level, 1) || Decimal.gt(diff, 1)) &&
|
||||
Decimal.gt(diff, Decimal.div(prevLevel, 100)) &&
|
||||
settings.active === player.id
|
||||
) {
|
||||
toast.info(
|
||||
<div>
|
||||
<h3>
|
||||
|
|
Loading…
Reference in a new issue