package TAEB::Action::Remove;
use TAEB::OO;
extends 'TAEB::Action';
with 'TAEB::Action::Role::Item';

has '+item' => (
    required => 1,
);

sub command {
    my $self = shift;
    my $item = $self->item;

    return 'T' if $item->type eq 'armor';
    return 'R';
}

sub respond_remove_what { shift->item->slot }

sub done { shift->item->is_worn(0) }

sub msg_cursed { shift->item->buc('cursed') }

__PACKAGE__->meta->make_immutable;

1;

