🦊 FOXPRO APPARITION DIFFICULTY: Adept Creational

The Prototype of Spectral Cloning

Specify the kinds of apparitions to create using a prototypical instance, and create new spirits by copying this prototype.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Cloning
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// FOXPRO PATTERN //
DEFINE CLASS SpectralClone AS Custom
    SoulFragment = ""

    FUNCTION Clone()
        LOCAL oClone
        oClone = CREATEOBJECT("SpectralClone")
        oClone.SoulFragment = THIS.SoulFragment
        RETURN oClone
    ENDFUNC
ENDDEFINE

* Usage:
* oOriginal = CREATEOBJECT("SpectralClone")
* oOriginal.SoulFragment = "Agony"
* oCopy = oOriginal.Clone()
* ? oCopy.SoulFragment

When the cost of creating a new spirit from scratch via full rituals is too high, simply shatter an existing soul and mold a new one from its fragments. The Prototype enables deep duplication.

Runic Tags: #creational #prototype #copy