This commit is contained in:
hahwu 2025-10-28 16:45:32 +08:00
parent a6a3b44f94
commit 522f7bb036

View File

@ -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