From 4c53acc6863825c7683463a7487b32b566b493db Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 21 Jan 2025 19:36:19 -0600 Subject: [PATCH] move the asPeaceful() note to where it will help --- src/spell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spell.cpp b/src/spell.cpp index f43b04cb..b454b157 100644 --- a/src/spell.cpp +++ b/src/spell.cpp @@ -47,7 +47,6 @@ cSpell& cSpell::needsSelect(eSpellSelect sel) { return *this; } -// Mark a spell as castable by pacifist PCs cSpell& cSpell::asPeaceful() { peaceful = true; return *this; @@ -93,6 +92,10 @@ eSpell cSpell::fromNum(int num) { return check; } +// NOTE: +// asPeaceful() marks a spell as castable by pacifist PCs. It doesn't mean "only in peace mode" +// (which would make a lot of these contradictory/broken) + // Mage Spells cSpell M_LIGHT = cSpell(eSpell::LIGHT).asType(eSkill::MAGE_SPELLS).asLevel(1) .withCost(1).when(WHEN_COMBAT).when(WHEN_TOWN).when(WHEN_OUTDOORS).asPeaceful().finish();