Improve propaganda block

main
peshomir 2025-12-30 21:15:52 +02:00
parent bd67b39745
commit dff5a9ad57
1 changed files with 7 additions and 3 deletions

View File

@ -1,12 +1,16 @@
import { definePatch } from "../modUtils.js" import { definePatch, insert } from "../modUtils.js"
export default definePatch(({ insertCode }) => { export default definePatch(({ insertCode, modifyCode }) => {
// Hide propaganda popup // Hide propaganda popup
insertCode(`/* here */ insertCode(`/* here */
a = b.c + 60 * 1000; a = b.c + 60 * 1000;
(new ea()).show(eS.eb, eS.colors, eS.id); (new ea()).show(eS.eb, eS.colors, eS.id);
eS = null; eS = null;
return true;`, `if (__fx.settings.hidePropagandaPopup) return;`) return true;`, `if (__fx.settings.hidePropagandaPopup || __fx.customLobby.isActive()) return;`)
modifyCode(`if (!a.b.c(0)) {
d = e.f + 1000 * 1;
return;
} ${insert(`if (!__fx.settings.hidePropagandaPopup && !__fx.customLobby.isActive())`)} a.g.h(5);`)
}) })