NAME

WWW::ARDB::Result::Quest - Quest result object for WWW::ARDB

VERSION

version 0.001

SYNOPSIS

my $quest = $api->quest('picking_up_the_pieces');

print $quest->title;           # "Picking Up The Pieces"
print $quest->trader_name;     # "Shani"
print $quest->trader_type;     # "Security"

for my $step (@{$quest->steps}) {
    printf "- %s (x%d)\n", $step->{title}, $step->{amount};
}

NAME

WWW::ARDB::Result::Quest - Quest result object for WWW::ARDB

ATTRIBUTES

id

String. Unique identifier.

title

String. Quest title.

description

String or undef. Quest description/narrative.

maps

ArrayRef. Available maps/locations for the quest.

steps

ArrayRef of HashRefs. Quest objectives with title and amount.

trader

HashRef or undef. Quest giver information with id, name, type, description, image, icon.

required_items

ArrayRef. Items needed to complete the quest.

rewards

ArrayRef. Quest completion rewards (detail endpoint only).

xp_reward

Number or undef. Experience points awarded.

updated_at

String or undef. ISO 8601 timestamp of last update.

METHODS

from_hashref($data)

Class method. Creates a Quest object from API response data.

trader_name

Returns the quest giver's name, or undef.

trader_type

Returns the quest giver's type/profession, or undef.

map_names

Returns an ArrayRef of map names where the quest is available.

SUPPORT

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

https://github.com/Getty/p5-www-ardb

git clone https://github.com/Getty/p5-www-ardb.git

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.