Decorator (Forth)
Wrap a base spell in layers of chaotic metamagic.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Decorator
ARCANUM SCHOOL: Abjuration // Ward-Layering
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// FORTH PATTERN //
\ Ward-Layering: The Decorator
\ Extending behavior by chaining XTs.
DEFER BASE-SPELL
: FLAME-STRIKE ( -- ) ." Dealing 10 fire damage." CR ;
' FLAME-STRIKE IS BASE-SPELL
\ The Decorator
: WITH-ECHO ( xt -- )
DUP EXECUTE
." (Echoing the spell...)" CR
EXECUTE ;
\ Usage:
\ ' BASE-SPELL WITH-ECHO
Why cast a plain curse when you can weave it with agony? The Decorator takes an Execution Token (XT) from the stack, wraps it in additional logic or effects, and executes the combined ritual without altering the original spell definition.
Runic Tags:
#structural
#decorator
#forth
#metamagic