@@ -94,15 +94,13 @@ func processNiuniuAction(t string, niuniu userInfo, props string) (string, error
94
94
load , ok := prop .Load (t )
95
95
u = niuniu
96
96
if props != "" {
97
-
98
97
if props != "伟哥" && props != "媚药" {
99
98
return "" , errors .New ("道具不存在" )
100
99
}
101
100
102
101
if err = createUserInfoByProps (props , niuniu ); err != nil {
103
102
return "" , err
104
103
}
105
-
106
104
}
107
105
switch {
108
106
case ok && load .Count > 1 && time .Since (load .TimeLimit ) < time .Minute * 8 :
@@ -124,7 +122,6 @@ func processNiuniuAction(t string, niuniu userInfo, props string) (string, error
124
122
default :
125
123
messages , f = generateRandomStingTwo (niuniu .Length )
126
124
niuniu .Length = f
127
-
128
125
}
129
126
return messages , err
130
127
}
@@ -306,15 +303,13 @@ func applySkill(myLength, oppoLength float64, increaseLength1 bool) (string, flo
306
303
return fmt .Sprintf ("哦吼!?你的牛牛在长大欸!长大了%.2fcm!" , reduce ), myLength , oppoLength
307
304
}
308
305
return fmt .Sprintf ("你以绝对的长度让对方屈服了呢!你的长度增加%.2fcm,当前长度%.2fcm!" , reduce , myLength ), myLength , oppoLength
309
-
310
306
}
311
307
myLength -= reduce
312
308
oppoLength += 0.8 * reduce
313
309
if myLength < 0 {
314
310
return fmt .Sprintf ("哦吼!?看来你的牛牛因为击剑而凹进去了呢🤣🤣🤣!凹进去了%.2fcm!" , reduce ), myLength , oppoLength
315
311
}
316
312
return fmt .Sprintf ("对方以绝对的长度让你屈服了呢!你的长度减少%.2fcm,当前长度%.2fcm!" , reduce , myLength ), myLength , oppoLength
317
-
318
313
}
319
314
320
315
// fence 根据长度计算减少的长度
0 commit comments