feat(qqwife): 添加好感度提升途径 (#1049)

支持使用"娶|嫁at"提升好感度
This commit is contained in:
vatebur 2024-10-30 20:56:25 +08:00 committed by GitHub
parent 3c7289997a
commit 7c5a17761e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,7 @@ var (
"- 买礼物给[对方Q号|@对方QQ]\n使用小熊饼干获取好感度\n" + "- 买礼物给[对方Q号|@对方QQ]\n使用小熊饼干获取好感度\n" +
"- 做媒 @攻方QQ @受方QQ\n身为管理, 群友的xing福是要搭把手的(攻受双方好感度越高成功率越高,保底30%概率)\n" + "- 做媒 @攻方QQ @受方QQ\n身为管理, 群友的xing福是要搭把手的(攻受双方好感度越高成功率越高,保底30%概率)\n" +
"--------------------------------\n好感度规则\n--------------------------------\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点刷新", "\nTips: 群老婆列表过0点刷新",
PrivateDataFolder: "qqwife", PrivateDataFolder: "qqwife",
}).ApplySingle(single.New( }).ApplySingle(single.New(

View File

@ -148,6 +148,10 @@ func init() {
} }
choicetext = "\n今天你的群老公是" choicetext = "\n今天你的群老公是"
} }
favor, err = 民政局.更新好感度(uid, fiancee, 1+rand.Intn(5))
if err != nil {
ctx.SendChain(message.Text("[ERROR]:", err))
}
// 请大家吃席 // 请大家吃席
ctx.SendChain( ctx.SendChain(
message.Text(sendtext[0][rand.Intn(len(sendtext[0]))]), message.Text(sendtext[0][rand.Intn(len(sendtext[0]))]),
@ -158,6 +162,7 @@ func init() {
"\n", "\n",
"[", ctx.CardOrNickName(fiancee), "]", "[", ctx.CardOrNickName(fiancee), "]",
"(", fiancee, ")哒", "(", fiancee, ")哒",
"(", fiancee, ")哒\n当前你们好感度为", favor,
), ),
) )
}) })