git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sc: preliminary starcraft 2 hots data
[sheet.git]
/
sc.plp
diff --git
a/sc.plp
b/sc.plp
index d6ccaf62e8f72e3c0f8797726aa75ad2e1099e53..26c8a97586244537ca02a52c248d0cf0141a4b83 100644
(file)
--- a/
sc.plp
+++ b/
sc.plp
@@
-1,5
+1,10
@@
<(common.inc.plp)><:
<(common.inc.plp)><:
+my $datafile = 'sc-units.inc.pl';
+if ($ENV{PATH_INFO} and $ENV{PATH_INFO} eq '/2') {
+ $datafile = 'sc2-units.inc.pl';
+}
+
Html({
title => 'starcraft unit cheat sheet',
version => 'v1.0',
Html({
title => 'starcraft unit cheat sheet',
version => 'v1.0',
@@
-13,6
+18,7
@@
Html({
reference software attributes properties
'],
stylesheet => [qw'light'],
reference software attributes properties
'],
stylesheet => [qw'light'],
+ data => [$datafile],
});
:>
});
:>
@@
-253,7
+259,7
@@
sub showrange {
} @$specials;
}
} @$specials;
}
- my $units = do
'sc-units.inc.pl'
;
+ my $units = do
$datafile
;
die "Cannot open unit data: $_\n" for $@ || $! || ();
my $grouped = !exists $get{order};
if (exists $get{order}) {
die "Cannot open unit data: $_\n" for $@ || $! || ();
my $grouped = !exists $get{order};
if (exists $get{order}) {