More consistent code style in init.lua

This commit is contained in:
Wuzzy 2016-08-11 09:55:56 +02:00
parent 5b416c61c4
commit 1bd96e662b

@ -122,7 +122,7 @@ if minetest.get_modpath("fire") ~= nil then
title = S("Pyromaniac"), title = S("Pyromaniac"),
description = S("Craft 8 times flint and steel."), description = S("Craft 8 times flint and steel."),
icon = "fire_flint_steel.png", icon = "fire_flint_steel.png",
trigger = { trigger = {
type = "craft", type = "craft",
item = "fire:flint_and_steel", item = "fire:flint_and_steel",
target = 8 target = 8
@ -133,7 +133,7 @@ if minetest.get_modpath("fire") ~= nil then
title = S("Firefighter"), title = S("Firefighter"),
description = S("Put out 1000 fires."), description = S("Put out 1000 fires."),
icon = "awards_firefighter.png", icon = "awards_firefighter.png",
trigger = { trigger = {
type = "dig", type = "dig",
node = "fire:basic_flame", node = "fire:basic_flame",
target = 1000 target = 1000
@ -665,7 +665,8 @@ if minetest.get_modpath("vessels") ~= nil then
type = "craft", type = "craft",
item= "vessels:shelf", item= "vessels:shelf",
target = 14 target = 14
}}) }
})
end end
awards.register_achievement("award_furnace", { awards.register_achievement("award_furnace", {
@ -676,7 +677,8 @@ end
type = "craft", type = "craft",
item= "default:furnace", item= "default:furnace",
target = 10 target = 10
}}) }
})
awards.register_achievement("award_chest", { awards.register_achievement("award_chest", {
title = S("Treasurer"), title = S("Treasurer"),
@ -769,44 +771,52 @@ if minetest.get_modpath("stairs") ~= nil then
type = "craft", type = "craft",
item= "stairs:stair_goldblock", item= "stairs:stair_goldblock",
target = 24 target = 24
}}) }
})
end end
if minetest.get_modpath("dye") ~= nil then if minetest.get_modpath("dye") ~= nil then
awards.register_achievement("awards_dye_red", { awards.register_achievement("awards_dye_red", {
title = S("Roses Are Red"), title = S("Roses Are Red"),
description = S("Craft 400 red dyes."), description = S("Craft 400 red dyes."),
icon = "dye_red.png", icon = "dye_red.png",
trigger = { trigger = {
type = "craft", type = "craft",
item = "dye:red", item = "dye:red",
target = 400 target = 400
}}) }
})
awards.register_achievement("awards_dye_yellow", { awards.register_achievement("awards_dye_yellow", {
title = S("Dandelions are Yellow"), title = S("Dandelions are Yellow"),
description = S("Craft 400 yellow dyes."), description = S("Craft 400 yellow dyes."),
icon = "dye_yellow.png", icon = "dye_yellow.png",
trigger = { trigger = {
type = "craft", type = "craft",
item = "dye:yellow", item = "dye:yellow",
target = 400 target = 400
}}) }
})
awards.register_achievement("awards_dye_blue", { awards.register_achievement("awards_dye_blue", {
title = S("Geraniums are Blue"), title = S("Geraniums are Blue"),
description = S("Craft 400 blue dyes."), description = S("Craft 400 blue dyes."),
icon = "dye_blue.png", icon = "dye_blue.png",
trigger = { trigger = {
type = "craft", type = "craft",
item= "dye:blue", item= "dye:blue",
target = 400 target = 400
}}) }
})
awards.register_achievement("awards_dye_white", { awards.register_achievement("awards_dye_white", {
title = S("White Color Stock"), title = S("White Color Stock"),
description = S("Craft 100 white dyes."), description = S("Craft 100 white dyes."),
icon = "dye_white.png", icon = "dye_white.png",
trigger = { trigger = {
type = "craft", type = "craft",
item= "dye:white", item= "dye:white",
target = 100 target = 100
}}) }
})
end end