<commit_before>package Games::SolarConflict::Torpedo;
use Moose;
use SDL::Color;
use SDL::GFX::Primitives;
use namespace::clean -except => 'meta';

with 'Games::SolarConflict::Roles::Drawable';
with 'Games::SolarConflict::Roles::Physical';

has r => (
    is      => 'ro',
    isa     => 'Num',
    default => 3,
);

has color => (
    is      => 'ro',
    isa     => 'Int',
    default => 0xFFFFFFFF,
);

has '+mass' => ( default => 0.01 );

sub draw {
    my ( $self, $surface ) = @_;

    SDL::GFX::Primitives::filled_circle_color( $surface, $self->x, $self->y,
        $self->r, $self->color );
}

__PACKAGE__->meta->make_immutable;

1;
<commit_msg>Remove torpedo gravitational force<commit_after>package Games::SolarConflict::Torpedo;
use Moose;
use SDL::Color;
use SDL::GFX::Primitives;
use namespace::clean -except => 'meta';

with 'Games::SolarConflict::Roles::Drawable';
with 'Games::SolarConflict::Roles::Physical';

has r => (
    is      => 'ro',
    isa     => 'Num',
    default => 3,
);

has color => (
    is      => 'ro',
    isa     => 'Int',
    default => 0xFFFFFFFF,
);

has '+mass' => ( default => 0.01 );

# Torpedos should have negligible gravitational force
sub force_on { (0, 0) }

sub draw {
    my ( $self, $surface ) = @_;

    SDL::GFX::Primitives::filled_circle_color( $surface, $self->x, $self->y,
        $self->r, $self->color );
}

__PACKAGE__->meta->make_immutable;

1;

{'fraction_non_alphanumeric': 0.19203413940256045, 'fraction_numerical': 0.00995732574679943, 'mean_word_length': 3.5096153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1775471', 'n_tokens_mistral': 545, 'n_tokens_neox': 507, 'n_words': 111}