Permalink
Browse files

add ship berth_level data to Types

  • Loading branch information...
1 parent 037ed0f commit 1c7c8ad602b0c70fdba9d76a5e6d2443fcb5cfd5 @fireartist fireartist committed Apr 27, 2012
Showing with 112 additions and 2 deletions.
  1. +7 −0 data/Types.tt2
  2. +48 −0 data/ships.yml
  3. +57 −2 lib/Games/Lacuna/Client/Types.pm
View
@@ -54,6 +54,7 @@
'ship_tags_list',
'ship_tags',
'ship_type_human',
+ 'ship_berth_level',
];
functions = [];
CALL functions.import(
@@ -213,6 +214,7 @@ our %EXPORT_TAGS = (
'[% tag %]',
[%~ END %]
],
+ berth_level => [% pair.value.berth_level %],
},
[%~ END %]
);
@@ -243,6 +245,11 @@ our %EXPORT_TAGS = (
return unless $type;
return $ships{$type}{type_human};
}
+ sub ship_berth_level {
+ my( $type ) = @_;
+ return unless $type;
+ return $ships{$type}{berth_level};
+ }
}
1;
View
@@ -1,209 +1,257 @@
---
barge:
type_human: Barge
+ berth_level: 1
tags:
- Mining
- Trade
bleeder:
type_human: Bleeder
+ berth_level: 1
tags:
- War
cargo_ship:
type_human: Cargo Ship
+ berth_level: 1
tags:
- Intelligence
- Mining
- Trade
colony_ship:
type_human: Colony Ship
+ berth_level: 1
tags:
- Colonization
detonator:
type_human: Detonator
+ berth_level: 1
tags:
- War
dory:
type_human: Dory
+ berth_level: 1
tags:
- Intelligence
- Mining
- Trade
drone:
type_human: Drone
+ berth_level: 1
tags:
- War
excavator:
type_human: Excavator
+ berth_level: 1
tags:
- Exploration
fighter:
type_human: Fighter
+ berth_level: 1
tags:
- War
freighter:
type_human: Freighter
+ berth_level: 1
tags:
- Mining
- Trade
galleon:
type_human: Galleon
+ berth_level: 1
tags:
- Mining
- Trade
gas_giant_settlement_ship:
type_human: Gas Giant Settlement Ship
+ berth_level: 1
tags:
- Colonization
hulk:
type_human: Hulk
+ berth_level: 20
tags:
- Mining
- Trade
hulk_fast:
type_human: Hulk Fast
+ berth_level: 25
tags:
- Mining
- Trade
hulk_huge:
type_human: Hulk Huge
+ berth_level: 30
tags:
- Mining
- Trade
mining_platform_ship:
type_human: Mining Platform Ship
+ berth_level: 1
tags:
- Mining
observatory_seeker:
type_human: Observatory Seeker
+ berth_level: 1
tags:
- War
placebo:
type_human: Placebo
+ berth_level: 1
tags:
- War
placebo2:
type_human: Placebo II
+ berth_level: 1
tags:
- War
placebo3:
type_human: Placebo III
+ berth_level: 1
tags:
- War
placebo4:
type_human: Placebo IV
+ berth_level: 1
tags:
- War
placebo5:
type_human: Placebo V
+ berth_level: 1
tags:
- War
placebo6:
type_human: Placebo VI
+ berth_level: 1
tags:
- War
probe:
type_human: Probe
+ berth_level: 1
tags:
- Exploration
- Intelligence
scanner:
type_human: Scanner
+ berth_level: 1
tags:
- Exploration
- Intelligence
scow:
type_human: Scow
+ berth_level: 1
tags:
- War
scow_fast:
type_human: Scow Fast
+ berth_level: 20
tags:
- War
scow_large:
type_human: Scow Large
+ berth_level: 15
tags:
- War
scow_mega:
type_human: Scow Mega
+ berth_level: 25
tags:
- War
security_ministry_seeker:
type_human: Security Ministry Seeker
+ berth_level: 1
tags:
- War
short_range_colony_ship:
type_human: Short Range Colony Ship
+ berth_level: 1
tags:
- Colonization
smuggler_ship:
type_human: Smuggler Ship
+ berth_level: 1
tags:
- Intelligence
- Mining
- Trade
snark:
type_human: Snark
+ berth_level: 1
tags:
- War
snark2:
type_human: Snark II
+ berth_level: 1
tags:
- War
snark3:
type_human: Snark III
+ berth_level: 1
tags:
- War
space_station:
type_human: Space Station Hull
+ berth_level: 1
tags:
- Intelligence
- War
spaceport_seeker:
type_human: Spaceport Seeker
+ berth_level: 1
tags:
- War
spy_pod:
type_human: Spy Pod
+ berth_level: 1
tags:
- Intelligence
spy_shuttle:
type_human: Spy Shuttle
+ berth_level: 1
tags:
- Intelligence
stake:
type_human: Stake
+ berth_level: 1
tags:
- Colonization
supply_pod:
type_human: Supply Pod
+ berth_level: 1
tags:
- Colonization
supply_pod2:
type_human: Supply Pod II
+ berth_level: 1
tags:
- Colonization
supply_pod3:
type_human: Supply Pod III
+ berth_level: 1
tags:
- Colonization
supply_pod4:
type_human: Supply Pod IV
+ berth_level: 1
tags:
- Colonization
surveyor:
type_human: Surveyor
+ berth_level: 1
tags:
- Exploration
- Intelligence
sweeper:
type_human: Sweeper
+ berth_level: 1
tags:
- War
terraforming_platform_ship:
type_human: Terraforming Platform Ship
+ berth_level: 1
tags:
- Colonization
thud:
type_human: Thud
+ berth_level: 1
tags:
- War
Oops, something went wrong.

0 comments on commit 1c7c8ad

Please sign in to comment.