2017-01-19 07:42:36 +01:00
|
|
|
if not minetest.get_modpath("awards") then
|
2023-06-19 07:44:40 +02:00
|
|
|
digtron.award_item_dug = function() end
|
|
|
|
digtron.award_layout = function() end
|
|
|
|
digtron.award_item_built = function() end
|
|
|
|
digtron.award_crate = function() end
|
2017-01-19 07:42:36 +01:00
|
|
|
return
|
|
|
|
end
|
2018-12-24 03:06:49 +01:00
|
|
|
|
2017-01-19 07:42:36 +01:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2017-02-05 07:08:38 +01:00
|
|
|
-- internationalization boilerplate
|
2023-11-22 14:57:44 +01:00
|
|
|
local S = digtron.S
|
|
|
|
-- local MP = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
-- local S = dofile(MP.."/intllib.lua")
|
2017-02-05 07:08:38 +01:00
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_trigger("digtron_dig", {
|
|
|
|
type = "counted_key",
|
|
|
|
progress = "@1/@2 excavated",
|
|
|
|
auto_description = {"Excavate 1 @2 using a Digtron.", "Excavate @1 @2 using a Digtron."},
|
|
|
|
auto_description_total = {"Excavate @1 block using a Digtron.", "Excavate @1 blocks using a Digtron."},
|
2023-06-19 07:44:40 +02:00
|
|
|
get_key = function(_, def)
|
2018-12-24 03:06:49 +01:00
|
|
|
return minetest.registered_aliases[def.trigger.node] or def.trigger.node
|
|
|
|
end,
|
|
|
|
key_is_item = true,
|
|
|
|
})
|
2018-12-14 08:48:41 +01:00
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
digtron.award_item_dug = function(items_dropped, player)
|
|
|
|
if #items_dropped == 0 or not player then
|
|
|
|
return
|
2018-12-14 08:48:41 +01:00
|
|
|
end
|
2017-01-19 07:42:36 +01:00
|
|
|
for _, item in pairs(items_dropped) do
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.notify_digtron_dig(player, item)
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_trigger("digtron_build", {
|
|
|
|
type = "counted_key",
|
|
|
|
progress = "@1/@2 built",
|
|
|
|
auto_description = {"Build 1 @2 using a Digtron.", "Build @1 @2 using a Digtron."},
|
|
|
|
auto_description_total = {"Build @1 block using a Digtron.", "Build @1 blocks using a Digtron."},
|
2023-06-19 07:44:40 +02:00
|
|
|
get_key = function(_, def)
|
2018-12-24 03:06:49 +01:00
|
|
|
return minetest.registered_aliases[def.trigger.node] or def.trigger.node
|
|
|
|
end,
|
|
|
|
key_is_item = true,
|
|
|
|
})
|
2018-12-14 08:48:41 +01:00
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
digtron.award_item_built = function(item_name, player)
|
|
|
|
if not player then
|
|
|
|
return
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.notify_digtron_build(player, item_name)
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
digtron.award_layout = function(layout, player)
|
|
|
|
if layout == nil or not player then
|
2017-01-19 07:42:36 +01:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
local name = player:get_player_name()
|
|
|
|
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.water_touching then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_water")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
if layout.lava_touching then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_lava")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
if table.getn(layout.all) > 9 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_size10")
|
2017-01-19 07:42:36 +01:00
|
|
|
if table.getn(layout.all) > 99 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_size100")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
end
|
2019-01-05 06:06:12 +01:00
|
|
|
if layout.diggers ~= nil and table.getn(layout.diggers) > 24 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_digger25")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
2019-01-05 06:06:12 +01:00
|
|
|
if layout.builders ~= nil and table.getn(layout.builders) > 24 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_builder25")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
2023-06-19 07:44:40 +02:00
|
|
|
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y > 100 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_height100")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y > 1000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_height1000")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
elseif layout.controller.y < -100 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth100")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y < -1000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth1000")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y < -2000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth2000")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y < -4000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth4000")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y < -8000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth8000")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y < -16000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth16000")
|
2017-01-19 07:42:36 +01:00
|
|
|
if layout.controller.y < -30000 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_depth30000")
|
2017-01-19 07:42:36 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-12-14 08:48:41 +01:00
|
|
|
digtron.award_crate = function(layout, name)
|
|
|
|
if layout == nil or not name or name == "" then
|
2017-01-20 08:30:28 +01:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Note that we're testing >10 rather than >9 because this layout includes the crate node
|
|
|
|
if table.getn(layout.all) > 10 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_crate10")
|
2017-01-20 08:30:28 +01:00
|
|
|
if table.getn(layout.all) > 100 then
|
2018-12-14 08:48:41 +01:00
|
|
|
awards.unlock(name, "digtron_crate100")
|
2017-01-20 08:30:28 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_water",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Deep Blue Digtron"),
|
|
|
|
description = S("Encounter water while operating a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_water.png^digtron_digger_yb_frame.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_lava",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtrons of Fire"),
|
|
|
|
description = S("Encounter lava while operating a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_lava.png^digtron_digger_yb_frame.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_size10",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Bigtron"),
|
|
|
|
description = S("Operate a Digtron with 10 or more component blocks."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_crate.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_size100",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Really Bigtron"),
|
|
|
|
description = S("Operate a Digtron with 100 or more component blocks."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_crate.png", -- TODO: Visually distinguish this from Bigtron
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_builder25",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Buildtron"),
|
|
|
|
description = S("Operate a Digtron with 25 or more builder modules."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_builder.png^digtron_crate.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_digger25",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digging Leviathan"),
|
|
|
|
description = S("Operate a Digtron with 25 or more digger heads."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_motor.png^digtron_crate.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_height1000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron In The Sky"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron above 1000m elevation."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_river_water.png^default_snow_side.png^[transformR180^digtron_digger_yb_frame.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_height100",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron High"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron above 100m elevation."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_river_water.png^default_snow_side.png^digtron_digger_yb_frame.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth100",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Scratching the Surface"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron 100m underground."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^digtron_digger_yb_frame.png^awards_level1.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth1000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digging Deeper"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron 1,000m underground."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^[colorize:#0002^digtron_digger_yb_frame.png^awards_level2.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth2000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("More Than a Mile"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron 2,000m underground."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^[colorize:#0004^digtron_digger_yb_frame.png^awards_level3.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth4000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digging Below Plausibility"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron 4,000m underground."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^[colorize:#0006^digtron_digger_yb_frame.png^awards_level4.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth8000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Double Depth"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron 8,000m underground."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^[colorize:#0008^digtron_digger_yb_frame.png^awards_level5.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth16000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Halfway to the Core"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("The deepest mine in the world is only ~15 km deep, you operated a Digtron below 16km."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^[colorize:#000A^digtron_digger_yb_frame.png^awards_level6.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_depth30000",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Nowhere To Go But Up"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Operate a Digtron 30,000m underground."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_cobble.png^[colorize:#000C^digtron_digger_yb_frame.png^awards_level7.png",
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_100mese_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Mese Master"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Mine 100 Mese crystals with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_mese_crystal.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:mese_crystal",
|
|
|
|
target = 100,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_100diamond_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Diamond Vs. Diamond"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Mine 100 diamonds with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_diamond.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:diamond",
|
|
|
|
target = 100,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000dirt_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Strip Mining"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 1000 units of dirt with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "default_dirt.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:dirt",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron Miner"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 1000 blocks using a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_tool_bronzepick.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_10000_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron Expert Miner"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 10,000 blocks using a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_tool_steelpick.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
target = 10000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_100000_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron Master Miner"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 100,000 blocks using a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_tool_diamondpick.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
target = 100000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000000_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("DIGTRON MEGAMINER"),
|
|
|
|
description = S("Excavate over a million blocks using a Digtron!"),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_tool_mesepick.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
target = 1000000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000wood_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Clear Cutting"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Chop down 1000 units of tree with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_sapling.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "group:tree",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_10000wood_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron Deforestation"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Chop down 10,000 units of tree with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_sapling.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "group:tree",
|
|
|
|
target = 10000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000grass_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Lawnmower"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Harvest 1000 units of grass with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_grass_5.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "group:grass",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000iron_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Iron Digtron"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 1000 units of iron ore with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_steel_ingot.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:iron_lump",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000copper_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Copper Digtron"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 1000 units of copper ore with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_copper_ingot.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:copper_lump",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000coal_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Coal Digtron"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 1,000 units of coal with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_coal_lump.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:coal_lump",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_10000coal_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Bagger 288"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 10,000 units of coal with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_coal_block.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:coal_lump",
|
|
|
|
target = 10000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_100gold_dug",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron 49er"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Excavate 100 units of gold with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^default_gold_ingot.png^digtron_digger_yb_frame.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_dig",
|
|
|
|
node = "default:gold_lump",
|
|
|
|
target = 100,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_1000_built",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Constructive Digging"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Build 1,000 blocks with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_builder.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_build",
|
|
|
|
target = 1000,
|
|
|
|
}
|
2017-01-19 07:42:36 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_10000_built",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Highly Constructive Digging"),
|
2023-11-22 14:57:44 +01:00
|
|
|
description = S("Build 10,000 blocks with a Digtron."),
|
2017-01-19 07:42:36 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_axel_side.png^[transformR90^digtron_builder.png",
|
2018-12-24 03:06:49 +01:00
|
|
|
trigger = {
|
|
|
|
type = "digtron_build",
|
|
|
|
target = 10000,
|
|
|
|
}
|
2017-01-20 08:30:28 +01:00
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_crate10",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron Packrat"),
|
|
|
|
description = S("Stored 10 or more Digtron blocks in one crate."),
|
2017-01-20 08:30:28 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_crate.png", -- TODO: Visually distinguish this from Bigtron
|
|
|
|
})
|
|
|
|
|
2018-12-24 03:06:49 +01:00
|
|
|
awards.register_award("digtron_crate100",{
|
2017-02-05 07:08:38 +01:00
|
|
|
title = S("Digtron Hoarder"),
|
|
|
|
description = S("Stored 100 or more Digtron blocks in one crate."),
|
2017-01-20 08:30:28 +01:00
|
|
|
background = "awards_bg_mining.png",
|
|
|
|
icon = "digtron_plate.png^digtron_crate.png", -- TODO: Visually distinguish this from Bigtron
|
2018-12-14 08:48:41 +01:00
|
|
|
})
|