mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-14 02:34:09 +02:00
update
This commit is contained in:
parent
11fb0ced0a
commit
a99bb935cd
@ -922,9 +922,7 @@ Darkness is a hazard in the mines, stay near your lamps..
|
||||
hunger_update(player, 0)
|
||||
global.darkness_threat_level[player.name] = 0
|
||||
player.insert {name = 'pistol', count = 1}
|
||||
--player.insert {name = 'raw-fish', count = 1}
|
||||
player.insert {name = 'firearm-magazine', count = 16}
|
||||
--player.insert {name = 'iron-axe', count = 1}
|
||||
end
|
||||
create_cave_miner_button(player)
|
||||
create_cave_miner_stats_gui(player)
|
||||
|
@ -155,6 +155,16 @@ local function on_init()
|
||||
end
|
||||
end
|
||||
|
||||
local function on_entity_died(event)
|
||||
if not event.entity.valid then return end
|
||||
if event.entity.type == "tree" then
|
||||
for _, entity in pairs (event.entity.surface.find_entities_filtered({area = {{event.entity.position.x - 4, event.entity.position.y - 4},{event.entity.position.x + 4, event.entity.position.y + 4}}, name = "fire-flame-on-tree"})) do
|
||||
if entity.valid then entity.destroy() end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
event.on_init(on_init)
|
||||
event.add(defines.events.on_chunk_generated, on_chunk_generated)
|
||||
event.add(defines.events.on_entity_died, on_entity_died)
|
||||
event.add(defines.events.on_player_joined_game, on_player_joined_game)
|
@ -34,7 +34,7 @@ local function bounce(surface, position, ammo)
|
||||
|
||||
if not valid_entities[1] then return end
|
||||
|
||||
for c = 1, math_random(3,5), 1 do
|
||||
for c = 1, math_random(3,6), 1 do
|
||||
create_projectile(surface, position, valid_entities[math_random(1, #valid_entities)].position, ammo)
|
||||
end
|
||||
end
|
||||
|
@ -541,13 +541,9 @@ local function biter_attack_wave()
|
||||
global.wave_count = global.wave_count + 1
|
||||
end
|
||||
|
||||
local modifier = 0.0025
|
||||
game.forces.enemy.set_ammo_damage_modifier("melee", global.wave_count * modifier)
|
||||
game.forces.enemy.set_ammo_damage_modifier("biological", global.wave_count * modifier)
|
||||
game.forces.enemy.set_ammo_damage_modifier("artillery-shell", global.wave_count * modifier)
|
||||
game.forces.enemy.set_ammo_damage_modifier("flamethrower", global.wave_count * modifier)
|
||||
game.forces.enemy.set_ammo_damage_modifier("laser-turret", global.wave_count * modifier)
|
||||
global.biter_evasion_health_increase_factor = 1 + (global.wave_count * modifier)
|
||||
game.forces.enemy.set_ammo_damage_modifier("melee", global.wave_count * 0.002)
|
||||
game.forces.enemy.set_ammo_damage_modifier("biological", global.wave_count * 0.002)
|
||||
global.biter_evasion_health_increase_factor = 1 + (global.wave_count * 0.0025)
|
||||
|
||||
if global.wave_count % 50 == 0 then
|
||||
global.attack_wave_threat = global.wave_count * 8
|
||||
@ -749,7 +745,7 @@ local function is_game_lost()
|
||||
end
|
||||
|
||||
for _, player in pairs(game.connected_players) do
|
||||
player.play_sound{path="utility/game_lost", volume_modifier=1}
|
||||
player.play_sound{path="utility/game_lost", volume_modifier=0.75}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -117,7 +117,7 @@ local function refresh_market_offers()
|
||||
global.market.add_market_item({price = {{"coin", 3500}}, offer = {type = 'nothing', effect_description = special_descriptions["trapped-capsules"]}})
|
||||
end
|
||||
if not global.explosive_bullets_unlocked then
|
||||
global.market.add_market_item({price = {{"coin", 5000}}, offer = {type = 'nothing', effect_description = special_descriptions["explosive-bullets"]}})
|
||||
global.market.add_market_item({price = {{"coin", 4500}}, offer = {type = 'nothing', effect_description = special_descriptions["explosive-bullets"]}})
|
||||
end
|
||||
if not global.bouncy_shells_unlocked then
|
||||
global.market.add_market_item({price = {{"coin", 10000}}, offer = {type = 'nothing', effect_description = special_descriptions["bouncy-shells"]}})
|
||||
|
@ -2,7 +2,7 @@
|
||||
require "maps.labyrinth_map_intro"
|
||||
require "modules.teleporters"
|
||||
require "modules.satellite_score"
|
||||
require "modules.landfill_reveals_nauvis"
|
||||
--require "modules.landfill_reveals_nauvis"
|
||||
|
||||
local map_functions = require "tools.map_functions"
|
||||
local simplex_noise = require 'utils.simplex_noise'.d2
|
||||
|
Loading…
Reference in New Issue
Block a user