Skip to content

Commit

Permalink
feat(qqwife): 添加好感度提升途径 (#1049)
Browse files Browse the repository at this point in the history
支持使用"娶|嫁at"提升好感度
  • Loading branch information
vatebur authored Oct 30, 2024
1 parent 3c72899 commit 7c5a177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/qqwife/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var (
"- 买礼物给[对方Q号|@对方QQ]\n使用小熊饼干获取好感度\n" +
"- 做媒 @攻方QQ @受方QQ\n身为管理, 群友的xing福是要搭把手的(攻受双方好感度越高成功率越高,保底30%概率)\n" +
"--------------------------------\n好感度规则\n--------------------------------\n" +
"\"娶群友\"指令好感度随机增加1~5。\n\"A牛B的C\"会导致C恨A, 好感度-5;\nB为了报复A, 好感度+5(什么柜子play)\nA为BC做媒,成功B、C对A好感度+1反之-1\n做媒成功BC好感度+1" +
"\"娶群友\"&\"(娶|嫁)@对方QQ\"指令好感度随机增加1~5。\n\"A牛B的C\"会导致C恨A, 好感度-5;\nB为了报复A, 好感度+5(什么柜子play)\nA为BC做媒,成功B、C对A好感度+1反之-1\n做媒成功BC好感度+1" +
"\nTips: 群老婆列表过0点刷新",
PrivateDataFolder: "qqwife",
}).ApplySingle(single.New(
Expand Down
5 changes: 5 additions & 0 deletions plugin/qqwife/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ func init() {
}
choicetext = "\n今天你的群老公是"
}
favor, err = 民政局.更新好感度(uid, fiancee, 1+rand.Intn(5))
if err != nil {
ctx.SendChain(message.Text("[ERROR]:", err))
}
// 请大家吃席
ctx.SendChain(
message.Text(sendtext[0][rand.Intn(len(sendtext[0]))]),
Expand All @@ -158,6 +162,7 @@ func init() {
"\n",
"[", ctx.CardOrNickName(fiancee), "]",
"(", fiancee, ")哒",
"(", fiancee, ")哒\n当前你们好感度为", favor,
),
)
})
Expand Down

0 comments on commit 7c5a177

Please sign in to comment.