Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Подмена цен
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonsant authored May 7, 2024
1 parent 3f57af3 commit 69f1c69
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Content.Server/Corvax/Inflation/InflationCargoCrateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed class InflationCargoCrateSystem : EntitySystem
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly IEntityManager _entManager = default!;

private TimeSpan? Timer = TimeSpan.FromSeconds(10);
private TimeSpan? Timer = TimeSpan.FromMinutes(5);
private TimeSpan? NextTimeToCheck = TimeSpan.FromSeconds(5);

StaticPriceComponent? staticPriceComponent = null;
Expand Down Expand Up @@ -43,10 +43,12 @@ public override void Update(float frameTime)

if (numberCrates == 1)
modifier = 1;
else if (numberCrates >= 2 && numberCrates <= 5)
modifier = 0.5;
else if (numberCrates >= 6 && numberCrates <= 10)
modifier = 0.3;
else if (numberCrates >= 5 && numberCrates <= 19)
modifier = 0.9;
else if (numberCrates >= 20 && numberCrates <= 40)
modifier = 0.85;
else if (numberCrates >= 41)
modifier = 0.82;

foreach (var iterator in _entManager.EntityQuery<TradeCrateComponent>(true))
{
Expand Down

0 comments on commit 69f1c69

Please sign in to comment.