Module spells

Information about spells.

Functions

dir (name) Is this spell castable in a direction?
dir_or_target (name) Does this spell take a direction or target?
fail (name) The failure rate of the spell as a number in [0,100].
fail_severity (name) The failure severity of the spell.
god_hates (name) Does our god hate this spell?
god_likes (name) Does our god like this spell?
god_loathes (name) Does our god loathe this spell?
hunger (name) The current hunger of the spell.
letter (name) What letter is this spell assigned to?
level (name) The level of the named spell.
mana_cost (name) The MP cost of the spell.
max_power (name) The maximum spellpower (in bars).
max_range (name) The maximum range of the spell.
memorised (spellname) Is this spell memorised?
min_range (name) The minimum range of the spell.
power (name) The current spellpower (in bars).
range (name) The current range of the spell.
targ_obj (name) Can this spell target objects?
target (name) Is this spell targetable?


Functions

dir (name)
Is this spell castable in a direction?

Parameters:

  • name string

Returns:

    boolean
dir_or_target (name)
Does this spell take a direction or target?

Parameters:

  • name string

Returns:

    boolean
fail (name)
The failure rate of the spell as a number in [0,100].

Parameters:

  • name string

Returns:

    int
fail_severity (name)
The failure severity of the spell. TODO: Document these numbers

Parameters:

  • name string

Returns:

    int
god_hates (name)
Does our god hate this spell? Casting this will result in pennance or excommunication.

Parameters:

  • name string

Returns:

    boolean
god_likes (name)
Does our god like this spell?

Parameters:

  • name string

Returns:

    boolean
god_loathes (name)
Does our god loathe this spell? Casting this will result in excommunication.

Parameters:

  • name string

Returns:

    boolean
hunger (name)
The current hunger of the spell.

Parameters:

  • name string

Returns:

    int number of hunger bars
letter (name)
What letter is this spell assigned to?

Parameters:

  • name string

Returns:

    string or nil the spell letter or nil if not memorised
level (name)
The level of the named spell.

Parameters:

  • name string

Returns:

    int
mana_cost (name)
The MP cost of the spell.

Parameters:

  • name string

Returns:

    int
max_power (name)
The maximum spellpower (in bars).

Parameters:

  • name string

Returns:

    int
max_range (name)
The maximum range of the spell.

Parameters:

  • name string

Returns:

    int
memorised (spellname)
Is this spell memorised?

Parameters:

  • spellname string

Returns:

    boolean
min_range (name)
The minimum range of the spell.

Parameters:

  • name string

Returns:

    int
power (name)
The current spellpower (in bars).

Parameters:

  • name string

Returns:

    int
range (name)
The current range of the spell.

Parameters:

  • name string

Returns:

    int
targ_obj (name)
Can this spell target objects?

Parameters:

  • name string

Returns:

    boolean
target (name)
Is this spell targetable?

Parameters:

  • name string

Returns:

    boolean
generated by LDoc 1.4.6 Last updated 2018-08-21 11:24:55