This file is indexed.

/usr/share/perl5/Games/PangZero/SlowEffect.pm is in pangzero 1.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
##########################################################################
package Games::PangZero::SlowEffect;
##########################################################################

@ISA = qw(Games::PangZero::GameObject);
use strict;
use warnings;

sub new {
  my ($class) = @_;
  my $self    = Games::PangZero::GameObject->new();
  %{$self}    = ( %{$self},
    'timeout' => 1500, # Lasts for 15s
  );
  # TODO Play a sound here
  bless $self, $class;
  return $self;
}

sub RemoveSlowEffects {
  @Games::PangZero::GameObjects = grep { ref $_ ne 'Games::PangZero::SlowEffect' } @Games::PangZero::GameObjects;
}

sub Advance {
  my ($self) = @_;
  my ($timeout, $slowratio);
  
  $timeout = --$self->{timeout};
  if ( $timeout == 256 ) {
    # TODO Play a sound here
  }
  if ( $timeout > 256 ) {
    $Games::PangZero::GameSpeed = 0.2;
  } elsif ( $timeout > 0 ) {
    $Games::PangZero::Game->SetGameSpeed();
    $slowratio           = int(256 - $timeout) / 256;
    $Games::PangZero::GameSpeed = $Games::PangZero::GameSpeed * $slowratio + 0.2 * (1.0 - $slowratio);
  } else {
    $Games::PangZero::Game->SetGameSpeed();
    $self->Delete();
    return;
  }
}

sub Draw {
}

sub Clear {
}

1;