Index


NAME

Top

Jeweler

DESCRIPTION

Top

The Jeweler skill helper module.

@RESISTS

List of all resistancies that can occur on rings and amulets.

@EFFECT_RESISTS

List of all effect resistancies that occur on rings and amulets. The difference is made because effect resistancies are less effective at lower levels.

CauldronHandler

The Jeweler::CauldronHandler package, that helps you with handling the cauldron stuff. Can also be used for other skills.

find_cauldron ($arch_name, @map_stack)

This finds the cauldron with $arch_name on the @map_stack and initalises the CauldronHandler. It takes the topmost cauldron that is found. Returns undef if no cauldron was found. Returns the cauldron object if it was found.

grep_by_type (@types)

Finds all objects in the cauldron that have the type of one of @types.

extract_jeweler_ingredients

Extracts the ingredients that matter for the Jeweler skill and returns a Jeweler::Ingredients object.

put ($object)

Just puts the $object into the cauldron.

Ingredients

This class handles the ingredients.

new (ingredients => $ingred_hash)

This is called from the CauldronHandler that gives you the ingredients.

value ($group, $archname)

Returns the value of the ingredients in $group with the archetypename $archname.

remove ($group, $archname)

Removes the ingredients in $group with archname $archname. It removes all in $group if archname is undef.

Util

Some utility functions for the Jeweler skill.

remove ($object[, $nrof])

Removes the $object. If $nrof is given, remove only $nrof objects. The returnvalue is the number of 'single' objects that couldn't be removed.

1