Skip to content

Commit

Permalink
修复particle显示错误饼干的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TsFreddie committed Sep 14, 2021
1 parent 34a9f00 commit 0de560e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resources/patches/TsFreddie.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@
"english": "Cookie chain broken.<br><small>You made %1.</small>",
"chinese": "饼干连锁断裂。<br><small>你获得了 %1。</small>"
},
"[Achievement name 321]Bibbidi-bobbidi-boo": {
"english": "Bibbidi-bobbidi-boo",
"chinese": "芭拉拉能量"
},
"[Upgrade quote 0]Reinforced index finger": {
"english": "prod prod",
"chinese": "生产、生产……"
Expand Down
11 changes: 10 additions & 1 deletion resources/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,18 @@ const ModBrandedCookies = MOD => {
BRAND_COOKIE_CN[uid].desc =
it.ddesc.replace(/<q>.*/, '') + '<q>' + BRAND_COOKIE_CN[uid].quote + '</q>';
}
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函数 (需要赶在本地化成就之前就生效)
Expand Down

0 comments on commit 0de560e

Please sign in to comment.