Skip to content

Commit

Permalink
rename delta
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirus59 committed Jan 7, 2025
1 parent 1b962d1 commit bae2241
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Shared/SS220/Paper/PaperAutoFormSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public sealed partial class PaperAutoFormSystem : EntitySystem

private readonly Dictionary<string, ReplacedData> _keyWordsReplace = [];

private int _spaceYearDelta;
private int _gameYearDelta;

public override void Initialize()
{
base.Initialize();
_spaceYearDelta = _configurationManager.GetCVar(CCVars220.GameYearDelta);
_gameYearDelta = _configurationManager.GetCVar(CCVars220.GameYearDelta);

var dataset = _prototypeManager.Index<PaperAutoFormDatasetPrototype>(AutoFormDatasetId);
foreach (var (key, value) in dataset.KeyWordsReplace)
Expand Down Expand Up @@ -64,7 +64,7 @@ private string GetCurrentDate()
{
var day = DateTime.UtcNow.AddHours(3).Day;
var month = DateTime.UtcNow.AddHours(3).Month;
var year = DateTime.UtcNow.AddHours(3).Year + _spaceYearDelta;
var year = DateTime.UtcNow.AddHours(3).Year + _gameYearDelta;
return $"{day:00}.{month:00}.{year}";
}

Expand Down

0 comments on commit bae2241

Please sign in to comment.