From 7f55d9fc1d8cd3c64d2a2f780cc3baf4df08a890 Mon Sep 17 00:00:00 2001 From: filux Date: Thu, 8 Dec 2016 22:30:44 +0100 Subject: [PATCH] added support for 'percent multiplier' in the techtree docummentation tools --- data/glest_game | 2 +- .../convert_faction_xml2html.pl | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/data/glest_game b/data/glest_game index fa2a0cac..07aca956 160000 --- a/data/glest_game +++ b/data/glest_game @@ -1 +1 @@ -Subproject commit fa2a0cac9e6fe0fc3434edc2cad728ecb4b8e6b1 +Subproject commit 07aca95635dac967fc258c5176ef116a302c5f18 diff --git a/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl b/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl index 32a4877c..e3b4de9f 100755 --- a/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl +++ b/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl @@ -82,7 +82,6 @@ our $version = "0.8.1 beta"; # strange stuff in the techtrees: # - persian magician splash radius 0? -# - tech workers move faster with load? # - tech upgrades piercing/blade weapon don't work for battle machine? # - f.e. battle machine with "hold" will only attack land units # - workers are able to help a technician build an aerodrome faster. is that wanted? @@ -1927,18 +1926,20 @@ sub get_value { my $nodeset = $xpath->find("$location"); print "doing location $location\n"; my ($node) = $nodeset->get_nodelist; - my $value; if ( $node ) { my $attribute = XML::XPath::XMLParser::as_string( $node ); - # get only the value of an attribute, XML::Xpath returns f.e. regeneration="3", we want just 3 - if ( $attribute =~ /\"(.+?)\"/ ) { + if ( $attribute =~ /(?