Help for this page

Select Code to Download


  1. or download this
    
    package Enemy;
    ...
    
    my $monster = Enemy->new('Rat');
    
  2. or download this
    my %attack = (
        basic_light => { type => 'light', damage => '1', defmod => { block
    + => '0', dodge => '0' } },
        basic_heavy => { type => 'heavy', damage => '2', defmod => { block
    + => '0', dodge => '10' } },
    );
    
  3. or download this
    $a = $attacker->choose_attack();
    
    # with the intention of 
    # $a == { type => 'light', damage => '1', defmod => { block => '0', do
    +dge => '0' } }