Pet Leveling Calculator
Pets grant account-wide stats at every 5th level, and Pet Food is the bottleneck. Enter your pets, fragments and food: this tool computes the plan that buys the most global Attack / HP / Defence per food, straight from the game's level tables (v1.9.3). Pets refund 100% on reset, so it will also tell you exactly which pets to reset and reinvest.
Your pets level 0 = not owned ยท fragments = spares in inventory ยท ๐ = keep as-is (e.g. combat pets)
Pingu (Arcana) grants no account-wide level stats โ its bonuses come from its star system โ so it is listed for completeness but never recommended by the optimizer.
Your plan
๐ General priority ladder (no inputs needed)
The universal order when food is the only constraint, computed from your stat weights above. Steps merge automatically when a later milestone makes an earlier one worth rushing (e.g. 15→25 is one step because level 20 grants nothing). Numbers in brackets are the food cost per pet of that rarity.
How it works
Every pet of a rarity shares the same level-cost curve and the same milestone table: at levels 5, 10, 15, โฆ 100 the game sets your account-wide bonus to the values in that pet's current milestone row (the row replaces the previous one; between milestones nothing changes). Rarer pets grant bigger bonuses but cost far more food per level.
The algorithm
For each pet we build the chain of remaining milestone chunks (cost in food + fragments, gain in weighted stats). Because gains arrive in steps, the tool evaluates every prefix of each chain and repeatedly takes the prefix with the best gain-per-food across all pets โ the standard greedy for chained upgrades, which is optimal for this structure. Fragment shortages cap how deep a chain can go; your spare fragments plus refunds are counted per pet.
Resets
With "Allow resets" on, the plan treats refunds as part of your budget: a pet is only flagged for reset when its food genuinely buys more stats elsewhere. With "Keep current levels" it only spends the food you have on hand. Locked pets (the padlock on a card) are excluded entirely: never reset, never leveled, but their current bonus still counts in your totals โ lock the pets you actively use in combat and don't want touched.
The plan shows one instruction per pet (its final target level), listed in priority order โ if you can only afford part of the plan today, work from the top.
Assumptions
Data: game config v1.9.3 (levels 1โ100, tbpet_petlevel / tbpet_petleveleffect). Weights default to ATK 1 / HP 0.6 / DEF 0.3; change them to match your build (they reorder ATK-vs-HP-vs-DEF milestones, not much else). Pet Food from all sources is treated as one pool. The pet's own HP/ATK/DEF (which also rise with level) are ignored: they are tiny next to the account-wide percentages. Battle-skill level-ups from milestones are not valued. Resets are assumed free and 100% refundable, matching the in-game behavior.