Make textures follow naming conventions
6
api.lua
|
@ -220,8 +220,8 @@ function awards.unlock(name, award)
|
||||||
-- Get Notification Settings
|
-- Get Notification Settings
|
||||||
local title = awdef.title or award
|
local title = awdef.title or award
|
||||||
local desc = awdef.description or ""
|
local desc = awdef.description or ""
|
||||||
local background = awdef.background or "bg_default.png"
|
local background = awdef.background or "awards_bg_default.png"
|
||||||
local icon = awdef.icon or "unknown.png"
|
local icon = awdef.icon or "awards_unknown.png"
|
||||||
local custom_announce = awdef.custom_announce or S("Achievement Unlocked:")
|
local custom_announce = awdef.custom_announce or S("Achievement Unlocked:")
|
||||||
|
|
||||||
-- Do Notification
|
-- Do Notification
|
||||||
|
@ -309,7 +309,7 @@ function awards.getFormspec(name, to, sid)
|
||||||
local def = awards.def[item.name]
|
local def = awards.def[item.name]
|
||||||
if def and def.secret and not item.got then
|
if def and def.secret and not item.got then
|
||||||
formspec = formspec .. "label[1,2.75;Secret Award]"..
|
formspec = formspec .. "label[1,2.75;Secret Award]"..
|
||||||
"image[1,0;3,3;unknown.png]"
|
"image[1,0;3,3;awards_unknown.png]"
|
||||||
if def and def.description then
|
if def and def.description then
|
||||||
formspec = formspec .. "label[0,3.25;Unlock this award to find out what it is]"
|
formspec = formspec .. "label[0,3.25;Unlock this award to find out what it is]"
|
||||||
end
|
end
|
||||||
|
|
36
init.lua
|
@ -32,7 +32,7 @@ awards.set_intllib(S)
|
||||||
awards.register_achievement("award_lightitup",{
|
awards.register_achievement("award_lightitup",{
|
||||||
title = S("Light It Up"),
|
title = S("Light It Up"),
|
||||||
description = S("Place 100 torches."),
|
description = S("Place 100 torches."),
|
||||||
icon = "novicebuilder.png",
|
icon = "awards_novicebuilder.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "place",
|
type = "place",
|
||||||
node = "default:torch",
|
node = "default:torch",
|
||||||
|
@ -44,7 +44,7 @@ awards.register_achievement("award_lightitup",{
|
||||||
awards.register_achievement("award_well_lit",{
|
awards.register_achievement("award_well_lit",{
|
||||||
title = S("Well Lit"),
|
title = S("Well Lit"),
|
||||||
description = S("Place 1,000 torches."),
|
description = S("Place 1,000 torches."),
|
||||||
icon = "novicebuilder.png",
|
icon = "awards_novicebuilder.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "place",
|
type = "place",
|
||||||
node = "default:torch",
|
node = "default:torch",
|
||||||
|
@ -58,7 +58,7 @@ if minetest.get_modpath("moreblocks") then
|
||||||
awards.register_achievement("award_saint_maclou",{
|
awards.register_achievement("award_saint_maclou",{
|
||||||
title = S("Saint-Maclou"),
|
title = S("Saint-Maclou"),
|
||||||
description = S("Place 20 coal checkers."),
|
description = S("Place 20 coal checkers."),
|
||||||
icon = "novicebuilder.png",
|
icon = "awards_novicebuilder.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "place",
|
type = "place",
|
||||||
node = "moreblocks:coal_checker",
|
node = "moreblocks:coal_checker",
|
||||||
|
@ -70,7 +70,7 @@ if minetest.get_modpath("moreblocks") then
|
||||||
awards.register_achievement("award_castorama",{
|
awards.register_achievement("award_castorama",{
|
||||||
title = S("Castorama"),
|
title = S("Castorama"),
|
||||||
description = S("Place 20 iron checkers."),
|
description = S("Place 20 iron checkers."),
|
||||||
icon = "novicebuilder.png",
|
icon = "awards_novicebuilder.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "place",
|
type = "place",
|
||||||
node = "moreblocks:iron_checker",
|
node = "moreblocks:iron_checker",
|
||||||
|
@ -82,7 +82,7 @@ if minetest.get_modpath("moreblocks") then
|
||||||
awards.register_achievement("award_sam_the_trapper",{
|
awards.register_achievement("award_sam_the_trapper",{
|
||||||
title = S("Sam the Trapper"),
|
title = S("Sam the Trapper"),
|
||||||
description = S("Place 2 trap stones."),
|
description = S("Place 2 trap stones."),
|
||||||
icon = "novicebuilder.png",
|
icon = "awards_novicebuilder.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "place",
|
type = "place",
|
||||||
node = "moreblocks:trap_stone",
|
node = "moreblocks:trap_stone",
|
||||||
|
@ -95,8 +95,8 @@ end
|
||||||
awards.register_achievement("award_obsessed_with_obsidian",{
|
awards.register_achievement("award_obsessed_with_obsidian",{
|
||||||
title = S("Obsessed with Obsidian"),
|
title = S("Obsessed with Obsidian"),
|
||||||
description = S("Mine 50 obsidian."),
|
description = S("Mine 50 obsidian."),
|
||||||
icon = "miniminer.png",
|
icon = "awards_miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:obsidian",
|
node = "default:obsidian",
|
||||||
|
@ -108,7 +108,7 @@ awards.register_achievement("award_obsessed_with_obsidian",{
|
||||||
awards.register_achievement("award_on_the_way", {
|
awards.register_achievement("award_on_the_way", {
|
||||||
title = S("On The Way"),
|
title = S("On The Way"),
|
||||||
description = S("Place 100 rails."),
|
description = S("Place 100 rails."),
|
||||||
icon = "novicebuilder.png",
|
icon = "awards_novicebuilder.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "place",
|
type = "place",
|
||||||
node = "default:rail",
|
node = "default:rail",
|
||||||
|
@ -193,7 +193,7 @@ awards.register_achievement("award_mesefind", {
|
||||||
title = S("First Mese Find"),
|
title = S("First Mese Find"),
|
||||||
description = S("Find some Mese."),
|
description = S("Find some Mese."),
|
||||||
icon = "default_mese_block.png",
|
icon = "default_mese_block.png",
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:stone_with_mese",
|
node = "default:stone_with_mese",
|
||||||
|
@ -205,8 +205,8 @@ awards.register_achievement("award_mesefind", {
|
||||||
awards.register_achievement("award_youre_a_copper", {
|
awards.register_achievement("award_youre_a_copper", {
|
||||||
title = S("You're a copper"),
|
title = S("You're a copper"),
|
||||||
description = S("Dig 1,000 copper ores."),
|
description = S("Dig 1,000 copper ores."),
|
||||||
icon = "miniminer.png",
|
icon = "awards_miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:stone_with_copper",
|
node = "default:stone_with_copper",
|
||||||
|
@ -230,8 +230,8 @@ awards.register_achievement("award_nyanfind", {
|
||||||
awards.register_achievement("award_mine2", {
|
awards.register_achievement("award_mine2", {
|
||||||
title = S("Mini Miner"),
|
title = S("Mini Miner"),
|
||||||
description = S("Dig 100 stone blocks."),
|
description = S("Dig 100 stone blocks."),
|
||||||
icon = "miniminer.png",
|
icon = "awards_miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:stone",
|
node = "default:stone",
|
||||||
|
@ -243,8 +243,8 @@ awards.register_achievement("award_mine2", {
|
||||||
awards.register_achievement("award_mine3", {
|
awards.register_achievement("award_mine3", {
|
||||||
title = S("Hardened Miner"),
|
title = S("Hardened Miner"),
|
||||||
description = S("Dig 1,000 stone blocks"),
|
description = S("Dig 1,000 stone blocks"),
|
||||||
icon = "miniminer.png",
|
icon = "awards_miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:stone",
|
node = "default:stone",
|
||||||
|
@ -256,8 +256,8 @@ awards.register_achievement("award_mine3", {
|
||||||
awards.register_achievement("award_mine4", {
|
awards.register_achievement("award_mine4", {
|
||||||
title = S("Master Miner"),
|
title = S("Master Miner"),
|
||||||
description = S("Dig 10,000 stone blocks."),
|
description = S("Dig 10,000 stone blocks."),
|
||||||
icon = "miniminer.png",
|
icon = "awards_miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:stone",
|
node = "default:stone",
|
||||||
|
@ -269,7 +269,7 @@ awards.register_achievement("award_mine4", {
|
||||||
awards.register_achievement("award_marchand_de_sable", {
|
awards.register_achievement("award_marchand_de_sable", {
|
||||||
title = S("Marchand De Sable"),
|
title = S("Marchand De Sable"),
|
||||||
description = S("Dig 1,000 sand."),
|
description = S("Dig 1,000 sand."),
|
||||||
background = "bg_mining.png",
|
background = "awards_bg_mining.png",
|
||||||
trigger = {
|
trigger = {
|
||||||
type = "dig",
|
type = "dig",
|
||||||
node = "default:sand",
|
node = "default:sand",
|
||||||
|
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 455 B After Width: | Height: | Size: 455 B |
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 322 B |