取消免费体力
This commit is contained in:
parent
6f26efa8a5
commit
91e9ebaea0
@ -221,10 +221,10 @@ func (b *Base) SetLang(lang msg.LANG_TYPE) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *Base) BuyEnergy(Energy int) ([]*item.Item, int, int) {
|
func (b *Base) BuyEnergy(Energy int) ([]*item.Item, int, int) {
|
||||||
if !b.IsFirstBuy {
|
// if !b.IsFirstBuy {
|
||||||
b.IsFirstBuy = true
|
// b.IsFirstBuy = true
|
||||||
return []*item.Item{{Id: item.ITEM_ENERGY_ID, Num: 100}}, 100, 0
|
// return []*item.Item{{Id: item.ITEM_ENERGY_ID, Num: 100}}, 100, 0
|
||||||
}
|
// }
|
||||||
b.EnergyBuy += 1
|
b.EnergyBuy += 1
|
||||||
Mul := baseCfg.GetEnergyByMul(b.EnergyBuy)
|
Mul := baseCfg.GetEnergyByMul(b.EnergyBuy)
|
||||||
Diamond := int(float64(Energy) / Mul)
|
Diamond := int(float64(Energy) / Mul)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user