Eastern Sun Lunar Eclipse1.10f closed realm
Eastern Sun Lunar Eclipse / Features / Life and mana past 8,388,607

Life and mana past 8,388,607

Your life and mana can pass the game's ceiling. The orbs and the character screen show the whole; a reserve past 8,323,072 drains first.

The game keeps life and mana in a number that stops at 8,388,607. Gear that took your maximum past it used to wrap the number round, and the game then believed your maximum was 1: the orb emptied and the healer gave you nothing.

With Pool={{setting Attributes.ini Vitals.Pool}} in Attributes.ini (1 is on), your maximum life and mana can be any size. What you see:

  • The orbs show the whole. The Life and Mana lines over them read your true life and maximum, and each orb drains as the whole does.
  • The character screen's Life and Mana boxes show the whole too, as 15.7M past seven digits; hold the mouse over a box for every digit, and Shift for where it comes from. The +% to maximum life and mana is what your items and skills give.
  • Behind the display, the game's own stat holds up to 8,323,072 at a time and the rest waits in a reserve. Every hit, poison tick, mana burn and cast drains the reserve first; a single hit bigger than the stat holds takes the rest from the reserve. You die when both are gone.
  • Heals reach the whole. The healer in town fills life and mana to your true maximum, a rejuvenation potion heals its percent of the true maximum, mana regenerates the whole in the game's 120 seconds (faster with Regenerate Mana %), and leech, life after a kill, shrines, wells and Replenish Life add to the whole as they do under the ceiling. The reserve also comes back full when you load the character.
  • Taking off the gear brings your maximum back under the ceiling with the life and mana you had, up to the new maximum.

Effects that take a percentage of your maximum from you (a skill that costs a share of your life, a monster's mana burn) use the stat's maximum, 8,323,072 at most.

Summons and hirelings

A pet's maximum life is its own base times every +% it carries (the summon skill's life per level, Oak Sage, Battle Orders), and the game sums that in the same number. A bear with the Paladin's life from Bearward Crest, or a high level summon under Battle Orders, used to pass the ceiling, wrap, and die to the next touch. Now a summon or hireling whose whole maximum passes 2,080,768 is held there and keeps the rest in a reserve of its own, as the mod's largest monsters are: its hits, poison, the life bar and the party panel's percent count the whole, and the hold is made again whenever its +% or its base changes. The server does it every frame for every player's pets (SkillFixes [LifePool]), and a pet whose sum has wrapped anyway is held again before a hit or a poison tick reads it.

The summon pages of the hireling screen show a summon's whole life and true maximum, and the hireling screen shows the hireling's. The window is a quarter of the game's ceiling so a +% can grow fourfold on a held pet before the sum wraps; where it wraps all the same, the game reads the ceiling as the maximum for that frame instead of 1, so nothing is clamped away.

Stamina

Maximum stamina stops at 32,767 (Attributes.ini [Vitals] StaminaCap). The cap is measured in parts: the +% to stamina is taken off, the flat part read, and the whole worked out in 64 bits, so a sum that passed the game's ceiling and came round negative is brought to the cap like any other. Current stamina is never left above the cap or below 0.

How it is kept

The server keeps the reserve for each player in the game, and holds the game's own maximum at 8,323,072 by a correction on your +% to maximum life or mana, which it measures again each time your maximum changes (an item on or off, a level, an aura). While it holds you, the stat itself is kept 2,080,768 under that maximum, so anything the game heals you by lands in the stat and moves into the reserve on the next update instead of being clamped away; a heal of more than 2,080,768 in one frame keeps that much. It sends your own game the whole and the true maximum whenever they move, at most six times a second, and your orbs and character screen draw from that; another player's game never sees your reserve. Attributes.log on the server shows each measure as "[Pool] life past the window" with your true maximum, and on your game the first lines it takes as "[Client] vitals line".

A build whose maximum life and mana stay under the ceiling sees no change at all.