The Prototype of Magical Cloning
Clone existing spell matrices by unifying with a prototype pattern.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Prototype
ARCANUM SCHOOL: Illusion // Biomancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PROLOG PATTERN //
% The Prototype Registry
prototype(fireball, spell(fire, 50, area_effect)).
prototype(healing_word, spell(light, 20, single_target)).
% Clone operation is simply unification and modification in logic
clone_spell(Name, ClonedSpell) :-
prototype(Name, ClonedSpell).
% Clone and modify (mutate the clone)
empower_spell(Name, EmpoweredSpell) :-
prototype(Name, spell(Element, Power, Target)),
NewPower is Power * 2,
EmpoweredSpell = spell(Element, NewPower, Target).
% ?- empower_spell(fireball, Empowered).
% Empowered = spell(fire, 100, area_effect).
Runic Tags:
#prototype
#creational
#prolog
#cloning
#spells