Skip to content

Commit

Permalink
修改了一些问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy0411 committed Sep 14, 2024
1 parent 9bac2a7 commit da37ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugin/niuniu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ func init() {
j := fmt.Sprintf("%d_%d", gid, adduser)
count, ok := jjCount.Load(j)
var c lastLength
// 按照第一次jj时的时间计算,超过45分钟则重置
if !ok {
c = lastLength{
TimeLimit: time.Now(),
Expand Down
4 changes: 4 additions & 0 deletions plugin/niuniu/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func purchaseItem(n int, info userInfo, uid int64) (*userInfo, int, error) {
return u, money, nil
}

// useWeiGe 使用道具伟哥
func useWeiGe(niuniu float64) (string, float64) {
reduce := math.Abs(hitGlue(niuniu))
niuniu += reduce
Expand All @@ -128,6 +129,7 @@ func useWeiGe(niuniu float64) (string, float64) {
}), niuniu
}

// usePhilter 使用道具媚药
func usePhilter(niuniu float64) (string, float64) {
reduce := math.Abs(hitGlue(niuniu))
niuniu -= reduce
Expand All @@ -138,6 +140,7 @@ func usePhilter(niuniu float64) (string, float64) {
}), niuniu
}

// useArtifact 使用道具击剑神器
func useArtifact(myLength, adduserniuniu float64) (string, float64, float64) {
difference := myLength - adduserniuniu
var (
Expand All @@ -158,6 +161,7 @@ func useArtifact(myLength, adduserniuniu float64) (string, float64, float64) {
}), myLength, adduserniuniu - change/1.3
}

// useShenJi 使用道具击剑神稽
func useShenJi(myLength, adduserniuniu float64) (string, float64, float64) {
difference := myLength - adduserniuniu
var (
Expand Down

0 comments on commit da37ca6

Please sign in to comment.