Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
thororen1234 2025-08-22 21:20:05 -04:00
commit 03f64c43db
No known key found for this signature in database

View file

@ -42,8 +42,13 @@ export default definePlugin({
{
find: ",BURST_REACTION_EFFECT_PLAY",
replacement: {
match: /(?<=(\i)=\i=>{.+?)(\i\(\i,\i\))>=\i(?=\).+BURST_REACTION_EFFECT_PLAY:\1)/,
replace: "!$self.shouldPlayBurstReaction($2)"
/*
* var limit = 5
* ...
* if (calculatePlayingCount(a,b) >= limit) return;
*/
match: /(?<=(\i)=5.+?)if\((.{0,20}?)>=\1\)return;/,
replace: "if(!$self.shouldPlayBurstReaction($2))return;"
}
},
{
@ -58,8 +63,7 @@ export default definePlugin({
shouldPlayBurstReaction(playingCount: number) {
if (settings.store.unlimitedSuperReactionPlaying) return true;
if (settings.store.superReactionPlayingLimit === 0) return false;
if (playingCount <= settings.store.superReactionPlayingLimit) return true;
if (settings.store.superReactionPlayingLimit > playingCount) return true;
return false;
},