优化
This commit is contained in:
parent
a6a3b44f94
commit
522f7bb036
@ -944,6 +944,7 @@ func (p *PlayroomMod) ShopBuy(Id, Num int, WeeklyDiscount bool) ([]*item.Item, [
|
||||
if LimitNum < Limit {
|
||||
NewCostItem = int(math.Ceil(float64(NewCostItem) * float64(Discount) / 100))
|
||||
}
|
||||
p.WeeklyDiscount[Id] = LimitNum + Num
|
||||
}
|
||||
CostItem[0].Num = NewCostItem
|
||||
return []*item.Item{item.NewItem(AddItemId, Num)}, CostItem, nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user