Skip to content

Commit 9ec887d

Browse files
author
prima
committed
fix: Player character as WI not working
1 parent 070763d commit 9ec887d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

klite.embd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17576,7 +17576,7 @@ Current version indicated by LITEVER below.
1757617576
// If accessing WI for a character's memory, switch based on the current chat opponent
1757717577
if (!!shoulduse && !!finalCo && (!!wi.comment && !!wi.wigroup) && (wi.comment.endsWith("_imported_memory") && wi.wigroup === wi.comment.replace("_imported_memory", "")))
1757817578
{
17579-
shoulduse = wi.wigroup == finalCo
17579+
shoulduse = (wi.wigroup == localsettings.chatname) || (wi.wigroup == finalCo)
1758017580
}
1758117581

1758217582
if (shoulduse) {
@@ -35594,7 +35594,7 @@ let checkFinalThoughtsPrompt = `Action: {"command":{"name":"thought","args":{"me
3559435594
// If accessing WI for a character's memory, switch based on the current chat opponent
3559535595
if (!!shoulduse && !!getChatOpponentForAgent() && (!!wi.comment && !!wi.wigroup) && (wi.comment.endsWith("_imported_memory") && wi.wigroup === wi.comment.replace("_imported_memory", "")))
3559635596
{
35597-
shoulduse = wi.wigroup == getChatOpponentForAgent()
35597+
shoulduse = (wi.wigroup == localsettings.chatname) || (wi.wigroup == getChatOpponentForAgent())
3559835598
}
3559935599

3560035600
if (shoulduse) {

0 commit comments

Comments
 (0)