diff options
author | Yorhel <git@yorhel.nl> | 2019-09-11 19:26:25 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-11 19:26:25 +0200 |
commit | 26c2f1290468309e69d3139842481920e79cd5bc (patch) | |
tree | 634ca2909ed3db568f8b4cb679240e601a63f9bb /util/jsgen.pl | |
parent | 04e92a4ef886c141783efcb1c62de12722511cc4 (diff) |
VNDB::Types: Convert char_roles, blood_types and genders
Diffstat (limited to 'util/jsgen.pl')
-rwxr-xr-x | util/jsgen.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl index 7228276f..8c44fb99 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -41,14 +41,14 @@ sub vars { age_ratings => [ map [ $_, $_ == -1 ? 'Unknown' : $_ == 0 ? 'All ages' : "$_+" ], @{$S{age_ratings}} ], languages => [ map [ $_, $LANGUAGE{$_} ], keys %LANGUAGE ], platforms => [ map [ $_, $PLATFORM{$_} ], keys %PLATFORM ], - char_roles => [ map [ $_, $S{char_roles}{$_}[0] ], keys %{$S{char_roles}} ], + char_roles => [ map [ $_, $CHAR_ROLE{$_}{txt} ], keys %CHAR_ROLE ], media => [ map [ $_, $S{media}{$_}[1], $S{media}{$_}[0] ], keys %{$S{media}} ], release_types => [ map [ $_, ucfirst $_ ], @{$S{release_types}} ], animated => [ map [ $_, $S{animated}[$_] ], 0..$#{$S{animated}} ], voiced => [ map [ $_, $S{voiced}[$_] ], 0..$#{$S{voiced}} ], vn_lengths => [ map [ $_, $S{vn_lengths}[$_][0] ], 0..$#{$S{vn_lengths}} ], - blood_types => [ map [ $_, $S{blood_types}{$_} ], keys %{$S{blood_types}} ], - genders => [ map [ $_, $S{genders}{$_} ], keys %{$S{genders}} ], + blood_types => [ map [ $_, $BLOOD_TYPE{$_} ], keys %BLOOD_TYPE ], + genders => [ map [ $_, $GENDER{$_} ], keys %GENDER ], credit_type => [ map [ $_, $CREDIT_TYPE{$_} ], keys %CREDIT_TYPE ], resolutions => scalar resolutions(), ); |