move the asPeaceful() note to where it will help

This commit is contained in:
2025-01-21 19:36:19 -06:00
parent 1fb1aa2ce3
commit 4c53acc686

View File

@@ -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();