Skip to content

Commit

Permalink
fix building_glyph_recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
fireartist committed Mar 12, 2012
1 parent 5249472 commit 11f9cac
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
6 changes: 3 additions & 3 deletions data/LoadBuilding.pm
Expand Up @@ -75,13 +75,13 @@ sub labels{
return \%type;
}

sub recipes{
sub glyph_recipes{
my($self) = @_;
my %recipes;
my $yaml = $self->{yaml};
for my $building ( sort keys %$yaml ){
next if !exists $yaml->{$building}{recipes};
my $recipes = $yaml->{$building}{recipes};
next if !exists $yaml->{$building}{glyph_recipes};
my $recipes = $yaml->{$building}{glyph_recipes};
push @{ $recipes{$building} }, @$recipes;
}
return \%recipes;
Expand Down
2 changes: 1 addition & 1 deletion data/Types.tt2
Expand Up @@ -193,7 +193,7 @@ our %EXPORT_TAGS = (
}
{
my %recipes = (
[%- FOREACH building_data.recipes %]
[%- FOREACH building_data.glyph_recipes %]
[% key %] => [[%- FOREACH recipe IN value %][qw([%- FOREACH glyph IN recipe %] [% glyph %] [%- END %])], [%- END %]],
[%- END %]
);
Expand Down
42 changes: 42 additions & 0 deletions lib/Games/Lacuna/Client/Types.pm
Expand Up @@ -630,6 +630,48 @@ our %EXPORT_TAGS = (
}
{
my %recipes = (
AlgaePond => [[qw( uraninite methane)], ],
AmalgusMeadow => [[qw( beryl trona)], ],
Beach1 => [[qw( gypsum)], ],
Beach10 => [[qw( gypsum methane)], ],
Beach11 => [[qw( gypsum chromite)], ],
Beach12 => [[qw( gypsum goethite)], ],
Beach13 => [[qw( gypsum galena)], ],
Beach2 => [[qw( gypsum gypsum)], ],
Beach3 => [[qw( gypsum magnetite)], ],
Beach4 => [[qw( gypsum uraninite)], ],
Beach5 => [[qw( gypsum halite)], ],
Beach6 => [[qw( gypsum rutile)], ],
Beach7 => [[qw( gypsum chalcopyrite)], ],
Beach8 => [[qw( gypsum sulfur)], ],
Beach9 => [[qw( gypsum anthracite)], ],
BeeldebanNest => [[qw( anthracite trona kerogen)], ],
BlackHoleGenerator => [[qw( kerogen beryl anthracite monazite)], ],
CitadelOfKnope => [[qw( beryl sulfur monazite galena)], ],
CrashedShipSite => [[qw( monazite trona gold bauxite)], ],
Crater => [[qw( rutile)], ],
DentonBrambles => [[qw( rutile geothite)], ],
GasGiantPlatform => [[qw( sulfur methane galena anthracite)], ],
GeoThermalVent => [[qw( chalcopyrite sulfur)], ],
GratchsGauntlet => [[qw( chromite bauxite gold kerogen)], ],
Grove => [[qw( methane)], ],
HallsOfVrbansk => [[qw( goethite halite gypsum trona)], [qw( gold anthracite uraninite bauxite)], [qw( kerogen methane sulfur zircon)], [qw( monazite fluorite beryl magnetite)], [qw( rutile chromite chalcopyrite galena)], ],
InterDimensionalRift => [[qw( methane zircon fluorite)], ],
KalavianRuins => [[qw( galena gold)], ],
Lagoon => [[qw( chalcopyrite)], ],
Lake => [[qw( goethite)], ],
LapisForest => [[qw( halite anthracite)], ],
LibraryOfJith => [[qw( anthracite bauxite beryl chalcopyrite)], ],
MalcudField => [[qw( fluorite kerogen)], ],
NaturalSpring => [[qw( magnetite halite)], ],
OracleOfAnid => [[qw( gold uraninite bauxite goethite)], ],
PantheonOfHagness => [[qw( gypsum trona beryl anthracite)], ],
Ravine => [[qw( zircon methane galena fluorite)], ],
RockyOutcrop => [[qw( trona)], ],
Sand => [[qw( bauxite)], ],
TempleOfTheDrajilites => [[qw( kerogen rutile chromite chalcopyrite)], ],
TerraformingLab => [[qw( methane zircon magnetite beryl)], ],
Volcano => [[qw( magnetite uraninite)], ],
);
sub building_glyph_recipes{
my( $building ) = @_;
Expand Down

0 comments on commit 11f9cac

Please sign in to comment.