From 5823ea01c914479f26a855739e9cda5b7b18f8af Mon Sep 17 00:00:00 2001 From: ducdat0507 <62660527+ducdat0507@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:10:13 +0700 Subject: [PATCH] Fix bugs --- js/layers/thepaperpilot.js | 1 + js/technical/newsTicker.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/layers/thepaperpilot.js b/js/layers/thepaperpilot.js index b05a9e8..e0db487 100644 --- a/js/layers/thepaperpilot.js +++ b/js/layers/thepaperpilot.js @@ -3,6 +3,7 @@ "use strict"; function getTPPPointGain(release) { + if (!release) return 0; return EN.floor(release.views).mul(EN.floor(release.likes).add(1)).mul(EN.floor(release.shares).add(1)).add(1).mul(tmp.tpp.effect.tppMulti).sub(release.points) } diff --git a/js/technical/newsTicker.js b/js/technical/newsTicker.js index d45fac5..3281baa 100644 --- a/js/technical/newsTicker.js +++ b/js/technical/newsTicker.js @@ -23,7 +23,7 @@ let newsEntries = [ [true, "Most people don't know this, but me and the Phigros' tip box are friends! *wink wink*"], [true, "I just went to this news ticker code after two years of inactivity and found out that some of the news messages I wrote no longer reflects me as a person. If you, by chance, get offended by some of the news messages let me know and I'll consider removing it."], [true, "Wow, some of these news messages did not age well. I guess you can say that those news messages are - get this - \"old news\" amirite *ba-dum-tss*"], - [true, "Copyright Disclaimer: Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for \"fair use\" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use."] + [true, "Copyright Disclaimer: Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for \"fair use\" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use."], [true, "Click here to reroll your news ticker."], [true, "Click here to copy this news message's contents into your clipboard."],