Magic Systems checklist for MUDs
This checklist provides a technical and design framework for auditing MUD magic systems prior to live deployment, focusing on resource stability, combat scaling, and code integrity.

Resource Management and Economy
0/5Verify Mana Cost Progression
criticalEnsure spell mana costs scale proportionately to maximum mana pools at level intervals 10, 30, and 50 to prevent infinite casting at high levels.
Test Reagent Consumption Logic
criticalConfirm spells fail and consume no mana if required inventory items are missing; verify reagents are consumed only upon successful cast completion.
Audit Cooldown Overlaps
criticalEnsure global cooldowns (GCD) effectively prevent macro-spamming of high-impact spells in both PvE and PvP contexts.
Validate Mana Regeneration States
recommendedCheck that regeneration rates correctly shift between standing, resting, sleeping, and combat states as defined in the recovery formulas.
Resource Starvation Edge Cases
recommendedTest behavior when a spell's cost exceeds current mana during the casting lag or warm-up period.
Combat Mechanics and Scaling
0/5Run Damage Variance Tests
recommendedExecute 100 iterations of primary damage spells to confirm output falls within the defined +/- 10% variance range.
Validate Saving Throw Math
criticalConfirm that a target with 50% magic resistance reduces damage or effect duration by the exact intended percentage.
Check Level-Based Scaling Caps
criticalVerify that spells using 'level * d6' or similar formulas have a hard cap to prevent one-shotting mobs in lower-tier zones.
Gear-to-Spell Power Interaction
recommendedTest that 'plus spell damage' or 'intelligence' equipment bonuses apply correctly to the base spell damage formula.
Critical Hit and Fumble Logic
optionalVerify that spell criticals do not bypass absolute damage caps and that fumbles do not crash the combat loop.
Crowd Control and Status Effects
0/5Define Stacking Priority
criticalEnsure identical buffs from different sources (e.g., a potion and a spell) do not stack unless explicitly flagged for additive behavior.
Test Dispel Priority Logic
criticalVerify that 'Dispel Magic' or 'Cancelation' removes effects based on a comparison of caster level versus the original effect's level.
Verify Crowd Control Caps
recommendedEnsure no single stun, sleep, or paralyze effect exceeds a 3-round duration in PvP combat to prevent infinite lockdown.
Check Resistance Penetration
recommendedConfirm that 'lower resistance' debuffs correctly modify the target's saving throw variables in the combat struct.
Status Effect Icon/Flag Display
recommendedVerify that active status effects are visible in the 'affected' or 'score' command output with remaining durations.
Technical Implementation and Stability
0/5Audit Spell Table Pointers
criticalCheck the spell_type table for null entries in the spell_fun field to prevent segmentation faults during lookup.
Verify Target Type Handling
criticalTest spells against self, NPCs, players, and room objects to ensure invalid targets trigger a clean error message rather than a crash.
Monitor Memory on DOTs
recommendedTrack memory allocation when 100+ 'Damage over Time' or periodic effects are active simultaneously to ensure proper cleanup on expiration.
Validate Area-of-Effect (AOE) Safety
criticalConfirm that AOE spells respect 'no-pvp' room flags and do not initiate combat with protected NPCs.
Scripting Engine Load Test
optionalMeasure latency when multiple complex scripted spells (e.g., Lua or Python hooks) are triggered in the same combat tick.
User Feedback and Visibility
0/5Standardize Combat Messages
recommendedEnsure all spell output follows a consistent {Caster} {Verb} {Target} format for parsing by player scripts and triggers.
Implement Wear-Off Triggers
criticalVerify that players receive a distinct, unique message when a buff or debuff expires (e.g., 'The shield surrounding you fades.').
Validate Error Feedback
recommendedEnsure 'Out of Mana', 'Target Not Found', and 'Spell Interrupted' messages are distinct and provide actionable information.
Check Spell Echo Visibility
recommendedVerify that third-party observers in the same room see appropriate messages for spells cast by others.
Diagnostic Output for Builders
optionalEnsure a 'wiznet' or log message is generated when a spell fails due to a configuration error in the area files.