From 5273ca8c59280ba3f62ad29724e443f286d2faed Mon Sep 17 00:00:00 2001 From: Mark Lemming Date: Wed, 1 Jan 2014 13:31:41 -0700 Subject: [PATCH] Added supply_pod5 --- lib/Lacuna/DB/Result/Medals.pm | 1 + lib/Lacuna/DB/Result/Ships.pm | 1 + lib/Lacuna/DB/Result/Ships/SupplyPod.pm | 2 +- lib/Lacuna/DB/Result/Ships/SupplyPod2.pm | 2 +- lib/Lacuna/DB/Result/Ships/SupplyPod3.pm | 2 +- lib/Lacuna/DB/Result/Ships/SupplyPod4.pm | 2 +- lib/Lacuna/DB/Result/Ships/SupplyPod5.pm | 29 ++++++++++++++++++++++++ var/www/public/resources.json | 1 + 8 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 lib/Lacuna/DB/Result/Ships/SupplyPod5.pm diff --git a/lib/Lacuna/DB/Result/Medals.pm b/lib/Lacuna/DB/Result/Medals.pm index ec9e865e..d9a44de7 100644 --- a/lib/Lacuna/DB/Result/Medals.pm +++ b/lib/Lacuna/DB/Result/Medals.pm @@ -28,6 +28,7 @@ use constant MEDALS => { supply_pod2 => 'Built Supply Pod II', supply_pod3 => 'Built Supply Pod III', supply_pod4 => 'Built Supply Pod IV', + supply_pod5 => 'Built Supply Pod V', probe => 'Built Probe', short_range_colony_ship => 'Built Short Range Colony Ship', colony_ship => 'Built Colony Ship', diff --git a/lib/Lacuna/DB/Result/Ships.pm b/lib/Lacuna/DB/Result/Ships.pm index a35b2699..00044a4d 100644 --- a/lib/Lacuna/DB/Result/Ships.pm +++ b/lib/Lacuna/DB/Result/Ships.pm @@ -47,6 +47,7 @@ __PACKAGE__->typecast_map(type => { 'supply_pod2' => 'Lacuna::DB::Result::Ships::SupplyPod2', 'supply_pod3' => 'Lacuna::DB::Result::Ships::SupplyPod3', 'supply_pod4' => 'Lacuna::DB::Result::Ships::SupplyPod4', + 'supply_pod5' => 'Lacuna::DB::Result::Ships::SupplyPod5', 'placebo' => 'Lacuna::DB::Result::Ships::Placebo', 'placebo2' => 'Lacuna::DB::Result::Ships::Placebo2', 'placebo3' => 'Lacuna::DB::Result::Ships::Placebo3', diff --git a/lib/Lacuna/DB/Result/Ships/SupplyPod.pm b/lib/Lacuna/DB/Result/Ships/SupplyPod.pm index 7f6a836e..5881b329 100644 --- a/lib/Lacuna/DB/Result/Ships/SupplyPod.pm +++ b/lib/Lacuna/DB/Result/Ships/SupplyPod.pm @@ -12,7 +12,7 @@ use constant base_energy_cost => 4500; use constant base_ore_cost => 4500; use constant base_time_cost => 60 * 60 * 2; use constant base_waste_cost => 5000; -use constant base_speed => 1000; +use constant base_speed => 2500; use constant base_stealth => 0; use constant base_hold_size => 400; use constant pilotable => 0; diff --git a/lib/Lacuna/DB/Result/Ships/SupplyPod2.pm b/lib/Lacuna/DB/Result/Ships/SupplyPod2.pm index 31741ffa..80100f98 100644 --- a/lib/Lacuna/DB/Result/Ships/SupplyPod2.pm +++ b/lib/Lacuna/DB/Result/Ships/SupplyPod2.pm @@ -12,7 +12,7 @@ use constant base_energy_cost => 74000; use constant base_ore_cost => 74000; use constant base_time_cost => 60 * 60 * 4; use constant base_waste_cost => 30000; -use constant base_speed => 1000; +use constant base_speed => 2000; use constant base_stealth => 0; use constant base_hold_size => 900; use constant pilotable => 0; diff --git a/lib/Lacuna/DB/Result/Ships/SupplyPod3.pm b/lib/Lacuna/DB/Result/Ships/SupplyPod3.pm index 57d3e2ee..4ebff004 100644 --- a/lib/Lacuna/DB/Result/Ships/SupplyPod3.pm +++ b/lib/Lacuna/DB/Result/Ships/SupplyPod3.pm @@ -12,7 +12,7 @@ use constant base_energy_cost => 1200000; use constant base_ore_cost => 1200000; use constant base_time_cost => 60 * 60 * 6; use constant base_waste_cost => 450000; -use constant base_speed => 1000; +use constant base_speed => 1500; use constant base_stealth => 0; use constant base_hold_size => 2000; use constant pilotable => 0; diff --git a/lib/Lacuna/DB/Result/Ships/SupplyPod4.pm b/lib/Lacuna/DB/Result/Ships/SupplyPod4.pm index 9c72761f..1f3a9d30 100644 --- a/lib/Lacuna/DB/Result/Ships/SupplyPod4.pm +++ b/lib/Lacuna/DB/Result/Ships/SupplyPod4.pm @@ -12,7 +12,7 @@ use constant base_energy_cost => 20000000; use constant base_ore_cost => 20000000; use constant base_time_cost => 60 * 60 * 8; use constant base_waste_cost => 2000000; -use constant base_speed => 1000; +use constant base_speed => 1250; use constant base_stealth => 0; use constant base_hold_size => 3800; use constant pilotable => 0; diff --git a/lib/Lacuna/DB/Result/Ships/SupplyPod5.pm b/lib/Lacuna/DB/Result/Ships/SupplyPod5.pm new file mode 100644 index 00000000..67ee88f5 --- /dev/null +++ b/lib/Lacuna/DB/Result/Ships/SupplyPod5.pm @@ -0,0 +1,29 @@ +package Lacuna::DB::Result::Ships::SupplyPod5; + +use Moose; +use utf8; +no warnings qw(uninitialized); +extends 'Lacuna::DB::Result::Ships'; + +use constant prereq => [ { class=> 'Lacuna::DB::Result::Building::PlanetaryCommand', level => 30 } ]; +use constant base_food_cost => 16000000; +use constant base_water_cost => 17000000; +use constant base_energy_cost => 40000000; +use constant base_ore_cost => 40000000; +use constant base_time_cost => 60 * 60 * 16; +use constant base_waste_cost => 5000000; +use constant base_speed => 1000; +use constant base_stealth => 0; +use constant base_hold_size => 7000; +use constant pilotable => 0; +use constant build_tags => [qw(Colonization)]; +use constant supply_pod_level => 25; +use constant type_formatted => 'Supply Pod V'; + +with "Lacuna::Role::Ship::Send::Planet"; +with "Lacuna::Role::Ship::Send::Inhabited"; +with "Lacuna::Role::Ship::Send::LoadSupplyPod"; +with "Lacuna::Role::Ship::Arrive::DeploySupplyPod"; + +no Moose; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); diff --git a/var/www/public/resources.json b/var/www/public/resources.json index 31f652f6..4003e299 100644 --- a/var/www/public/resources.json +++ b/var/www/public/resources.json @@ -165,6 +165,7 @@ "supply_pod2" : { "description" : "A larger version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, "supply_pod3" : { "description" : "A very large version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, "supply_pod4" : { "description" : "A huge version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, + "supply_pod5" : { "description" : "Largest version of the Supply Pod.", "wiki" : "http://community.lacunaexpanse.com/wiki/supply-pod" }, "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" }, "placebo3" : { "description" : "A faster and more stealthed version of the Placebo II.", "wiki" : "http://community.lacunaexpanse.com/wiki/placebo" }, -- 2.51.2