mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-07 13:31:40 +02:00
score module no longer counts blueprint placements
This commit is contained in:
parent
01e5b4114f
commit
60d6dbe5c1
@ -111,13 +111,6 @@ local function on_built_entity(event)
|
||||
if playtime < 432000 then
|
||||
event.created_entity.destroy()
|
||||
player.print("You have not grown accustomed to this technology yet.", { r=0.22, g=0.99, b=0.99})
|
||||
if global.score then
|
||||
if global.score[player.force.name] then
|
||||
if global.score[player.force.name].players[player.name] then
|
||||
global.score[player.force.name].players[player.name].built_entities = global.score[player.force.name].players[player.name].built_entities - 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -535,7 +535,7 @@ local function on_entity_died(event)
|
||||
end
|
||||
end
|
||||
|
||||
if math_random(1, 8) == 1 and #players_to_reward == 0 then
|
||||
if math_random(1, 6) == 1 and #players_to_reward == 0 then
|
||||
event.entity.surface.spill_item_stack(event.entity.position,{name = "coin", count = 1}, true)
|
||||
end
|
||||
|
||||
|
@ -446,7 +446,8 @@ local function on_player_mined_entity(event)
|
||||
end
|
||||
end
|
||||
|
||||
local function on_built_entity(event)
|
||||
local function on_built_entity(event)
|
||||
if event.created_entity.type == "entity-ghost" then return end
|
||||
local player = game.players[event.player_index]
|
||||
init_player_table(player)
|
||||
if not global.score[player.force.name].players[player.name].built_entities then
|
||||
|
Loading…
x
Reference in New Issue
Block a user