Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 10190] gaze where -path support

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 10190] gaze where -path support
  • Date: 11 Dec 2005 19:02:19 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=10190





------- Additional Comments From acedit AT armory.com 2005-12-11 13:02 -------
sorry, what i meant was to use codex_find_spell_by_name or
codex_get_spell_section_name.

if [[ $SHOW_PATH == 0 ]]; then
SECTION="$(codex_find_spell_by_name $spell)" # full path to the spell
else
SECTION=$(codex_get_spell_section_name $spell) # section of the spell
fi


What you have is it finds the spell's section, then it finds a grimoire with
that section (with codex_find_section_by_name). That grimoire/section might
not
actually have the spell in it. I can add dummy sections to my local grimoire
very easily.

codex routines can be expensive, its best to try and minimize their use and
not
mutate their results. They use optimized paths internally, mutating the
results
sometimes requires making assumptions which may change.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




Archive powered by MHonArc 2.6.24.

Top of Page