From 1b204ab4f51b3fb1b2bcaeedb5975e251c8d0c3d Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 19 Dec 2010 13:30:55 -0600 Subject: [PATCH] Added Placebo 1 thru 6, which are used to fake an attack. --- lib/Lacuna/Constants.pm | 4 +++- lib/Lacuna/DB/Result/Medals.pm | 6 ++++++ lib/Lacuna/DB/Result/Ships.pm | 6 ++++++ lib/Lacuna/DB/Result/Ships/Placebo.pm | 24 ++++++++++++++++++++++++ lib/Lacuna/DB/Result/Ships/Placebo2.pm | 25 +++++++++++++++++++++++++ lib/Lacuna/DB/Result/Ships/Placebo3.pm | 25 +++++++++++++++++++++++++ lib/Lacuna/DB/Result/Ships/Placebo4.pm | 25 +++++++++++++++++++++++++ lib/Lacuna/DB/Result/Ships/Placebo5.pm | 25 +++++++++++++++++++++++++ lib/Lacuna/DB/Result/Ships/Placebo6.pm | 25 +++++++++++++++++++++++++ var/www/public/changes.txt | 1 + var/www/public/resources.json | 10 ++++++++-- 11 files changed, 173 insertions(+), 3 deletions(-) create mode 100644 lib/Lacuna/DB/Result/Ships/Placebo.pm create mode 100644 lib/Lacuna/DB/Result/Ships/Placebo2.pm create mode 100644 lib/Lacuna/DB/Result/Ships/Placebo3.pm create mode 100644 lib/Lacuna/DB/Result/Ships/Placebo4.pm create mode 100644 lib/Lacuna/DB/Result/Ships/Placebo5.pm create mode 100644 lib/Lacuna/DB/Result/Ships/Placebo6.pm diff --git a/lib/Lacuna/Constants.pm b/lib/Lacuna/Constants.pm index 428ad91d..c11ee6c5 100644 --- a/lib/Lacuna/Constants.pm +++ b/lib/Lacuna/Constants.pm @@ -105,7 +105,9 @@ use constant SHIP_TYPES => (qw( probe short_range_colony_ship colony_ship spy_po smuggler_ship mining_platform_ship terraforming_platform_ship gas_giant_settlement_ship scow dory freighter snark snark2 snark3 drone fighter spy_shuttle observatory_seeker security_ministry_seeker - spaceport_seeker excavator detonator scanner barge hulk galleon )); + spaceport_seeker excavator detonator scanner barge hulk galleon + placebo placebo2 placebo3 placebo4 placebo5 placebo6 + )); our @EXPORT_OK = qw( diff --git a/lib/Lacuna/DB/Result/Medals.pm b/lib/Lacuna/DB/Result/Medals.pm index b336f4d0..721f8a33 100644 --- a/lib/Lacuna/DB/Result/Medals.pm +++ b/lib/Lacuna/DB/Result/Medals.pm @@ -37,6 +37,12 @@ use constant MEDALS => { scow => 'Built Scow', dory => 'Built Dory', barge => 'Built Barge', + placebo => 'Built Placebo', + placebo2 => 'Built Placebo II', + placebo3 => 'Built Placebo III', + placebo4 => 'Built Placebo IV', + placebo5 => 'Built Placebo V', + placebo6 => 'Built Placebo VI', galleon => 'Built Galleon', hulk => 'Built Hulk', freighter => 'Built Freighter', diff --git a/lib/Lacuna/DB/Result/Ships.pm b/lib/Lacuna/DB/Result/Ships.pm index 2dac9802..3026b8a1 100644 --- a/lib/Lacuna/DB/Result/Ships.pm +++ b/lib/Lacuna/DB/Result/Ships.pm @@ -30,6 +30,12 @@ __PACKAGE__->add_columns( ); __PACKAGE__->typecast_map(type => { 'probe' => 'Lacuna::DB::Result::Ships::Probe', + 'placebo' => 'Lacuna::DB::Result::Ships::Placebo', + 'placebo2' => 'Lacuna::DB::Result::Ships::Placebo2', + 'placebo3' => 'Lacuna::DB::Result::Ships::Placebo3', + 'placebo4' => 'Lacuna::DB::Result::Ships::Placebo4', + 'placebo5' => 'Lacuna::DB::Result::Ships::Placebo5', + 'placebo6' => 'Lacuna::DB::Result::Ships::Placebo6', 'short_range_colony_ship' => 'Lacuna::DB::Result::Ships::ShortRangeColonyShip', 'colony_ship' => 'Lacuna::DB::Result::Ships::ColonyShip', 'spy_pod' => 'Lacuna::DB::Result::Ships::SpyPod', diff --git a/lib/Lacuna/DB/Result/Ships/Placebo.pm b/lib/Lacuna/DB/Result/Ships/Placebo.pm new file mode 100644 index 00000000..2be8c934 --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/Placebo.pm @@ -0,0 +1,24 @@ +package Lacuna::DB::Result::Ships::Placebo; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => { class=> 'Lacuna::DB::Result::Building::CloakingLab', level => 5 }; +use constant base_food_cost => 2000; +use constant base_water_cost => 2000; +use constant base_energy_cost => 4000; +use constant base_ore_cost => 4000; +use constant base_time_cost => 3600; +use constant base_waste_cost => 400; +use constant base_speed => 500; +use constant base_combat => 0; +use constant base_stealth => 2500; +use constant base_hold_size => 0; +use constant build_tags => [qw(War)]; + +with "Lacuna::Role::Ship::Send::Planet"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/lib/Lacuna/DB/Result/Ships/Placebo2.pm b/lib/Lacuna/DB/Result/Ships/Placebo2.pm new file mode 100644 index 00000000..daca44a3 --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/Placebo2.pm @@ -0,0 +1,25 @@ +package Lacuna::DB::Result::Ships::Placebo2; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => { class=> 'Lacuna::DB::Result::Building::CloakingLab', level => 10 }; +use constant base_food_cost => 2000; +use constant base_water_cost => 2000; +use constant base_energy_cost => 5000; +use constant base_ore_cost => 5000; +use constant base_time_cost => 3600; +use constant base_waste_cost => 500; +use constant base_speed => 1000; +use constant base_combat => 0; +use constant base_stealth => 4000; +use constant base_hold_size => 0; +use constant build_tags => [qw(War)]; +use constant type_formatted => 'Placebo II'; + +with "Lacuna::Role::Ship::Send::Planet"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/lib/Lacuna/DB/Result/Ships/Placebo3.pm b/lib/Lacuna/DB/Result/Ships/Placebo3.pm new file mode 100644 index 00000000..edad3c29 --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/Placebo3.pm @@ -0,0 +1,25 @@ +package Lacuna::DB::Result::Ships::Placebo3; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => { class=> 'Lacuna::DB::Result::Building::CloakingLab', level => 15 }; +use constant base_food_cost => 2000; +use constant base_water_cost => 2000; +use constant base_energy_cost => 6000; +use constant base_ore_cost => 6000; +use constant base_time_cost => 3600; +use constant base_waste_cost => 600; +use constant base_speed => 1500; +use constant base_combat => 0; +use constant base_stealth => 5500; +use constant base_hold_size => 0; +use constant build_tags => [qw(War)]; +use constant type_formatted => 'Placebo III'; + +with "Lacuna::Role::Ship::Send::Planet"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/lib/Lacuna/DB/Result/Ships/Placebo4.pm b/lib/Lacuna/DB/Result/Ships/Placebo4.pm new file mode 100644 index 00000000..56638450 --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/Placebo4.pm @@ -0,0 +1,25 @@ +package Lacuna::DB::Result::Ships::Placebo4; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => { class=> 'Lacuna::DB::Result::Building::CloakingLab', level => 20 }; +use constant base_food_cost => 2000; +use constant base_water_cost => 2000; +use constant base_energy_cost => 7000; +use constant base_ore_cost => 7000; +use constant base_time_cost => 3600; +use constant base_waste_cost => 700; +use constant base_speed => 2000; +use constant base_combat => 0; +use constant base_stealth => 7000; +use constant base_hold_size => 0; +use constant build_tags => [qw(War)]; +use constant type_formatted => 'Placebo IV'; + +with "Lacuna::Role::Ship::Send::Planet"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/lib/Lacuna/DB/Result/Ships/Placebo5.pm b/lib/Lacuna/DB/Result/Ships/Placebo5.pm new file mode 100644 index 00000000..813ac701 --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/Placebo5.pm @@ -0,0 +1,25 @@ +package Lacuna::DB::Result::Ships::Placebo5; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => { class=> 'Lacuna::DB::Result::Building::CloakingLab', level => 25 }; +use constant base_food_cost => 2000; +use constant base_water_cost => 2000; +use constant base_energy_cost => 8000; +use constant base_ore_cost => 8000; +use constant base_time_cost => 3600; +use constant base_waste_cost => 800; +use constant base_speed => 2500; +use constant base_combat => 0; +use constant base_stealth => 8500; +use constant base_hold_size => 0; +use constant build_tags => [qw(War)]; +use constant type_formatted => 'Placebo V'; + +with "Lacuna::Role::Ship::Send::Planet"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/lib/Lacuna/DB/Result/Ships/Placebo6.pm b/lib/Lacuna/DB/Result/Ships/Placebo6.pm new file mode 100644 index 00000000..35d7613e --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/Placebo6.pm @@ -0,0 +1,25 @@ +package Lacuna::DB::Result::Ships::Placebo6; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => { class=> 'Lacuna::DB::Result::Building::CloakingLab', level => 30 }; +use constant base_food_cost => 2000; +use constant base_water_cost => 2000; +use constant base_energy_cost => 9000; +use constant base_ore_cost => 9000; +use constant base_time_cost => 3600; +use constant base_waste_cost => 900; +use constant base_speed => 3000; +use constant base_combat => 0; +use constant base_stealth => 10000; +use constant base_hold_size => 0; +use constant build_tags => [qw(War)]; +use constant type_formatted => 'Placebo VI'; + +with "Lacuna::Role::Ship::Send::Planet"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 99fb00ca..d71e9f15 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -28,6 +28,7 @@ - Diminished efficency diminishes the Security Ministry and Spaceport's effectiveness. - Freighters can no longer fetch or deliver spies. - Added Barge, Galleon, and Hulk trade ship classes. + - Added Placebo 1 thru 6, which are used to fake an attack. 2.3902 diff --git a/var/www/public/resources.json b/var/www/public/resources.json index 9bf4888f..91e192c4 100644 --- a/var/www/public/resources.json +++ b/var/www/public/resources.json @@ -118,6 +118,12 @@ "/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" : { + "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" }, + "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" }, + "placebo4" : { "description" : "A faster and more stealthed version of the Placebo III.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, + "placebo5" : { "description" : "A faster and more stealthed version of the Placebo IV.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, + "placebo6" : { "description" : "A faster and more stealthed version of the Placebo V.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, "probe" : { "description" : "Send to a star to allow you to view the bodies orbiting that star.", "wiki" : "http://community.lacunaexpanse.com/wiki/probe" }, "colony_ship" : { "description" : "Use to create a new colony for your empire.", "wiki" : "http://community.lacunaexpanse.com/wiki/colony-ship" }, "short_range_colony_ship" : { "description" : "Use to create a new colony for your empire. Very slow, only useful within your own star system.", "wiki" : "http://community.lacunaexpanse.com/wiki/short-range-colony-ship" }, @@ -135,8 +141,8 @@ "hulk" : { "description" : "Extra large transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/hulk" }, "freighter" : { "description" : "Large transport ship. Can be used to push resources between your colonies, trade with other empires, or gather ore from mining platforms.", "wiki" : "http://community.lacunaexpanse.com/wiki/freighter" }, "snark" : { "description" : "Robotic bombardment weapon, that can be used to destroy buildings on remote planets.", "wiki" : "http://community.lacunaexpanse.com/wiki/snark" }, - "snark2" : { "description" : "An improved version of the Snark, which has a splash damage radius of 1.", "wiki" : "http://community.lacunaexpanse.com/wiki/snark-ii" }, - "snark3" : { "description" : "An improved version of the Snark, which has a splash damage radius of 2.", "wiki" : "http://community.lacunaexpanse.com/wiki/snark-iii" }, + "snark2" : { "description" : "An improved version of the Snark, which has a splash damage radius of 1.", "wiki" : "http://community.lacunaexpanse.com/wiki/snark" }, + "snark3" : { "description" : "An improved version of the Snark, which has a splash damage radius of 2.", "wiki" : "http://community.lacunaexpanse.com/wiki/snark" }, "drone" : { "description" : "Robotic defense weapon, that can stop enemy attacks before they reach your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/drone" }, "fighter" : { "description" : "Piloted defense ship, that can stop enemy attacks before they reach your planet.", "wiki" : "http://community.lacunaexpanse.com/wiki/fighter" }, "spy_shuttle" : { "description" : "Stealthy one way transport for up to four spies.", "wiki" : "http://community.lacunaexpanse.com/wiki/spy-shuttle" }, -- 2.51.2