Skip to content
Merged

Beta #119

Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions Controllers/UtilsImageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public async Task<IActionResult> GenerateDropImage(Drop drop)
await assets.GetBitmap(
$"Assets/Images/Map/Markers/{RandomNumberGenerator.GetInt32(markerAmount - 1)}.png"); // don't dispose

const int worldRadius = 150_000;
const int xOffset = -60;
const int yOffset = 0;
const int worldRadius = 80_000;
const int xOffset = -12_200;
const int yOffset = 3_200;

var mx = (drop.X + worldRadius) / (worldRadius * 2f) * bitmap.Width + xOffset;
var my = (drop.Y + worldRadius) / (worldRadius * 2f) * bitmap.Height + yOffset;
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
WORKDIR /app
ENV ASPNETCORE_HTTP_PORTS=80
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ["EasyFortniteStats-ImageApi.csproj", "./"]
RUN dotnet restore "EasyFortniteStats-ImageApi.csproj"
Expand Down
4 changes: 2 additions & 2 deletions EasyFortniteStats-ImageApi.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>EasyFortniteStats_ImageApi</RootNamespace>
Expand All @@ -13,7 +13,7 @@
<PackageReference Include="AsyncKeyedLock" Version="7.1.7" />
<PackageReference Include="SkiaSharp" Version="[2.88.9,3.0)" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="[2.88.9,3.0)" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" />
</ItemGroup>

<!-- Include asset files -->
Expand Down