From 36a79609b2ca9a1e2ac755e634fba5536e4e5dc5 Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Tue, 11 Feb 2014 19:59:36 +0100 Subject: [PATCH] Updated Tools --- Tools/Loot Position/ConvertLoottables.pl | 2 +- Tools/Loot Position/ConvertLoottables2.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/Loot Position/ConvertLoottables.pl b/Tools/Loot Position/ConvertLoottables.pl index 612260ee1..f3eaee459 100644 --- a/Tools/Loot Position/ConvertLoottables.pl +++ b/Tools/Loot Position/ConvertLoottables.pl @@ -49,7 +49,7 @@ while (my $line = ) { $cfg .= "\t\titemChance[] = {\n" if $small == 0; $cfg .= "\t\titemChanceSmall[] = {\n" if $small == 1; for (my $i=0; $i{Class}, $itemType[$i]->{Type}, $itemChance[$i]); + $cfg .= sprintf("\t\t\t%s{\"%s\",\"%s\",%.3f}\n", ($i > 0 ? ',' : ''), $itemType[$i]->{Class}, $itemType[$i]->{Type}, $itemChance[$i]); } $cfg .= "\t\t};\n"; } diff --git a/Tools/Loot Position/ConvertLoottables2.pl b/Tools/Loot Position/ConvertLoottables2.pl index 9bc611abd..616e2ac65 100644 --- a/Tools/Loot Position/ConvertLoottables2.pl +++ b/Tools/Loot Position/ConvertLoottables2.pl @@ -3,7 +3,7 @@ use warnings; use Data::Dumper; # Customize -my $configFile = '../../SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp'; +my $configFile = '../../SQF/dayz_code/Configs/CfgBuildingLoot/CfgLootSmall.hpp'; # do not touch my $cfg = '';