mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
correct handling adding XP in child->titan levelup
(this can happen with a quick conversion child->adult->titan, wrong order of `SetRaisedPet` requests or missed request)
This commit is contained in:
parent
4b2fefc492
commit
3229464c02
@ -114,6 +114,9 @@ namespace sodoff.Services {
|
||||
dragonXP += dragonAdultMinXP;
|
||||
} else if (growthState == 5 && dragonXP < dragonTitanMinXP) {
|
||||
// adult to titan via ticket -> add XP
|
||||
if (dragonXP < dragonAdultMinXP)
|
||||
dragonXP += dragonTitanMinXP;
|
||||
else
|
||||
dragonXP += dragonTitanMinXP - dragonAdultMinXP;
|
||||
}
|
||||
return dragonXP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user