The Strategy of the Void Tactician
Hot-swap the algorithms of warfare without disturbing the underlying spell matrix.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Evocation // Tactics
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
GET "libhdr"
LET StrategyAggressive(enemyHP) = enemyHP - 50
LET StrategyDefensive(enemyHP) = enemyHP - 10
LET StrategyVampiric(enemyHP) = enemyHP - 25 // Also heals, omitted for brevity
LET ExecuteStrike(strategy, enemyHP) = VALOF $(
writef("Striking with tactical mastery...*n")
RESULTIS strategy(enemyHP)
$)
LET START() BE $(
LET hp = 100
writef("Enemy HP: %d*n", hp)
hp := ExecuteStrike(StrategyDefensive, hp)
writef("Enemy HP after defensive strike: %d*n", hp)
hp := ExecuteStrike(StrategyAggressive, hp)
writef("Enemy HP after aggressive strike: %d*n", hp)
$)
Runic Tags:
#strategy
#tactics
#void