Add icons to all awards

This commit is contained in:
Wuzzy 2020-03-31 21:36:53 +02:00
parent 27360324c3
commit 1c7d3dd261
11 changed files with 27 additions and 11 deletions

View File

@ -104,10 +104,10 @@ function awards.register_achievement(name,data_table)
-- check icon, background and custom_announce data
if data_table.icon == nil or data_table.icon == "" then
data_table.icon = "unknown.png"
data_table.icon = "awards_unknown.png"
end
if data_table.background == nil or data_table.background == "" then
data_table.background = "bg_default.png"
data_table.background = "awards_bg_default.png"
end
if data_table.custom_announce == nil or data_table.custom_announce == "" then
data_table.custom_announce = "Achievement Unlocked:"

View File

@ -10,7 +10,7 @@ dofile(minetest.get_modpath("awards").."/api.lua")
awards.register_achievement("award_firstlight",{
title = "First Light",
description = "You have placed a torch",
icon = "novicebuilder.png",
icon = "awards_novicebuilder.png",
trigger={
type="place",
node="default:torch",
@ -20,7 +20,7 @@ awards.register_achievement("award_firstlight",{
awards.register_achievement("award_lightitup",{
title = "Light It Up",
description = "You have placed 100 torches",
icon = "novicebuilder.png",
icon = "awards_novicebuilder.png",
trigger={
type="place",
node="default:torch",
@ -30,7 +30,7 @@ awards.register_achievement("award_lightitup",{
awards.register_achievement("award_betterthantorch",{
title = "Better Than Torch",
description = "You have placed a streetlight",
icon = "novicebuilder.png",
icon = minetest.inventorycube(""),
trigger={
type="place",
node="light:streetlight",
@ -42,6 +42,7 @@ awards.register_achievement("award_betterthantorch",{
awards.register_achievement("award_lumberjack_ash",{
title = "Ash Lumber Jack",
description = "You have mined an ash log!",
icon = "trees_ash_log.png",
trigger={
type="dig",
node="trees:ash_log",
@ -51,6 +52,7 @@ awards.register_achievement("award_lumberjack_ash",{
awards.register_achievement("award_lumberjack_aspen",{
title = "Aspen Lumber Jack",
description = "You have mined an aspen log!",
icon = "trees_aspen_log.png",
trigger={
type="dig",
node="trees:aspen_log",
@ -60,6 +62,7 @@ awards.register_achievement("award_lumberjack_aspen",{
awards.register_achievement("award_lumberjack_birch",{
title = "Birch Lumber Jack",
description = "You have mined a birch log!",
icon = "trees_birch_log.png",
trigger={
type="dig",
node="trees:birch_log",
@ -69,6 +72,7 @@ awards.register_achievement("award_lumberjack_birch",{
awards.register_achievement("award_lumberjack_maple",{
title = "Maple Lumber Jack",
description = "You have mined a maple log!",
icon = "trees_maple_log.png",
trigger={
type="dig",
node="trees:maple_log",
@ -78,6 +82,7 @@ awards.register_achievement("award_lumberjack_maple",{
awards.register_achievement("award_lumberjack_chestnut",{
title = "Chestnut Lumber Jack",
description = "You have mined a chestnut log!",
icon = "trees_chestnut_log.png",
trigger={
type="dig",
node="trees:chestnut_log",
@ -87,6 +92,7 @@ awards.register_achievement("award_lumberjack_chestnut",{
awards.register_achievement("award_lumberjack_pine",{
title = "Pine Lumber Jack",
description = "You have mined a pine log!",
icon = "trees_pine_log.png",
trigger={
type="dig",
node="trees:pine_log",
@ -95,6 +101,7 @@ awards.register_achievement("award_lumberjack_pine",{
})
awards.register_achievement("award_lumberjack_spruce",{
title = "Spruce Lumber Jack",
icon = "trees_spruce_log.png",
description = "You have mined a spruce log!",
trigger={
type="dig",
@ -107,7 +114,7 @@ awards.register_achievement("award_lumberjack_spruce",{
awards.register_achievement("award_anvil_stone",{
title = "Smithery",
description = "Place a Stone Anvil",
icon = "anvil.png",
icon = "awards_anvil.png",
background = "bg_default.png",
trigger={
type="place",
@ -118,7 +125,7 @@ awards.register_achievement("award_anvil_stone",{
awards.register_achievement("award_anvil_dstone",{
title = "Desert Smithery",
description = "Place a Desert Stone Anvil",
icon = "anvil.png",
icon = "awards_desert_anvil.png",
background = "bg_default.png",
trigger={
type="place",
@ -131,7 +138,7 @@ awards.register_achievement("award_anvil_dstone",{
awards.register_achievement("award_mine1",{
title = "Entering the mine",
description = "You have dug 10 stone",
icon = "miniminer.png",
icon = "awards_miniminer.png",
background = "bg_mining.png",
trigger={
type="dig",
@ -144,7 +151,7 @@ awards.register_achievement("award_mine1",{
awards.register_achievement("award_mine2",{
title = "Mini Miner",
description = "You have dug 100 stone",
icon = "miniminer.png",
icon = "awards_miniminer.png",
background = "bg_mining.png",
trigger={
type="dig",
@ -157,7 +164,7 @@ awards.register_achievement("award_mine2",{
awards.register_achievement("award_mine3",{
title = "Hardened Miner",
description = "You have dug 1000 stone",
icon = "miniminer.png",
icon = "awards_miniminer.png",
background = "bg_mining.png",
trigger={
type="dig",
@ -170,7 +177,7 @@ awards.register_achievement("award_mine3",{
awards.register_achievement("award_mine4",{
title = "Master Miner",
description = "You have dug 10000 stone",
icon = "miniminer.png",
icon = "awards_miniminer.png",
background = "bg_mining.png",
trigger={
type="dig",
@ -183,6 +190,7 @@ awards.register_achievement("award_mine4",{
awards.register_achievement("award_death1",{
title = "First Death",
description = "You died. Oh well, it does not matter, you have more lives than a cat",
icon = "awards_death.png",
trigger={
type="death",
target=1,
@ -192,6 +200,7 @@ awards.register_achievement("award_death1",{
-- Spike Placement
awards.register_achievement("award_spike_ash",{
title = "Spiky Ash!",
icon = "trees_ash_planks.png",
description = "You placed ash spikes!",
trigger={
type="place",
@ -201,6 +210,7 @@ awards.register_achievement("award_spike_ash",{
})
awards.register_achievement("award_spike_aspen",{
title = "Spiky Aspen!",
icon = "trees_aspen_planks.png",
description = "You placed aspen spikes!",
trigger={
type="place",
@ -211,6 +221,7 @@ awards.register_achievement("award_spike_aspen",{
awards.register_achievement("award_spike_birch",{
title = "Spiky Birch!",
description = "You placed birch spikes!",
icon = "trees_birch_planks.png",
trigger={
type="place",
node="spikes:spike_birch",
@ -220,6 +231,7 @@ awards.register_achievement("award_spike_birch",{
awards.register_achievement("award_spike_maple",{
title = "Spiky Maple!",
description = "You placed maple spikes!",
icon = "trees_maple_planks.png",
trigger={
type="place",
node="spikes:spike_maple",
@ -228,6 +240,7 @@ awards.register_achievement("award_spike_maple",{
})
awards.register_achievement("award_spike_chestnut",{
title = "Spiky Chestnut!",
icon = "trees_chestnut_planks.png",
description = "You placed chestnut spikes!",
trigger={
type="place",
@ -237,6 +250,7 @@ awards.register_achievement("award_spike_chestnut",{
})
awards.register_achievement("award_spike_pine",{
title = "Spiky Pine!",
icon = "trees_pine_planks.png",
description = "You placed pine spikes!",
trigger={
type="place",
@ -246,6 +260,7 @@ awards.register_achievement("award_spike_pine",{
})
awards.register_achievement("award_spike_spruce",{
title = "Spiky Spruce!",
icon = "trees_spruce_planks.png",
description = "You placed spruce spikes!",
trigger={
type="place",
@ -258,6 +273,7 @@ awards.register_achievement("award_spike_spruce",{
awards.register_achievement("award_ants",{
title = "ANTS!",
description = "You dug an anthill",
icon = "farming:anthill.png",
trigger={
type="dig",
node="farming:ant_hill",

View File

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 403 B

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

View File

Before

Width:  |  Height:  |  Size: 212 B

After

Width:  |  Height:  |  Size: 212 B

View File

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 201 B

View File

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

View File

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B