The Prototype of Echoing Shadows
Cloning existing magical entities by copying their essence across tables.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// LUA PATTERN //
local Prototype = {}
function Prototype:clone(obj)
local cloned = {}
for k, v in pairs(obj) do
cloned[k] = v
end
setmetatable(cloned, getmetatable(obj))
return cloned
end
local ShadowFamiliar = { type = "Shadow", strength = 10 }
local ShadowClone = Prototype:clone(ShadowFamiliar)
ShadowClone.strength = 15
Prototype
To clone a spell is to trace its Fae Moon Glyphs perfectly onto a new table. In Lua, the universe is built of such tables. The Prototype pattern duplicates the essence of an existing entity without invoking the heavy rituals of its original creation.
Runic Tags:
#fae
#prototype
#cloning