From 0de560e9baadc937483835ceb3d4816079bb80cc Mon Sep 17 00:00:00 2001 From: Freddie Kins Date: Tue, 14 Sep 2021 11:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dparticle=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=A5=BC=E5=B9=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/patches/TsFreddie.json | 4 ++++ resources/static/main.js | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/patches/TsFreddie.json b/resources/patches/TsFreddie.json index bca8c8e..be9839b 100644 --- a/resources/patches/TsFreddie.json +++ b/resources/patches/TsFreddie.json @@ -323,6 +323,10 @@ "english": "Cookie chain broken.
You made %1.", "chinese": "饼干连锁断裂。
你获得了 %1。" }, + "[Achievement name 321]Bibbidi-bobbidi-boo": { + "english": "Bibbidi-bobbidi-boo", + "chinese": "芭拉拉能量" + }, "[Upgrade quote 0]Reinforced index finger": { "english": "prod prod", "chinese": "生产、生产……" diff --git a/resources/static/main.js b/resources/static/main.js index e76d7c0..841ba57 100644 --- a/resources/static/main.js +++ b/resources/static/main.js @@ -466,9 +466,18 @@ const ModBrandedCookies = MOD => { BRAND_COOKIE_CN[uid].desc = it.ddesc.replace(/.*/, '') + '' + BRAND_COOKIE_CN[uid].quote + ''; } - BRAND_COOKIE_CN[uid].icon.push(`'${MOD.dirURI}/brands.png'`); + BRAND_COOKIE_CN[uid].icon.push(`'${MOD.dirURI}/brands.png'`, it.icon[0], it.icon[1]); } } + + // 魔改ParticleAdd还原魔改饼干 + const ParticleAdd = Game.particleAdd; + Game.particleAdd = (x, y, xd, yd, size, dur, z, pic, text) => { + const part = ParticleAdd(x, y, xd, yd, size, dur, z, pic, text); + // 还原魔改饼干 + if (part.picPos[3]) part.picPos = [part.picPos[3], part.picPos[4]]; + return part; + }; }; // 在游戏加载前就修复Loc函数 (需要赶在本地化成就之前就生效)