mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-20 03:29:47 +02:00
fix and tweak
This commit is contained in:
parent
645a0e0af0
commit
ea1eb464ed
@ -26,6 +26,7 @@ local tile_to_item = {
|
||||
|
||||
local save_tiles = {
|
||||
["stone-path"] = true,
|
||||
["concrete"] = true,
|
||||
["hazard-concrete-left"] = true,
|
||||
["hazard-concrete-right"] = true,
|
||||
["refined-concrete"] = true,
|
||||
@ -139,7 +140,7 @@ local function on_chunk_generated(event)
|
||||
if get_noise("oasis", entity.position, seed) > -0.25 then
|
||||
surface.destroy_decoratives({
|
||||
area = {{entity.position.x - 10, entity.position.y - 10},{entity.position.x + 10, entity.position.y + 10}},
|
||||
name = {"enemy-decal", "enemy-decal-transparent", "worms-decal", "shroom-decal"}
|
||||
name = {"enemy-decal", "enemy-decal-transparent", "worms-decal", "shroom-decal", "lichen-decal", "light-mud-decal"}
|
||||
})
|
||||
entity.destroy()
|
||||
end
|
||||
|
@ -64,13 +64,13 @@ local function sip(player)
|
||||
return
|
||||
end
|
||||
|
||||
if global.hydration[player.index] > 80 then return end
|
||||
if global.hydration[player.index] > 90 then return end
|
||||
|
||||
local inventory = player.get_main_inventory()
|
||||
local removed_count = inventory.remove({name = "water-barrel", count = 1})
|
||||
if removed_count == 0 then return end
|
||||
|
||||
global.hydration[player.index] = global.hydration[player.index] + 20
|
||||
global.hydration[player.index] = global.hydration[player.index] + 10
|
||||
player.play_sound{path="utility/armor_insert", volume_modifier=0.9}
|
||||
|
||||
local inserted_count = inventory.insert({name = "empty-barrel", count = 1})
|
||||
|
Loading…
x
Reference in New Issue
Block a user