Fix: 物品对照表生成模组,修复没有武器的问题
This commit is contained in:
@@ -25,11 +25,16 @@ modded class PlayerBase extends ManBase
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string path = "cfgVehicles";
|
|
||||||
int childcount = GetGame().ConfigGetChildrenCount( path );
|
|
||||||
|
|
||||||
FPrintln( file, "| ClassName | DisplayNmae |" );
|
FPrintln( file, "| ClassName | DisplayNmae |" );
|
||||||
FPrintln( file, "| ----------- | ----------- |" );
|
FPrintln( file, "| ----------- | ----------- |" );
|
||||||
|
|
||||||
|
string paths = "cfgVehicles";
|
||||||
|
ref TStringArray paths = {
|
||||||
|
"cfgVehicles", "cfgWeapons"
|
||||||
|
};
|
||||||
|
foreach( string path : paths )
|
||||||
|
{
|
||||||
|
int childcount = GetGame().ConfigGetChildrenCount( path );
|
||||||
for(int i = 0; i < childcount; i++)
|
for(int i = 0; i < childcount; i++)
|
||||||
{
|
{
|
||||||
string itemname;
|
string itemname;
|
||||||
@@ -46,6 +51,7 @@ modded class PlayerBase extends ManBase
|
|||||||
|
|
||||||
FPrintln( file, "| " + itemname + " | " + Widget.TranslateString( displayname ) + " |" );
|
FPrintln( file, "| " + itemname + " | " + Widget.TranslateString( displayname ) + " |" );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CloseFile( file );
|
CloseFile( file );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user