Skip to content

Commit

Permalink
fix $are (relates to pull #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Feb 2, 2021
1 parent b081e84 commit c01606c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/Acme/ConspiracyTheory/Random.pm
Expand Up @@ -881,11 +881,14 @@ sub evidence {
}

if ( my $r = $orig_meta->{precious_resource} ) {
my $bad = $orig_meta->{antagonist}{name}
// $orig_meta->{protagonist}{name}
// $orig_meta->{shady_group}{name}
// shady_group( $orig_meta );
my $are = $orig_meta->{$bad}->{plural} ? 'are' : 'is';
my ( $bad, $are );
$orig_meta->{shady_group}{name} or shady_group( $orig_meta );
foreach ( qw/ antagonist protagonist shady_group / ) {
if ( $orig_meta->{$_}{name} ) {
$bad = $orig_meta->{$_}{name};
$are = $orig_meta->{$_}{plural} ? 'are' : 'is';
}
}
push @x, (
"the Wikipedia entry for $r keeps getting edited by $bad",
"$bad keeps buying $r secretly on the stock market",
Expand Down

0 comments on commit c01606c

Please sign in to comment.