Improve patch. (#359)
This commit is contained in:
parent
865097b0dc
commit
03e9c2b501
1 changed files with 3 additions and 7 deletions
|
|
@ -1066,16 +1066,12 @@ export default definePlugin({
|
|||
match: /(START_QUEST_CTA.{0,400}?disabled:)(!0)/,
|
||||
replace: "$1$self.shouldDisableQuestAcceptedButton(arguments[0].quest)??$2"
|
||||
},
|
||||
{
|
||||
// When the Quest Accepted button which has been enabled again by the above patch is
|
||||
// clicked, resume the automatic completion of the Quest and disable the button again.
|
||||
match: /(START_QUEST_CTA.*?,{variant:"secondary",)/,
|
||||
replace: "$1onClick:()=>{$self.processQuestForAutoComplete(arguments[0].quest)},",
|
||||
},
|
||||
{
|
||||
// The "Quest Accepted" text is changed to "Resume" if the Quest is in progress but not active.
|
||||
// When the Quest Accepted button which has been enabled again by the above patch is clicked,
|
||||
// resume the automatic completion of the Quest and disable the button again.
|
||||
match: /(\i.intl.string\(\i.\i#{intl::QUEST_ACCEPTED}\))/,
|
||||
replace: "$self.getQuestAcceptedButtonText(arguments[0].quest)??$1"
|
||||
replace: "$self.getQuestAcceptedButtonText(arguments[0].quest)??$1,onClick:()=>{$self.processQuestForAutoComplete(arguments[0].quest)}"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue