2022-08-19 05:40:45 +02:00
local S = minetest.get_translator ( minetest.get_current_modname ( ) )
-- misc
if df_dependencies.node_name_glass_bottle then
awards.register_achievement ( " dfcaverns_captured_ice_sprite " , {
title = S ( " Capture an Ice Sprite " ) ,
description = S ( " You've captured an ice sprite and placed it in a bottle. It dances and sparkles and sheds light through the frosted glass while making a faint tinkling sound. Pretty. " ) ,
2022-08-20 08:14:29 +02:00
icon = " dfcaverns_awards_backgroundx32.png^ice_sprites_bottle.png^dfcaverns_awards_foregroundx32.png " ,
2022-08-21 08:23:52 +02:00
difficulty = 2 ,
2022-08-19 05:40:45 +02:00
trigger = {
type = " craft " ,
item = " ice_sprites:ice_sprite_bottle " ,
target = 1 ,
} ,
} )
end
df_mapitems.on_veinstone_punched = function ( pos , node , puncher , pointed_thing )
awards.unlock ( puncher : get_player_name ( ) , " dfcaverns_punched_veinstone " )
end
awards.register_achievement ( " dfcaverns_punched_veinstone " , {
title = S ( " Punch Veinstone " ) ,
2022-08-21 08:23:52 +02:00
description = S ( " Punch a vein to hear the heartbeat of the stone. " ) ,
difficulty = 2 ,
2022-08-20 08:14:29 +02:00
icon = " dfcaverns_awards_backgroundx32.png^(( " .. df_dependencies.texture_stone .. " ^dfcaverns_veins.png)^[resize:32x32)^dfcaverns_awards_foregroundx32.png " ,
2022-08-19 05:40:45 +02:00
} )
if minetest.get_modpath ( " df_underworld_items " ) then
if minetest.get_modpath ( " hunter_statue " ) then
hunter_statue.player_punched = function ( node_name , pos , player )
if node_name ~= " df_underworld_items:hunter_statue " then return end
awards.unlock ( player : get_player_name ( ) , " dfcaverns_attacked_by_guardian_statue " )
end
awards.register_achievement ( " dfcaverns_attacked_by_guardian_statue " , {
title = S ( " Get Attacked by an Underworld Guardian " ) ,
2022-08-21 08:23:52 +02:00
difficulty = 2 ,
description = S ( " You've discovered something important about those mysterious slade statues in the Underworld. " ) ,
2022-08-20 08:14:29 +02:00
icon = " dfcaverns_awards_backgroundx32.png^dfcaverns_guardian_achievement.png^dfcaverns_awards_foregroundx32.png " ,
secret = true ,
2022-08-19 05:40:45 +02:00
} )
end
df_underworld_items.puzzle_seal_solved = function ( pos , player )
if player == nil then return end
awards.unlock ( player : get_player_name ( ) , " dfcaverns_solved_puzzle_seal " )
end
awards.register_achievement ( " dfcaverns_solved_puzzle_seal " , {
title = S ( " Solve a Puzzle Seal " ) ,
2022-08-21 08:23:52 +02:00
difficulty = 4 ,
description = S ( " Decipher the code of the ancients. Do you dare turn the key? " ) ,
2022-08-20 08:14:29 +02:00
icon = " dfcaverns_puzzle_seal_solvedx32.png^dfcaverns_awards_foregroundx32.png " ,
2022-08-19 05:40:45 +02:00
} )
df_underworld_items.slade_breacher_triggered = function ( pos , player )
awards.unlock ( player : get_player_name ( ) , " dfcaverns_triggered_slade_breacher " )
end
awards.register_achievement ( " dfcaverns_triggered_slade_breacher " , {
title = S ( " Trigger a Slade Breacher " ) ,
2022-08-21 08:23:52 +02:00
difficulty = 1 ,
description = S ( " Activating a puzzle seal has produced a breach in the slade foundations of the world. " ) ,
2022-08-20 08:14:29 +02:00
icon = " dfcaverns_puzzle_seal_activex32.png^dfcaverns_awards_foregroundx32.png " ,
2022-08-19 05:40:45 +02:00
secret = true ,
} )
df_underworld_items.ancient_lantern_fixed = function ( pos , player )
awards.unlock ( player : get_player_name ( ) , " dfcaverns_repaired_lantern " )
end
awards.register_achievement ( " dfcaverns_repaired_lantern " , {
title = S ( " Repair an Ancient Lantern " ) ,
2022-08-21 08:23:52 +02:00
difficulty = 2 ,
description = S ( " You may not be able to build new ones, but at least you can get the old ones shining brightly again. " ) ,
2022-08-20 08:14:29 +02:00
icon = " dfcaverns_awards_backgroundx32.png^((dfcaverns_slade_brick.png^( " .. df_dependencies.texture_meselamp .. " ^[mask:dfcaverns_lantern_mask.png))^[resize:32x32)^dfcaverns_awards_foregroundx32.png " ,
secret = true ,
2022-08-19 05:40:45 +02:00
} )
-- awards.register_achievement("dfcaverns_repaired_100_lanterns", {
-- title = S("Repair 100 Ancient Lanterns"),
-- description = S(""),
2022-08-20 08:14:29 +02:00
-- icon =,
2022-08-19 05:40:45 +02:00
-- })
end
-- can't think of an easy way to detect these
--awards.register_achievement("dfcaverns_torch_detonated_mine_gas", {
-- title = S("Detonate Mine Gas"),
-- description = S(""),
2022-08-20 08:14:29 +02:00
-- icon =,
2022-08-19 05:40:45 +02:00
--})
--awards.register_achievement("dfcaverns_looted_underworld_bones", {
-- title = S("Loot Ancient Warrior Bones"),
-- description = S(""),
2022-08-20 08:14:29 +02:00
-- icon =,
2022-08-19 05:40:45 +02:00
--})
--
--awards.register_achievement("dfcaverns_looted_100_underworld_bones", {
-- title = S("Loot 100 Ancient Warrior Bones"),
-- description = S(""),
2022-08-20 08:14:29 +02:00
-- icon =,
2022-08-19 05:40:45 +02:00
--})