You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2026-06-20 16:32:28 +02:00
minor tweaks
This commit is contained in:
@@ -526,7 +526,7 @@ local on_research_finished = function(event)
|
|||||||
|
|
||||||
research.force.character_inventory_slots_bonus = game.forces.player.mining_drill_productivity_bonus * 50 -- +5 Slots / level
|
research.force.character_inventory_slots_bonus = game.forces.player.mining_drill_productivity_bonus * 50 -- +5 Slots / level
|
||||||
local mining_speed_bonus = game.forces.player.mining_drill_productivity_bonus * 5 -- +50% speed / level
|
local mining_speed_bonus = game.forces.player.mining_drill_productivity_bonus * 5 -- +50% speed / level
|
||||||
if research.force.technologies['steel-axe'].researched then
|
if research.name == 'steel-axe' then
|
||||||
mining_speed_bonus = mining_speed_bonus + 0.5
|
mining_speed_bonus = mining_speed_bonus + 0.5
|
||||||
research.force.manual_mining_speed_modifier = mining_speed_bonus
|
research.force.manual_mining_speed_modifier = mining_speed_bonus
|
||||||
local msg =
|
local msg =
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ local function set_location(event)
|
|||||||
local player = game.get_player(event.player_index)
|
local player = game.get_player(event.player_index)
|
||||||
local gui = player.gui
|
local gui = player.gui
|
||||||
local label = gui.screen[ups_label]
|
local label = gui.screen[ups_label]
|
||||||
|
if not label or not label.valid then
|
||||||
|
return
|
||||||
|
end
|
||||||
local res = player.display_resolution
|
local res = player.display_resolution
|
||||||
local uis = player.display_scale
|
local uis = player.display_scale
|
||||||
label.location = {x = res.width - 423 * uis, y = 30 * uis}
|
label.location = {x = res.width - 423 * uis, y = 30 * uis}
|
||||||
|
|||||||
Reference in New Issue
Block a user