mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
武器突破以及精炼功能
This commit is contained in:
@@ -79,3 +79,12 @@ func (p *Player) AddWeapon(itemId uint32, weaponId uint64) {
|
||||
p.InitWeapon(weapon)
|
||||
p.WeaponMap[weaponId] = weapon
|
||||
}
|
||||
|
||||
func (p *Player) CostWeapon(weaponId uint64) uint64 {
|
||||
weapon := p.WeaponMap[weaponId]
|
||||
if weapon == nil {
|
||||
return 0
|
||||
}
|
||||
delete(p.WeaponMap, weaponId)
|
||||
return weapon.Guid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user