Add new first level, fix treasure counter
This commit is contained in:
parent
69ba50e49f
commit
16fb221c1d
@ -71,6 +71,7 @@ Group rating 1 is for the inactive state, group rating 2 is for the active state
|
|||||||
* `4`: open, with treasure
|
* `4`: open, with treasure
|
||||||
* `chest_closed=1`: Closed chest
|
* `chest_closed=1`: Closed chest
|
||||||
* `chest_open=1`: Open chest
|
* `chest_open=1`: Open chest
|
||||||
|
* `chest_open_treasure=1`: Open chest with treasure
|
||||||
* `water=3`: Water
|
* `water=3`: Water
|
||||||
* `liquid=3`: Node is a liquid in a semantic sense
|
* `liquid=3`: Node is a liquid in a semantic sense
|
||||||
* `pane=1`: Pane (flat window-like block)
|
* `pane=1`: Pane (flat window-like block)
|
||||||
|
@ -249,7 +249,7 @@ end
|
|||||||
|
|
||||||
-- Returns the number of treasures found in current level
|
-- Returns the number of treasures found in current level
|
||||||
function lzr_laser.count_found_treasures(pos1, pos2)
|
function lzr_laser.count_found_treasures(pos1, pos2)
|
||||||
return #minetest.find_nodes_in_area(pos1, pos2, {"group:chest_open"})
|
return #minetest.find_nodes_in_area(pos1, pos2, {"group:chest_open_treasure"})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Returns true if player has no detectors in inventory
|
-- Returns true if player has no detectors in inventory
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
lzr_levels_level_1.mts,Demo Level 1,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
lzr_levels_level_1.mts,Demo Level 1,lzr_core:wood,ocean
|
||||||
lzr_levels_level_2.mts,Demo Level 2,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
lzr_levels_level_2.mts,Demo Level 2,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
||||||
lzr_levels_level_3.mts,Demo Level 3,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
lzr_levels_level_3.mts,Demo Level 3,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
||||||
lzr_levels_level_4.mts,Demo Level 4,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
lzr_levels_level_4.mts,Demo Level 4,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
||||||
lzr_levels_level_5.mts,Demo Level 5,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
lzr_levels_level_5.mts,Demo Level 5,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
||||||
lzr_levels_level_6.mts,Demo Level 6,lzr_decor:ocean_stone|lzr_decor:ocean_stone|lzr_core:dirt|lzr_core:dirt,temple
|
lzr_levels_level_6.mts,Demo Level 6,lzr_core:wood|lzr_decor:woodframed_glass,ocean
|
||||||
|
lzr_levels_level_7.mts,Demo Level 7,lzr_decor:ocean_stone|lzr_decor:ocean_stone|lzr_core:dirt|lzr_core:dirt,temple
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mods/lzr_levels/schematics/lzr_levels_level_7.mts
Normal file
BIN
mods/lzr_levels/schematics/lzr_levels_level_7.mts
Normal file
Binary file not shown.
@ -184,7 +184,7 @@ local register_chest = function(id, def)
|
|||||||
minetest.set_node(pos, {name="lzr_treasure:chest_"..id.."_open", param2=node.param2})
|
minetest.set_node(pos, {name="lzr_treasure:chest_"..id.."_open", param2=node.param2})
|
||||||
end,
|
end,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = { breakable = 1, chest = 4, chest_open = 1, rotatable = 3, },
|
groups = { breakable = 1, chest = 4, chest_open = 1, chest_open_treasure = 1, rotatable = 3, },
|
||||||
sounds = sounds_open_treasure,
|
sounds = sounds_open_treasure,
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user