1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-29 22:47:52 +02:00

mtn v3 - changes

This commit is contained in:
Gerkiz
2021-10-24 21:50:48 +02:00
parent 7ef66fc832
commit 8c6d54ac85
6 changed files with 342 additions and 34 deletions

View File

@@ -116,12 +116,13 @@ local function level_up(player)
return
end
if rpg_t.level >= settings_level['one_punch_label'] then
rpg_t.one_punch = true
end
if rpg_t.level >= settings_level['stone_path_label'] then
rpg_t.stone_path = true
end
-- player suggested to disable these
-- if rpg_t.level >= settings_level['one_punch_label'] then
-- rpg_t.one_punch = true
-- end
-- if rpg_t.level >= settings_level['stone_path_label'] then
-- rpg_t.stone_path = true
-- end
Public.draw_level_text(player)
rpg_t.points_left = rpg_t.points_left + distribute_points_gain
@@ -181,7 +182,7 @@ local repair_buildings =
)
function Public.repair_aoe(player, position)
local entities = player.surface.find_entities_filtered {force = player.force, area = {{position.x - 5, position.y - 5}, {position.x + 5, position.y + 5}}}
local entities = player.surface.find_entities_filtered {force = player.force, area = {{position.x - 8, position.y - 8}, {position.x + 8, position.y + 8}}}
local count = 0
for i = 1, #entities do
local e = entities[i]
@@ -326,6 +327,8 @@ function Public.reward_mana(player, mana_to_add)
return
end
mana_to_add = floor(mana_to_add)
if not rpg_t then
return
end