@@ -1133,7 +1133,8 @@ function TRSMinimap.CleanImage(img: TImage; radius: Integer): TImage;
11331133 pt.Offset(0,-1), pt.Offset(1,-1),
11341134 pt.Offset(-1,0), pt, pt.Offset(1,0), pt.Offset(2,0),
11351135 pt.Offset(-1,1), pt.Offset(0,1), pt.Offset(1,1), pt.Offset(2,1),
1136- pt.Offset(0,2), pt.Offset(1,2)
1136+ pt.Offset(0,2), pt.Offset(1,2),
1137+ pt.Offset(-1,2), pt.Offset(2,2), pt.Offset(0,3), pt.Offset(1,3)
11371138 ]);
11381139
11391140 q := pt.Offset(0,-1);
@@ -1161,6 +1162,15 @@ function TRSMinimap.CleanImage(img: TImage; radius: Integer): TImage;
11611162 if bounds.Contains(q) then Result += q;
11621163 q := pt.Offset(1,2);
11631164 if bounds.Contains(q) then Result += q;
1165+
1166+ q := pt.Offset(-1,2);
1167+ if bounds.Contains(q) then Result += q;
1168+ q := pt.Offset(2,2);
1169+ if bounds.Contains(q) then Result += q;
1170+ q := pt.Offset(0,3);
1171+ if bounds.Contains(q) then Result += q;
1172+ q := pt.Offset(1,3);
1173+ if bounds.Contains(q) then Result += q;
11641174 end;
11651175
11661176var
@@ -1189,7 +1199,7 @@ begin
11891199 tpa += img.FindColor($0456C6, 0); //idk ask slacky/olly
11901200 tpa += img.FindColor($11335D, 0); //idk ask slacky/olly
11911201
1192- tpa += img.FindColor($010000, 0);
1202+ tpa += img.FindColor($010000, 0); //replaced black
11931203 tpa := tpa.SortFrom(img.Center);
11941204
11951205 Result := img.Blend(tpa, 6);
@@ -1234,7 +1244,8 @@ begin
12341244 radius := Self.Radius;
12351245
12361246 img := Target.GetImage(Self.Bounds);
1237- img.ReplaceColor($0, $1);
1247+ img.ReplaceColor($0, $1, 0.23);
1248+
12381249 clean := Self.CleanImage(img, radius);
12391250
12401251 center := clean.Center;
0 commit comments