mirror of
https://github.com/kwsch/pkNX.git
synced 2026-08-20 01:14:12 -05:00
Add forcedoubles setting
This commit is contained in:
@@ -84,6 +84,14 @@ private void SetupTeamCount(VsTrainer tr)
|
||||
var pinfo = Personal.Table.OrderBy(pk => Math.Abs(avgBST - pk.BST)).First();
|
||||
int avgSpec = Array.IndexOf(Personal.Table, pinfo);
|
||||
|
||||
if (Settings.ForceDoubles && !(special && count % 2 == 1))
|
||||
{
|
||||
if (tr.Team.Count % 2 != 0)
|
||||
tr.Team.Add(GetBlankPKM(avgLevel, avgSpec));
|
||||
tr.Self.AI |= (int)TrainerAI.Doubles;
|
||||
tr.Self.Mode = BattleMode.Doubles;
|
||||
}
|
||||
|
||||
if (Settings.ForceSpecialTeamCount6 && special && count == 6)
|
||||
{
|
||||
for (int g = tr.Team.Count; g < 6; g++)
|
||||
|
||||
Reference in New Issue
Block a user