✨ ARCANUM RUNE DIFFICULTY: Adept Behavioral

The Chain of the Void Tribunal

Pass arcane judgments along a sequence of increasingly powerful void entities.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Chain of Responsibility
ARCANUM SCHOOL: Divination // Judgment
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
GET "libhdr"

MANIFEST $(
  RANK_ACOLYTE = 1
  RANK_LICH = 2
  RANK_OVERLORD = 3
$)

LET HandleRequest(rank, threatLevel) BE $(
  SWITCHON rank INTO $(
    CASE RANK_ACOLYTE:
      IF threatLevel <= 10 THEN writef("Acolyte banishes the minor threat.*n")
      ELSE $(
        writef("Acolyte cannot handle threat. Escalating to Lich.*n")
        HandleRequest(RANK_LICH, threatLevel)
      $)
      ENDCASE
    CASE RANK_LICH:
      IF threatLevel <= 50 THEN writef("Lich drains the threat's essence.*n")
      ELSE $(
        writef("Lich cannot handle threat. Escalating to Overlord.*n")
        HandleRequest(RANK_OVERLORD, threatLevel)
      $)
      ENDCASE
    CASE RANK_OVERLORD:
      writef("Overlord obliterates the threat into the Ancestral Void.*n")
      ENDCASE
  $)
$)

LET START() BE $(
  writef("Processing Threat Level 5:*n")
  HandleRequest(RANK_ACOLYTE, 5)
  writef("*nProcessing Threat Level 30:*n")
  HandleRequest(RANK_ACOLYTE, 30)
  writef("*nProcessing Threat Level 9000:*n")
  HandleRequest(RANK_ACOLYTE, 9000)
$)
Runic Tags: #chain-of-responsibility #tribunal #void