Skip to content

Commit

Permalink
expose weakattackratio setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kokiddp committed Aug 25, 2021
1 parent 04662d4 commit d6299c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ private static void HandleAttack(AttackerFleet attack)

return;
}
if ((bool)settings.Defender.IgnoreWeakAttack && attack.Ships.GetFleetPoints() < (attackedCelestial.Ships.GetFleetPoints() / 3))
if ((bool)settings.Defender.IgnoreWeakAttack && attack.Ships.GetFleetPoints() < (attackedCelestial.Ships.GetFleetPoints() / (int)settings.Defender.WeakAttackRatio))
{
Helpers.WriteLog(LogType.Info, LogSender.Defender, "Attack " + attack.ID.ToString() + " skipped: weak attack.");
return;
Expand Down
1 change: 1 addition & 0 deletions TBot/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"CheckIntervalMax": 22,
"IgnoreProbes": true,
"IgnoreWeakAttack": true,
"WeakAttackRatio": 3,
"Autofleet": {
"Active": true,
"TelegramMessenger": {
Expand Down

0 comments on commit d6299c3

Please sign in to comment.