Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send repeated long exchanges in ARRL SS Contest (#354) #355

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions DxOper.pas
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,11 @@ function TDxOperator.GetReply: TStationMessage;
osNeedCall:
if (RunMode = rmHst) then
Result := msgDeMyCallNr1
else if (SimContest in [scArrlSS]) then
case Trunc(R2*3) of
0: Result := msgDeMyCallNr1; // DE <my> <exch>
1,2: Result := msgMyCallNr1; // <my> <exch>
end
else
case Trunc(R2*6) of
0: Result := msgDeMyCallNr1; // DE <my> <exch>
Expand All @@ -524,17 +529,26 @@ function TDxOperator.GetReply: TStationMessage;
osNeedCallNr:
if (RunMode = rmHst) then
Result := msgDeMyCall1
else if (SimContest in [scArrlSS]) then
case Trunc(R2*5) of
0: Result := msgDeMyCall1; // DE <my>
1: Result := msgDeMyCall2; // DE <my> <my>
2: Result := msgMyCall2; // <my> <my>
3,4: Result := msgMyCallNr1; // <my> <exch>
end
else
case Trunc(R2*6) of
0: Result := msgDeMyCall1; // DE <my>
1: Result := msgDeMyCall2; // DE <my> <my>
2: Result := msgMyCall2; // <my> <my>
3: Result := msgMyCallNr2; // <my> <my> <exch>
4,5: Result := msgMyCallNr1; // <my> <exch>
end;
end
else //osNeedEnd:
if Patience < (FULL_PATIENCE-1) then Result := msgNR
else if (RunMode = rmHst) or (Random < 0.9) then Result := msgR_NR
else if (RunMode = rmHst) or (SimContest in [scArrlSS]) or
(Random < 0.9) then
Result := msgR_NR
else Result := msgR_NR2;
end;
end;
Expand Down