Первый фикс

Пачки некоторых позиций увеличены
This commit is contained in:
2024-03-01 20:53:32 +03:00
commit 7c9c708c92
23653 changed files with 767936 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
return function(player)
if not global.players[player.index].settings.show_daytime then
return
end
local days = math.floor(1 + ((game.tick + 12500) / 25000))
local daytime = player.surface.daytime + 0.5
local daytime_minutes = math.floor(daytime * 24 * 60)
local daytime_hours = math.floor(daytime_minutes / 60) % 24
daytime_minutes = daytime_minutes - (daytime_minutes % 15)
return {
"",
{ "statsgui.time" },
" = " .. string.format("%d:%02d", daytime_hours, daytime_minutes % 60),
", ",
{ "statsgui.day" },
" " .. days,
}
end

View File

@@ -0,0 +1,13 @@
return function(player)
if not global.players[player.index].settings.show_evolution then
return
end
local evolution = game.forces.enemy.evolution_factor * 100
return {
"",
{ "statsgui.evolution" },
string.format(" = %.2f", evolution),
"%",
}
end

View File

@@ -0,0 +1,9 @@
local misc = require("__flib__.misc")
return function(player)
if not global.players[player.index].settings.show_playtime then
return
end
return { "", { "statsgui.playtime" }, " = ", misc.ticks_to_timestring(game.ticks_played) }
end

View File

@@ -0,0 +1,12 @@
return function(player)
if not global.players[player.index].settings.show_pollution then
return
end
return {
"",
{ "statsgui.pollution" },
string.format(" = %.2f", player.surface.get_pollution(player.position)),
" PU",
}
end

View File

@@ -0,0 +1,11 @@
local math = require("__flib__.math")
return function(player)
if not global.players[player.index].settings.show_position then
return
end
local position = player.position
return { "", { "statsgui.position" }, " = ", math.round(position.x), ", ", math.round(position.y) }
end

View File

@@ -0,0 +1,10 @@
return function(player)
if not global.players[player.index].settings.show_research then
return
end
local string = global.research_progress_strings[player.force.index]
if string then
return { "", { "statsgui.research-finished" }, " = ", string }
end
end