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函数 (需要赶在本地化成就之前就生效)