mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Updated Tools
This commit is contained in:
@@ -49,7 +49,7 @@ while (my $line = <CFG>) {
|
||||
$cfg .= "\t\titemChance[] = {\n" if $small == 0;
|
||||
$cfg .= "\t\titemChanceSmall[] = {\n" if $small == 1;
|
||||
for (my $i=0; $i<scalar(@itemType); $i++) {
|
||||
$cfg .= sprintf("\t\t\t{\"%s\",\"%s\",%.3f}\n", $itemType[$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";
|
||||
}
|
||||
|
||||
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user