This commit is contained in:
@@ -200,14 +200,15 @@ func (Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundInf
|
||||
if foi.Reason == 0 && foi.WinnerId == p.Info.UserID {
|
||||
|
||||
exp := uint32(xmlres.PetMAP[int(monster.ID)].YieldingExp) * monster.Level / 7
|
||||
leve := p.CanGetExp()
|
||||
exp = uint32(leve) * (exp)
|
||||
addlevel, pookevel := p.CanGetExp()
|
||||
addexp := uint32(addlevel) * (exp)
|
||||
poolexp := uint32(pookevel) * (exp)
|
||||
items := &info.S2C_GET_BOSS_MONSTER{
|
||||
//EV: 45,
|
||||
EXP: exp / 2,
|
||||
EXP: addexp,
|
||||
}
|
||||
p.Info.ExpPool += int64(exp)
|
||||
p.AddPetExp(foi.Winpet, int64((exp)/2))
|
||||
p.Info.ExpPool += int64(poolexp + addexp)
|
||||
p.AddPetExp(foi.Winpet, int64(addexp))
|
||||
if refPet.Item != 0 {
|
||||
count := int64(grand.Intn(2) + 1)
|
||||
p.ItemAdd(refPet.Item, count)
|
||||
|
||||
Reference in New Issue
Block a user