Skip to content

McFish鱼竿独立计算合成,修复钓鱼概率异常,qqwife删除群老婆重复文本,wife添加抽老婆下载失败时使用本地文件.#1294

Open
FengLing11 wants to merge 15 commits intoFloatTech:masterfrom
FengLing11:master
Open

McFish鱼竿独立计算合成,修复钓鱼概率异常,qqwife删除群老婆重复文本,wife添加抽老婆下载失败时使用本地文件.#1294
FengLing11 wants to merge 15 commits intoFloatTech:masterfrom
FengLing11:master

Conversation

@FengLing11
Copy link

No description provided.

Refactor to use local variables for probabilities in fishing logic to prevent global state issues in multiplayer scenarios.
Refactor synthesis logic to group materials and determine success rate individually. Update database and construct result message based on synthesis outcomes.
Added a fallback mechanism for loading images in the guessing game, attempting local file retrieval if remote download fails.
Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删一下vibe生成的各种无用注释

Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fangliuyu @vatebur please review the algorithm.

),
)
})
groupCount := len(list) / 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len(list)就一定是3的倍数吗?如果不是,会直接panic。

Comment on lines +467 to +493
idx1 := list[g*3]
idx2 := list[g*3+1]
idx3 := list[g*3+2]

thingInfo1 := articles[idx1]
thingInfo2 := articles[idx2]
thingInfo3 := articles[idx3]

thingInfo1.Number = 0
thingInfo2.Number = 0
thingInfo3.Number = 0

err = dbdata.updateUserThingInfo(uid, thingInfo1)
if err != nil {
ctx.SendChain(message.Text("[ERROR at pole.go.12]:", err))
return
}
err = dbdata.updateUserThingInfo(uid, thingInfo2)
if err != nil {
ctx.SendChain(message.Text("[ERROR at pole.go.12]:", err))
return
}
err = dbdata.updateUserThingInfo(uid, thingInfo3)
if err != nil {
ctx.SendChain(message.Text("[ERROR at pole.go.12]:", err))
return
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有什么意义?一模一样的代码,展开三遍?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants