🌙 LUA GLYPH DIFFICULTY: Adept Creational

The Abstract Factory of Fae Moon Glyphs

A creational pattern that summons families of related magical objects through sympathetic table weaving.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Conjuration // Symbiosis
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// LUA PATTERN //
local FaeFactory = {}
function FaeFactory:new(moonPhase)
  local obj = { phase = moonPhase }
  setmetatable(obj, self)
  self.__index = self
  return obj
end
function FaeFactory:createWisp() end
function FaeFactory:createGlamour() end

local WaxingFactory = FaeFactory:new("Waxing")
function WaxingFactory:createWisp() return "Bright Wisp" end
function WaxingFactory:createGlamour() return "Silver Glamour" end

local WaningFactory = FaeFactory:new("Waning")
function WaningFactory:createWisp() return "Dim Wisp" end
function WaningFactory:createGlamour() return "Shadow Glamour" end

Abstract Factory

In the symbiotic scripting of the World Engine, the Fae Moon Glyphs govern the creation of interwoven magical constructs. The Abstract Factory acts as a constellation of metatables, determining whether your wisps and glamours are born of the Waxing or Waning moon.

Runic Tags: #fae #abstract-factory #creation