Skip to content

Commit

Permalink
Added Sweeper attack ship.
Browse files Browse the repository at this point in the history
  • Loading branch information
JT Smith committed Dec 19, 2010
1 parent 9d5ea44 commit 357a088
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 6 deletions.
6 changes: 3 additions & 3 deletions add_a_ship.txt
@@ -1,8 +1,8 @@
create ship class create ship class
update Lacuna::DB::Result::Ships to add new ship type update Lacuna::DB::Result::Ships to add new ship type
create a ship image and upload it
create a ship medal and upload it
update Lacuna::DB::Result::Medals update Lacuna::DB::Result::Medals
update Lacuna::Constant SHIP_TYPES
update var/www/public/resources.json with new ship info update var/www/public/resources.json with new ship info
add ship to wiki add ship to wiki
update Lacuna::Constant SHIP_TYPES create a ship image and upload it
create a ship medal and upload it
1 change: 1 addition & 0 deletions lib/Lacuna/DB/Result/Ships.pm
Expand Up @@ -61,6 +61,7 @@ __PACKAGE__->typecast_map(type => {
'spy_shuttle' => 'Lacuna::DB::Result::Ships::SpyShuttle', 'spy_shuttle' => 'Lacuna::DB::Result::Ships::SpyShuttle',
'drone' => 'Lacuna::DB::Result::Ships::Drone', 'drone' => 'Lacuna::DB::Result::Ships::Drone',
'fighter' => 'Lacuna::DB::Result::Ships::Fighter', 'fighter' => 'Lacuna::DB::Result::Ships::Fighter',
'sweeper' => 'Lacuna::DB::Result::Ships::Sweeper',
'bleeder' => 'Lacuna::DB::Result::Ships::Bleeder', 'bleeder' => 'Lacuna::DB::Result::Ships::Bleeder',
'observatory_seeker' => 'Lacuna::DB::Result::Ships::ObservatorySeeker', 'observatory_seeker' => 'Lacuna::DB::Result::Ships::ObservatorySeeker',
'spaceport_seeker' => 'Lacuna::DB::Result::Ships::SpacePortSeeker', 'spaceport_seeker' => 'Lacuna::DB::Result::Ships::SpacePortSeeker',
Expand Down
2 changes: 1 addition & 1 deletion lib/Lacuna/DB/Result/Ships/Fighter.pm
Expand Up @@ -10,7 +10,7 @@ use constant base_food_cost => 1000;
use constant base_water_cost => 2600; use constant base_water_cost => 2600;
use constant base_energy_cost => 16200; use constant base_energy_cost => 16200;
use constant base_ore_cost => 14200; use constant base_ore_cost => 14200;
use constant base_time_cost => 14600; use constant base_time_cost => 60 * 60 * 4;
use constant base_waste_cost => 4200; use constant base_waste_cost => 4200;
use constant base_combat => 4000; use constant base_combat => 4000;
use constant base_speed => 2000; use constant base_speed => 2000;
Expand Down
2 changes: 1 addition & 1 deletion lib/Lacuna/DB/Result/Ships/Snark.pm
Expand Up @@ -10,7 +10,7 @@ use constant base_food_cost => 18000;
use constant base_water_cost => 46800; use constant base_water_cost => 46800;
use constant base_energy_cost => 145000; use constant base_energy_cost => 145000;
use constant base_ore_cost => 195030; use constant base_ore_cost => 195030;
use constant base_time_cost => 58400; use constant base_time_cost => 60 * 60 * 16;
use constant base_waste_cost => 39600; use constant base_waste_cost => 39600;
use constant base_speed => 1000; use constant base_speed => 1000;
use constant base_stealth => 2400; use constant base_stealth => 2400;
Expand Down
28 changes: 28 additions & 0 deletions lib/Lacuna/DB/Result/Ships/Sweeper.pm
@@ -0,0 +1,28 @@
package Lacuna::DB::Result::Ships::Sweeper;

use Moose;
use utf8;
no warnings qw(uninitialized);
extends 'Lacuna::DB::Result::Ships';

use constant prereq => { class=> 'Lacuna::DB::Result::Building::MunitionsLab', level => 16 };
use constant base_food_cost => 5000;
use constant base_water_cost => 12000;
use constant base_energy_cost => 70000;
use constant base_ore_cost => 75000;
use constant base_time_cost => 60 * 60 * 7;
use constant base_waste_cost => 20000;
use constant base_combat => 8500;
use constant base_speed => 3000;
use constant base_stealth => 2800;
use constant pilotable => 1;
use constant build_tags => ['War'];

with "Lacuna::Role::Ship::Send::Planet";
with "Lacuna::Role::Ship::Send::Inhabited";
with "Lacuna::Role::Ship::Send::NotIsolationist";
with "Lacuna::Role::Ship::Arrive::TriggerDefense";


no Moose;
__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1 change: 1 addition & 0 deletions var/www/public/changes.txt
Expand Up @@ -31,6 +31,7 @@
- Added Placebo 1 thru 6, which are used to fake an attack. - Added Placebo 1 thru 6, which are used to fake an attack.
- Added Bleeder attack ship. - Added Bleeder attack ship.
- Added Surveyor reconnaissance ship. - Added Surveyor reconnaissance ship.
- Added Sweeper attack ship.


2.3902 2.3902
- Halls of Vrbansk now also returns building URL. - Halls of Vrbansk now also returns building URL.
Expand Down
2 changes: 1 addition & 1 deletion var/www/public/resources.json
Expand Up @@ -119,7 +119,7 @@
"/wheat" : { "description" : "Allows you to grow wheat on your planet. You can only grow wheat on planets that are in orbits 2, 3 or 4 (the goldilox zone). The Farm will produce more wheat for each level it is increased. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/wheat-farm" } "/wheat" : { "description" : "Allows you to grow wheat on your planet. You can only grow wheat on planets that are in orbits 2, 3 or 4 (the goldilox zone). The Farm will produce more wheat for each level it is increased. All plants need a source of phosphorus to photosynthesize their food. Therefore you need a good source of gypsum, sulfur, or monazite for plants to thrive.", "wiki" : "http://community.lacunaexpanse.com/wiki/wheat-farm" }
}, },
"ships" : { "ships" : {
"placebo" : { "description" : "Use to fake an attack on another player. When it arrives it just harmlessly falls dead.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, "placebo" : { "description" : "Use to fake an attack on another player.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" },
"placebo2" : { "description" : "A faster and more stealthed version of the Placebo.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, "placebo2" : { "description" : "A faster and more stealthed version of the Placebo.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" },
"placebo3" : { "description" : "A faster and more stealthed version of the Placebo II.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, "placebo3" : { "description" : "A faster and more stealthed version of the Placebo II.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" },
"placebo4" : { "description" : "A faster and more stealthed version of the Placebo III.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, "placebo4" : { "description" : "A faster and more stealthed version of the Placebo III.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" },
Expand Down

0 comments on commit 357a088

Please sign in to comment.