wormhole stuff

This commit is contained in:
2019-08-05 02:09:51 -05:00
parent 7950d7d5ea
commit 41d433b7c8
5 changed files with 1020 additions and 96 deletions

View File

@@ -19,18 +19,76 @@ class WormholeController extends Controller
}
public function displayWormholeForm() {
//Declare a few array variables
$duration = array();
$class = array();
$stability = array();
$size = array();
//Get the duration from the table
$duration = [
'This wormhole has not yet begun its natural cycle of decay and should last at least another day.',
'This wormhole is beginning to decay, but will not last another day.',
'This wormhole is reaching the end of its natural lifetime',
];
//Get the wh classes from the table
$class = [
'C1',
'C2',
'C3',
'C4',
'C5',
'C6',
'C7',
'C8',
'C9',
'C13',
'Drifter',
'Thera',
'Exit WH',
];
//Get the wh types from the table
$type = WormholeType::pluck('type');
//Get the wh sizes from the table
$size = [
'XS',
'S',
'M',
'L',
'XL',
];
//Get the wh stabilities from the table
$stability = [
'Stable',
'Non-Critical',
'Critical',
];
//Return all the variables to the view
return view('wormholes.form')->with('class', $class)
->with('type', $type)
->with('size', $size)
->with('stability', $stability)
->with('duration', $duration);
}
public function storeWormholeForm() {
public function storeWormhole() {
$this->validate($request, [
'sig' => 'required',
'duration' => 'required',
'date' => 'required',
'class' => 'required',
'size' => 'required',
'stability' => 'required',
]);
}
public function displayWormholes() {
}
private function wormholes() {
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace App\Models\Wormholes;
use Illuminate\Database\Eloquent\Model;
class AllianceWormhole extends Model
{
//Table Name
public $table = 'alliance_wormholes';
//Timestamps
public $timestamps = true;
//Primary Key
public $primaryKey = 'id';
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'sig_id',
'duration_left',
'date_scanned',
'time_scanned',
'class',
'type',
'hole_size',
'stability',
'details',
'link',
'mass_allowed',
'individual_mass',
'regeneration',
'max_stable_time',
];
}

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models\Wormholes;
use Illuminate\Database\Eloquent\Model;
class WormholeType extends Model
{
//Table Name
public $table = 'wormhole_types';
//Timestamps
public $timestamps = false;
//Primary Key
public $primaryKey = 'id';
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'type',
'leads_to',
'mass_allowed',
'individual_mass',
'regeneration',
'max_stable_time',
];
}

View File

@@ -32,6 +32,8 @@ class WormholesSpaceTable extends Migration
'C9',
'C13',
'Drifter',
'Thera',
'Exit WH',
]);
$table->string('type');
$table->enum('hole_size', [
@@ -51,7 +53,12 @@ class WormholesSpaceTable extends Migration
$table->decimal('mass_allowed', 20, 2);
$table->decimal('individual_mass', 20, 2);
$table->decimal('regeneration', 20, 2);
$table->decimal('max_stable_time', 7, 0);
$table->enum('stable_time', [
'>24 hours',
'>4 hours <24 hours',
'<4 hours',
]);
$table->timesteamps();
});
}
@@ -149,100 +156,835 @@ class WormholesSpaceTable extends Migration
DB::table('wormhole_types')->insert([
'type' => 'B735',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 5000000000,
'type' => 'Drifter',
'leads_to' => 'Barbican',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'C008',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'C125',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'C140',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'C247',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'C248',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 5000000000,
'individual_mass' => 1800000000,
'regeneration' => 500000000,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'C391',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 5000000000,
'individual_mass' => 1800000000,
'regeneration' => 500000000,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'C414',
'type' => 'Drifter',
'leads_to' => 'Conflux',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'D364',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'D382',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'D792',
'type' => 'C7',
'leads_to' => 'Highsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'D845',
'type' => 'C7',
'leads_to' => 'Highsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'E004',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'E175',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'E545',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'E587',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'F135',
'type' => 'Thera',
'leads_to' => 'Thera',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'F353',
'type' => 'Thera',
'leads_to' => 'Thera',
'mass_allowed' => 100000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'F355',
'type' => 'Thera',
'leads_to' => 'Thera',
'mass_allowed' => 100000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'G008',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'G024',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'H121',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'H296',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'H900',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'I182',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'J244',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'K162',
'type' => 'Exit WH',
'leads_to' => 'Exit',
'mass_allowed' => 0,
'individual_mass' => 0,
'regeneration' => 0,
'max_stable_time' => 0,
]);
DB::table('wormhole_types')->insert([
'type' => 'K329',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 5000000000,
'individual_mass' => 1800000000,
'regeneration' => 500000000,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'K346',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'L005',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'L031',
'type' => 'Thera',
'leads_to' => 'Thera',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'L477',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'L614',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'M001',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'M164',
'type' => 'Thera',
'leads_to' => 'Thera',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'M267',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'M555',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'M609',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'N062',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'N110',
'type' => 'C7',
'leads_to' => 'Highsec',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'N290',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 5000000000,
'individual_mass' => 1800000000,
'regeneration' => 500000000,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'N432',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'N766',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'N770',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'N944',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'N968',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'O128',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 300000000,
'regeneration' => 100000000,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'O477',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'O883',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'P060',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Q003',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 500000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Q063',
'type' => 'C7',
'leads_to' => 'Highsec',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Q317',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'R051',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'R259',
'type' => 'Drifter',
'leads_to' => 'Redoubt',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'R474',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'R943',
'type' => 'C2',
'leads_to' => 'W-Space',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'S047',
'type' => 'C7',
'leads_to' => 'Highsec',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'S199',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'S804',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'S877',
'type' => 'Drifter',
'leads_to' => 'Sentinel',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'T405',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'T458',
'type' => 'Thera',
'leads_to' => 'Thera',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'U210',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'U319',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1800000000,
'regeneration' => 500000000,
'max_stable_time' => 48,
]);
DB::table('wormhole_types')->insert([
'type' => 'U574',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'V283',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1000000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'V301',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'V753',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'V898',
'type' => 'C8',
'leads_to' => 'Lowsec',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'V911',
'type' => 'C5',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'V928',
'type' => 'Drifter',
'leads_to' => 'Vidette',
'mass_allowed' => 750000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'W237',
'type' => 'C6',
'leads_to' => 'W-Space',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'X702',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'X877',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Y683',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Y790',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Z006',
'type' => 'C3',
'leads_to' => 'W-Space',
'mass_allowed' => 1000000000,
'individual_mass' => 5000000,
'regeneration' => 5000000,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Z060',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 1000000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'Z142',
'type' => 'C9',
'leads_to' => 'Nullsec',
'mass_allowed' => 3000000000,
'individual_mass' => 1350000000,
'regeneration' => 0,
'max_stable_time' => 24,
]);
DB::table('wormhole_types')->insert([
'type' => 'Z457',
'type' => 'C4',
'leads_to' => 'W-Space',
'mass_allowed' => 2000000000,
'individual_mass' => 300000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Z647',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 500000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
DB::table('wormhole_types')->insert([
'type' => 'Z971',
'type' => 'C1',
'leads_to' => 'W-Space',
'mass_allowed' => 100000000,
'individual_mass' => 20000000,
'regeneration' => 0,
'max_stable_time' => 16,
]);
}
B735 Drifter - Barbican 750,000,000 300,000,000 0 16
C008 Class 5 W-space 1,000,000,000 5,000,000 500,000,000 5 16
C125 Class 2 W-Space 1,000,000,000 20,000,000 0 2 16
C140 Lowsec 3,000,000,000 1,350,000,000 0 8 24
C247 Class 3 W-space 2,000,000,000 300,000,000 0 3 16
C248 Nullsec (0.0) 5,000,000,000 1,800,000,000 500,000,000 9 24
C391 Lowsec 5,000,000,000 1,800,000,000 500,000,000 8 24
C414 Drifter - Conflux 750,000,000 300,000,000 0 16
D364 Class 2 W-space 1,000,000,000 300,000,000 0 2 16
D382 Class 2 W-space 2,000,000,000 300,000,000 0 2 16
D792 Highsec 3,000,000,000 1,000,000,000 0 7 24
D845 Highsec 5,000,000,000 300,000,000 500,000,000 7 24
E004 Class 1 W-Space 1,000,000,000 5,000,000 500,000,000 1 16
E175 Class 4 W-Space 2,000,000,000 300,000,000 0 4 16
E545 Nullsec (0.0) 2,000,000,000 300,000,000 0 9 24
E587 Nullsec (0.0) 3,000,000,000 1,000,000,000 0 9 16
F135 Thera 750,000,000 300,000,000 0 16
F353 Thera 100,000,000 20,000,000 0 16
F355 Thera 100,000,000 20,000,000 0 16
G008 Class 6 W-Space 1,000,000,000 5,000,000 500,000,000 6 16
G024 Class 2 W-Space 2,000,000,000 300,000,000 0 2 16
H121 Class 1 W-Space 500,000,000 20,000,000 0 1 16
H296 Class 5 W-Space 3,000,000,000 1,350,000,000 0 5 24
H900 Class 5 W-Space 3,000,000,000 300,000,000 0 5 24
I182 Class 2 W-Space 2,000,000,000 300,000,000 0 2 16
J244 Lowsec 1,000,000,000 20,000,000 0 8 24
K162 Exit WH ? ? ? ? ?
K329 Nullsec (0.0) 5,000,000,000 1,800,000,000 500,000,000 9 24
K346 Nullsec (0.0) 3,000,000,000 300,000,000 0 9 24
L005 Class 2 W-Space 1,000,000,000 5,000,000 500,000,000 2 16
L031 Thera 3,000,000,000 1,000,000,000 0 16
L477 Class 3 W-Space 2,000,000,000 300,000,000 0 3 16
L614 Class 5 W-Space 1,000,000,000 20,000,000 0 5 24
M001 Class 4 W-Space 1,000,000,000 5,000,000 500,000,000 4 16
M164 Thera 2,000,000,000 300,000,000 0 16
M267 Class 3 W-Space 1,000,000,000 300,000,000 0 3 16
M555 Class 5 W-Space 3,000,000,000 1,000,000,000 0 5 24
M609 Class 4 W-Space 1,000,000,000 20,000,000 0 4 16
N062 Class 5 W-Space 3,000,000,000 300,000,000 0 5 24
N110 Highsec 1,000,000,000 20,000,000 0 7 24
N290 Lowsec 5,000,000,000 1,800,000,000 500,000,000 8 24
N432 Class 5 W-Space 3,000,000,000 1,350,000,000 0 5 24
N766 Class 2 W-Space 2,000,000,000 300,000,000 0 2 16
N770 Class 5 W-Space 3,000,000,000 300,000,000 0 5 24
N944 Lowsec 3,000,000,000 1,350,000,000 0 8 24
N968 Class 3 W-Space 2,000,000,000 300,000,000 0 3 16
O128 Class 4 W-Space 1,000,000,000 300,000,000 100,000,000 4 24
O477 Class 3 W-Space 2,000,000,000 300,000,000 0 3 16
O883 Class 3 W-Space 1,000,000,000 20,000,000 0 3 16
P060 Class 1 W-Space 500,000,000 20,000,000 0 1 16
Q003 Nullsec (0.0) 1,000,000,000 5,000,000 500,000,000 9 16
Q063 Highsec 500,000,000 20,000,000 0 7 16
Q317 Class 1 W-Space 500,000,000 20,000,000 0 1 16
R051 Lowsec 3,000,000,000 1,000,000,000 0 8 16
R259 Drifter - Redoubt 750,000,000 300,000,000 0 16
R474 Class 6 W-Space 3,000,000,000 300,000,000 0 6 24
R943 Class 2 W-Space 750,000,000 300,000,000 0 2 16
S047 Highsec 3,000,000,000 300,000,000 0 7 24
S199 Nullsec (0.0) 3,000,000,000 1,350,000,000 0 9 24
S804 Class 6 W-Space 1,000,000,000 20,000,000 0 6 24
S877 Drifter - Sentinel 750,000,000 300,000,000 0 16
T405 Class 4 W-Space 2,000,000,000 300,000,000 0 4 16
T458 Thera 500,000,000 20,000,000 0 16
U210 Lowsec 3,000,000,000 300,000,000 0 8 24
U319 Class 6 W-Space 3,000,000,000 1,800,000,000 500,000,000 6 48
U574 Class 6 W-Space 3,000,000,000 300,000,000 0 6 24
V283 Nullsec (0.0) 3,000,000,000 1,000,000,000 0 9 24
V301 Class 1 W-Space 500,000,000 20,000,000 0 1 16
V753 Class 6 W-Space 3,000,000,000 1,350,000,000 0 6 24
V898 Lowsec 2,000,000,000 300,000,000 0 16
V911 Class 5 W-Space 3,000,000,000 1,350,000,000 0 5 24
V928 Drifter - Vidette 750,000,000 300,000,000 0 16
W237 Class 6 W-Space 3,000,000,000 1,350,000,000 0 6 24
X702 Class 3 W-Space 1,000,000,000 300,000,000 0 3 24
X877 Class 4 W-Space 2,000,000,000 300,000,000 0 4 16
Y683 Class 4 W-Space 2,000,000,000 300,000,000 0 4 16
Y790 Class 1 W-Space 500,000,000 20,000,000 0 1 16
Z006 Class 3 W-Space 1,000,000,000 5,000,000 5,000,000 1 16
Z060 Nullsec (0.0) 1,000,000,000 20,000,000 0 9 24
Z142 Nullsec (0.0) 3,000,000,000 1,350,000,000 0 9 24
Z457 Class 4 W-Space 2,000,000,000 300,000,000 0 4 16
Z647 Class 1 W-Space 500,000,000 20,000,000 0 1 16
Z971 Class 1 W-Space 100,000,000 20,000,000 0 1 16
/**
* Reverse the migrations.
*
@@ -250,6 +992,7 @@ class WormholesSpaceTable extends Migration
*/
public function down()
{
//
Schema::dropIfExists('alliance_wormholes');
Schema::dropIfExists('wormhole_types');
}
}

View File

@@ -0,0 +1,53 @@
@extends('layouts.b4')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="card">
<div class="card-header">
<h2>Enter Wormhole Info</h2>
</div>
<div class="card-body">
{!! Form::open(['action' => 'Wormholes\WormholeController@storeWormhole', 'method' => 'POST']) !!}
<div class="form-group">
{{ Form::label('sig', 'Sig ID') }}
{{ Form::text('sig', '', ['class' => 'form-control', 'placeholder' => 'XXX-XXX']) }}
</div>
<div class="form-group">
{{ Form::label('duration', 'Duration Left') }}
{{ Form::select('duration', $duration, null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('date', 'Date Scanned') }}
{{ Form::text('date', \Carbon\Carbon::now(), ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('class', 'WH Class') }}
{{ Form::select('class', $class, null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('type', 'WH Type') }}
{{ Form::select('class', $type, null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('size', 'WH Size') }}
{{ Form::select('size', $size, null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('stability', 'Stability') }}
{{ Form::select('stability', $stability, null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('points', 'Points of Interest') }}
{{ Form::text('points', null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('link', 'WH Link') }}
{{ Form::text('link', null, ['class' => 'form-control']) }}
</div>
</div>
{{ Form::submit('Submit', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
</div>
</div>
</div>
@endsection