Journal

Rebuilding Status Effects and State Logic

Posted by:

Status effects are a major part of Last Dream II, so we’ve spent a lot of time making that system more robust.

Blind, Poison, Berserk, Sleep, Paralysis, Confusion, Silence, Morph, Mini, Disease, Zombie, Stone, Doom, Frozen, attribute changes, elemental changes, and equipment-granted states all need to behave consistently.

The refactor separates the data describing a state from the logic that applies, removes, refreshes, and scores it. This helps both battle mechanics and auto-battle AI understand states more accurately.

It also lets us support more complex behavior, such as tiered states, state chains, gemstone-granted effects, equipment bonuses, and state removal rules.

This is one of those systems where players may not see the code, but they will feel the result when battles behave more consistently.