The Decorator of Luminous Glamours
Wrapping a core spell with layers of protective and luminous enchantments.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Decorator
ARCANUM SCHOOL: Illusion // Glamour
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// LUA PATTERN //
local BasicSpell = { cast = function() return "A spark of magic" end }
local function LunarGlamour(spell)
return {
cast = function()
return spell.cast() .. " bathed in moonlight."
end
}
end
local function StarlightGlamour(spell)
return {
cast = function()
return spell.cast() .. " glittering with stars."
end
}
end
local mySpell = StarlightGlamour(LunarGlamour(BasicSpell))
print(mySpell.cast())
Decorator
Through the application of Fae Moon Glyphs, a simple spark of magic can be draped in endless glamours. The Decorator pattern in Lua often utilizes closures and lightweight table wrappers, layering symbiotic magic without altering the core spell’s true nature.
Runic Tags:
#fae
#decorator
#wrapper