1
This commit is contained in:
@@ -201,10 +201,11 @@ func (h Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundI
|
||||
EXP: exp * 2,
|
||||
}
|
||||
if refPet.Item != 0 {
|
||||
p.ItemAdd(refPet.Item, uint32(grand.Intn(2)+1))
|
||||
count := uint32(grand.Intn(2) + 1)
|
||||
p.ItemAdd(refPet.Item, count)
|
||||
items.ItemList = append(items.ItemList, data.ItemInfo{
|
||||
ItemId: refPet.Item,
|
||||
ItemCnt: uint32(grand.Intn(2) + 1),
|
||||
ItemCnt: count,
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user