mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-02-10 09:10:38 +01:00
various bugfixes and tweaks
This commit is contained in:
parent
4183493e94
commit
461f2995db
@ -87,7 +87,7 @@ for seed_item, def in pairs(plant_node_achievements) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
awards.register_achievement("dfcaverns_plant_all_upper_trees", {
|
awards.register_achievement("dfcaverns_plant_all_upper_trees", {
|
||||||
title = S("Plant All Fungal Trees"),
|
title = S("Fungal Arborist"),
|
||||||
description = S("Plant one of every kind of 'tree' found in the caverns above the Sunless Sea."),
|
description = S("Plant one of every kind of 'tree' found in the caverns above the Sunless Sea."),
|
||||||
icon = "dfcaverns_awards_backgroundx32.png^"
|
icon = "dfcaverns_awards_backgroundx32.png^"
|
||||||
.."(dfcaverns_awards_cavern_towercapx32.png^dfcaverns_awards_cavern_fungiwoodx32.png^dfcaverns_awards_cavern_goblincapx32.png)^[transformFX"
|
.."(dfcaverns_awards_cavern_towercapx32.png^dfcaverns_awards_cavern_fungiwoodx32.png^dfcaverns_awards_cavern_goblincapx32.png)^[transformFX"
|
||||||
@ -101,7 +101,7 @@ awards.register_achievement("dfcaverns_plant_all_upper_trees", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
awards.register_achievement("dfcaverns_plant_all_primordial", {
|
awards.register_achievement("dfcaverns_plant_all_primordial", {
|
||||||
title = S("Plant All Primordial Trees"),
|
title = S("Primordial Arborist"),
|
||||||
description = S("Plant one of every kind of 'tree' from the Primordial caverns."),
|
description = S("Plant one of every kind of 'tree' from the Primordial caverns."),
|
||||||
icon = "dfcaverns_awards_backgroundx32.png^"
|
icon = "dfcaverns_awards_backgroundx32.png^"
|
||||||
.."(dfcaverns_awards_cavern_primordial_mushx32.png^dfcaverns_awards_cavern_junglex32.png)^[transformFX"
|
.."(dfcaverns_awards_cavern_primordial_mushx32.png^dfcaverns_awards_cavern_junglex32.png)^[transformFX"
|
||||||
@ -116,7 +116,7 @@ awards.register_achievement("dfcaverns_plant_all_primordial", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
awards.register_achievement("dfcaverns_plant_all_underground_trees", {
|
awards.register_achievement("dfcaverns_plant_all_underground_trees", {
|
||||||
title = S("Plant All Underground Trees"),
|
title = S("Underground Arborist"),
|
||||||
description = S("Plant one of every kind of 'tree' found in the caverns beneath the surface."),
|
description = S("Plant one of every kind of 'tree' found in the caverns beneath the surface."),
|
||||||
icon = "dfcaverns_awards_backgroundx32.png^"
|
icon = "dfcaverns_awards_backgroundx32.png^"
|
||||||
.."(dfcaverns_awards_cavern_towercapx32.png^dfcaverns_awards_cavern_fungiwoodx32.png^dfcaverns_awards_cavern_goblincapx32.png)^[transformFX"
|
.."(dfcaverns_awards_cavern_towercapx32.png^dfcaverns_awards_cavern_fungiwoodx32.png^dfcaverns_awards_cavern_goblincapx32.png)^[transformFX"
|
||||||
@ -131,7 +131,7 @@ awards.register_achievement("dfcaverns_plant_all_underground_trees", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
awards.register_achievement("dfcaverns_plant_all_farmables", {
|
awards.register_achievement("dfcaverns_plant_all_farmables", {
|
||||||
title = S("Plant All Farmable Underground Plants"),
|
title = S("Underground Farmer"),
|
||||||
description = S("Plant one of every kind of small farmable plant found in the caverns beneath the surface."),
|
description = S("Plant one of every kind of small farmable plant found in the caverns beneath the surface."),
|
||||||
icon = "dfcaverns_awards_backgroundx32.png"
|
icon = "dfcaverns_awards_backgroundx32.png"
|
||||||
.."^[combine:32x32:0,0="..soil_texture
|
.."^[combine:32x32:0,0="..soil_texture
|
||||||
|
@ -45,11 +45,8 @@ Plug a crack that mine gas is seeping out of to make the caves just a little bit
|
|||||||
|
|
||||||
### farming.lua ###
|
### farming.lua ###
|
||||||
|
|
||||||
|
Fungal Arborist=
|
||||||
Plant @1=
|
Plant @1=
|
||||||
Plant All Farmable Underground Plants=
|
|
||||||
Plant All Fungal Trees=
|
|
||||||
Plant All Primordial Trees=
|
|
||||||
Plant All Underground Trees=
|
|
||||||
Plant Black Cap=
|
Plant Black Cap=
|
||||||
Plant Bloodthorn=
|
Plant Bloodthorn=
|
||||||
Plant Cave Wheat=
|
Plant Cave Wheat=
|
||||||
@ -80,6 +77,9 @@ Plant one of every kind of 'tree' from the Primordial caverns.=
|
|||||||
|
|
||||||
Plant one of every kind of small farmable plant found in the caverns beneath the surface.=
|
Plant one of every kind of small farmable plant found in the caverns beneath the surface.=
|
||||||
|
|
||||||
|
Primordial Arborist=
|
||||||
|
Underground Arborist=
|
||||||
|
Underground Farmer=
|
||||||
|
|
||||||
### food.lua ###
|
### food.lua ###
|
||||||
|
|
||||||
|
@ -182,8 +182,6 @@ minetest.register_node("df_dependencies:firefly_bottle", {
|
|||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "df_dependencies:firefly_bottle",
|
output = "df_dependencies:firefly_bottle",
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"df_dependencies:firefly"},
|
recipe = {"df_dependencies:firefly", bottle},
|
||||||
{bottle}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
@ -55,9 +55,10 @@ local plump_helmet_on_place = function(itemstack, placer, pointed_thing, plantn
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- add the node and remove 1 item from the itemstack
|
-- add the node and remove 1 item from the itemstack
|
||||||
local newnode= {name = itemstack:get_name(), param2 = new_param2, param1=0}
|
local new_param2 = math.random(0,3)
|
||||||
|
local newnode= {name = plantname, param2 = new_param2, param1=0}
|
||||||
local oldnode= minetest.get_node(pt.above)
|
local oldnode= minetest.get_node(pt.above)
|
||||||
minetest.add_node(pt.above, {name = plantname, param2 = math.random(0,3)})
|
minetest.add_node(pt.above, newnode)
|
||||||
|
|
||||||
local growth_permitted_function = df_farming.growth_permitted["df_farming:plump_helmet_spawn"] -- use the same permitted function for all plump helmets
|
local growth_permitted_function = df_farming.growth_permitted["df_farming:plump_helmet_spawn"] -- use the same permitted function for all plump helmets
|
||||||
if not growth_permitted_function or growth_permitted_function(pt.above) then
|
if not growth_permitted_function or growth_permitted_function(pt.above) then
|
||||||
|
@ -122,6 +122,8 @@ minetest.register_abm({
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local soundfile_cool_lava = df_dependencies.soundfile_cool_lava
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "mine_gas:gas snuffing torches",
|
label = "mine_gas:gas snuffing torches",
|
||||||
nodenames = {"group:torch"},
|
nodenames = {"group:torch"},
|
||||||
@ -138,7 +140,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
minetest.set_node(pos, {name="mine_gas:gas"})
|
minetest.set_node(pos, {name="mine_gas:gas"})
|
||||||
minetest.sound_play(
|
minetest.sound_play(
|
||||||
df_dependencies.soundfile_cool_lava,
|
soundfile_cool_lava,
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.1}
|
{pos = pos, max_hear_distance = 16, gain = 0.1}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
@ -147,7 +149,7 @@ minetest.register_abm({
|
|||||||
|
|
||||||
local tnt_boom = df_dependencies.tnt_boom
|
local tnt_boom = df_dependencies.tnt_boom
|
||||||
|
|
||||||
if minetest.get_modpath("tnt") then
|
if tnt_boom then
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "mine_gas:gas ignition",
|
label = "mine_gas:gas ignition",
|
||||||
nodenames = {"group:torch", "group:igniter", "group:fire"}, -- checking for ignition sources because there will be fewer than there are gas nodes
|
nodenames = {"group:torch", "group:igniter", "group:fire"}, -- checking for ignition sources because there will be fewer than there are gas nodes
|
||||||
|
Loading…
Reference in New Issue
Block a user