Shawn M Moore > NetHack-Item-0.13 > NetHack::Inventory

Download:
NetHack-Item-0.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.13   Source   Latest Release: NetHack-Item-0.21

NAME ^

NetHack::Inventory - the player's inventory

VERSION ^

version 0.13

SYNOPSIS ^

    use NetHack::ItemPool;
    my $pool = NetHack::ItemPool->new;

    $pool->new_item("x - 3 food rations");
    $pool->inventory->get('x'); # NetHack::Item<3 food rations>

    $pool->new_item("M - a unicorn horn");

    # updates (not replaces!) the horn already in M
    $pool->new_item("M - a blessed unicorn horn");

    # replaces the horn in M because it's a different item
    $pool->new_item("M - a scroll of taming");

DESCRIPTION ^

syntax highlighting: