← All scenarios
MAG-005resolveStatsOnly

MATK resolution — base Wizard vs buffed Wizard (Magnificat + INT food)

resolveStatsOnly action. Verifies MATK derivation pipeline (the magical equivalent of D-003's ATK components). Two cases: base Wizard, then same Wizard with +10 INT food and Magnificat (which boosts SP regen but is included here as a stand-in for buff stacking). Expected MATK values are computed approximately from the Renewal formula.

statResolutionMATKComponentsbuffStackingmatkStatusComponent
Action
resolveStatsOnly
Stat resolution only — no damage computation

Actors

Wizard (base)
player · wizard · Lv70/50
attacker
Primary stats
str
1
agi
10
vit
20
int
80
dex
50
luk
10
Equipment
  • mainhand: survivor_rod_int · staff · +5 · ATK 50 · MATK 120
Expected output
From the scenario fixture. Numerical values marked as null are placeholders pending rAthena verification.

Verify against rAthena's status_calc_pc_. The library should expose MATK as a struct: { matkStatus, matkWeapon, matkEquip, matkTotal_min, matkTotal_max } — magical damage uses a min/max range, unlike physical's single value plus variance.

Show full expected JSON
{
  "breakdown": {
    "matkStatus_formula": "approximate: floor(BaseLevel/4 + INT + floor(INT/2)^2/100 + DEX/5 + LUK/3)",
    "matkStatus_expectedRange": [
      120,
      175
    ],
    "matkWeapon_present": true,
    "matkRange_present": true,
    "_note": "If matkStatus is wildly off (e.g. < 100 or > 250), the formula is wrong — verify the (INT/2)^2 term placement."
  },
  "propertyAssertions": [
    "matkTotal_max >= matkTotal_min",
    "increasing INT by 10 increases matkStatus non-linearly (more than 10 points) due to the squared term"
  ]
}

Computed: ResolvedStats

Server-evaluated by resolveStats() from @ro/core.

Resolved primaries
After stat.* modifiers (D-005)
StatBaseResolvedΔ
STR110
AGI10100
VIT20200
INT80800
DEX50500
LUK10100
Combat secondaries
D-007
HIT123
FLEE82
Perfect Dodge1
CRIT4%
Crit damage2.00×
ASPDbase stubbed at 0142.00
MaxHP / MaxSPjob tables pending0 / 0
Physical ATK components
D-003
StatusATK49
WeaponATKPhase 3+75
EquipATK0
MasteryATK0
ATK%0.0%
Magical MATK components
D-007
StatusMATK126
WeaponMATKPhase 3+0
EquipMATK0
MATK%0.0%
Defenses
D-004
Hard DEF0
Soft DEF39
Hard MDEF0
Soft MDEF123
Conditional buckets
Pre-summed defender-keyed bonuses + deferred modifiers

No defender-keyed bonuses active.

Pending conditional modifiers: 0