feat(boss-fight): 调整宠物战斗奖励逻辑 修复闪亮怪物奖励物品的位置,将奖励物品发放逻辑从条件判断前移到判断后, 确保只有符合条件的玩家才能获得玄铁奖励。 fix(player-energy): 修复能量时间消耗问题 注释掉EnergyTime的自动减1逻辑,避免玩家能量值异常减少。 refactor(shop-config): 优化商店查询配置 移除商品名称字段查询,只保留remark字段作为关键词搜索, 简化商品表的SELECT语句,提高查询效率。 ```
This commit is contained in:
@@ -97,7 +97,7 @@ func (p *Player) CanGetXUAN() bool {
|
||||
var base = 1
|
||||
if p.Info.EnergyTime > 0 {
|
||||
base = 2
|
||||
p.Info.EnergyTime--
|
||||
// p.Info.EnergyTime--
|
||||
}
|
||||
if grand.Meet(base, 2) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user