Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
03f64c43db
1 changed files with 8 additions and 4 deletions
|
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue