Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Passives

Native (UMF) fighters opt into passive systems through the passives object of their JSON. Nothing is hardcoded to a fighter name: M.U.G.E.N. characters and native fighters without these keys are not affected.

"passives": {
  "meterRegen": 0.35,
  "lifeRegen": 0.04,
  "rage": { "maxMultiplier": 4.0, "exponent": 1.0, "startRatio": 1.0, "fullRatio": 0.01 },
  "enrageTime": { "maxMultiplier": 5.0, "startSeconds": 15, "rampSeconds": 105, "exponent": 1.0 },
  "stacks": { "damageGain": 0.07, "defenceGain": 0.015, "speedGain": 0.015, "maxStacks": 10, "decayTicks": 420, "resetOnRound": true, "specials": true, "supers": true }
}

Regeneration

meterRegen adds power every tick and lifeRegen adds life every tick while a round is in progress (compiled into [Statedef -2]).

Rage (damage grows as life drops)

Used by Bruno. With r = life / lifemax:

progress   = clamp((startRatio - r) / (startRatio - fullRatio), 0, 1)
multiplier = 1 + (maxMultiplier - 1) * progress ^ exponent
KeyDefaultRangeMeaning
maxMultiplier4.01 to 6Damage multiplier reached at fullRatio
exponent1.00.25 to 41 is linear, above 1 stays low longer then ramps, below 1 ramps early
startRatio1.00.05 to 1Life share where the bonus starts (1.0 = from full life)
fullRatio0.010 to startRatio - 0.01Life share where the maximum is reached

With the defaults the curve is 1.0x at 100%, about 2.5x at 50%, about 3.7x at 10% and 4.0x at 1%. It is continuous: no steps.

Ability stacks (stronger with every special)

Used by Sylene. Each time the fighter enters a special state (1000 to 1999) or a super state (3000 to 3899), including the air variants (+20000), it gains one stack up to maxStacks (1 to 30). Normals, fly, teleport and super speed do not stack.

KeyDefaultEffect per stack
damageGain0.05Damage multiplier 1 + damageGain * stacks
defenceGain0Defence multiplier 1 + defenceGain * stacks (capped at 3x)
speedGain0Horizontal movement speed 1 + speedGain * stacks (capped at 1.5x, not applied while being hit)
maxStacks10Stack ceiling
decayTicks0When above 0, one stack is lost after this many ticks without gaining one
resetOnRoundtrueStacks are cleared when a round starts
specials, superstrueWhich move kinds count

Enrage over time (stronger the longer the fight lasts)

Used by Garan, the Ashen Oni. Damage grows with the time spent fighting in the current round. The counter runs only while the round is live (not during intro, KO or victory), stops when the fighter dies and restarts at every round.

progress   = clamp((fightSeconds - startSeconds) / rampSeconds, 0, 1)
multiplier = 1 + (maxMultiplier - 1) * progress ^ exponent
KeyDefaultRangeMeaning
maxMultiplier5.01 to 6Damage multiplier reached at the end of the ramp
startSeconds00 and upSeconds of fight before the bonus starts
rampSeconds60above 0Seconds from the start to the maximum
exponent1.00.25 to 41 is linear, above 1 ramps late, below 1 ramps early

Garan uses 15 s of grace and 105 s of ramp: 1x until 0:15, 3x at 1:07, 5x from 2:00.

Composition rule and cap

effective attack  = min(attackMul * rage * time * (1 + damageGain * stacks), max(attackMul, 8.0))
effective defence = defenceMul * superDefenceMul * (1 + defenceGain * stacks)

attackMul already contains the base stats.attack and the awakened or ascended form multipliers (PR #415), so every source multiplies. A time enrage of 5x alone is never clipped (even with a 1.3x awakened form it stays under the ceiling); combined with a full rage the 8x ceiling applies. The global ceiling is 8x the base damage; a fighter whose own attackMul is already higher (for example a M.U.G.E.N. AttackMulSet) keeps it. Without a rage or stacks key the original multipliers are used unchanged.

HUD and effects

  • A thin strip along the bottom of the health bar shows rage progress (orange to gold) and a row of pips shows stacks.
  • A second strip (violet to red) above the rage strip shows the time enrage progress.
  • The awakened-form aura is reused: it appears once rage or stacks pass 8% and grows with the largest of the three. Rage alone tints it red, time alone tints it violet.
  • Stack state is part of the netplay checksum.

Code

crates/engine/src/passives.rs (rules, state, Fighter::effective_attack), crates/native/src/passive_spec.rs (JSON), src/hud/passive_meter.rs, src/passive_fx.rs, crates/engine/src/passive_time.rs. Tests: crates/engine/tests/passives.rs, crates/engine/tests/passive_time.rs. Screenshots: UME_TOUR=passives ultimate-mugen --shots <dir>.