File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -488,13 +488,16 @@ export async function addResult(
488488
489489 let dailyLeaderboardRank = - 1 ;
490490
491+ const stopOnLetterTriggered =
492+ completedEvent . stopOnLetter && completedEvent . acc < 100 ;
493+
491494 const validResultCriteria =
492495 canFunboxGetPb ( completedEvent ) &&
493496 ! completedEvent . bailedOut &&
494497 user . banned !== true &&
495498 user . lbOptOut !== true &&
496499 ( isDevEnvironment ( ) || ( user . timeTyping ?? 0 ) > 7200 ) &&
497- ! completedEvent . stopOnLetter ;
500+ ! stopOnLetterTriggered ;
498501
499502 const selectedBadgeId = user . inventory ?. badges ?. find ( ( b ) => b . selected ) ?. id ;
500503 const isPremium =
Original file line number Diff line number Diff line change @@ -454,7 +454,12 @@ export async function checkIfPb(
454454 const { mode } = result ;
455455
456456 if ( ! canFunboxGetPb ( result ) ) return false ;
457- if ( "stopOnLetter" in result && result . stopOnLetter === true ) return false ;
457+ if (
458+ "stopOnLetter" in result &&
459+ result . stopOnLetter === true &&
460+ result . acc < 100
461+ )
462+ return false ;
458463
459464 if ( mode === "quote" ) {
460465 return false ;
@@ -500,7 +505,12 @@ export async function checkIfTagPb(
500505
501506 const { mode, tags : resultTags } = result ;
502507 if ( ! canFunboxGetPb ( result ) ) return [ ] ;
503- if ( "stopOnLetter" in result && result . stopOnLetter === true ) return [ ] ;
508+ if (
509+ "stopOnLetter" in result &&
510+ result . stopOnLetter === true &&
511+ result . acc < 100
512+ )
513+ return [ ] ;
504514
505515 if ( mode === "quote" ) {
506516 return [ ] ;
Original file line number Diff line number Diff line change @@ -483,10 +483,12 @@ async function resultCanGetPb(): Promise<CanGetPbObject> {
483483 const allFunboxesCanGetPb = funboxObjects . every ( ( f ) => f ?. canGetPb ) ;
484484
485485 const funboxesOk = funboxes . length === 0 || allFunboxesCanGetPb ;
486- const notUsingStopOnLetter = Config . stopOnError !== "letter" ;
486+ // allow stopOnError:letter to be PB only if 100% accuracy, since it doesn't affect gameplay
487+ const stopOnLetterTriggered =
488+ Config . stopOnError === "letter" && result . acc < 100 ;
487489 const notBailedOut = ! result . bailedOut ;
488490
489- if ( funboxesOk && notUsingStopOnLetter && notBailedOut ) {
491+ if ( funboxesOk && ! stopOnLetterTriggered && notBailedOut ) {
490492 return {
491493 value : true ,
492494 } ;
@@ -497,7 +499,7 @@ async function resultCanGetPb(): Promise<CanGetPbObject> {
497499 reason : "funbox" ,
498500 } ;
499501 }
500- if ( ! notUsingStopOnLetter ) {
502+ if ( stopOnLetterTriggered ) {
501503 return {
502504 value : false ,
503505 reason : "stop on letter" ,
You can’t perform that action at this time.
0 commit comments