Add hero of the village achievement

This commit is contained in:
cora 2022-10-25 01:20:09 +02:00
parent dc017864fd
commit 232f57c247
4 changed files with 10 additions and 2 deletions

View File

@ -161,6 +161,6 @@ mcl_events.register_event("raid",{
end,
on_complete = function(self)
--minetest.log("RAID complete")
--TODO: Award hero of the village
awards.unlock(self.player,"mcl:hero_of_the_village")
end,
})

View File

@ -1,3 +1,3 @@
name = mcl_raids
author = PrairieWind
depends = mcl_events, mcl_mobs, mcl_potions, mcl_bells
depends = mcl_events, mcl_mobs, mcl_potions, mcl_bells, mcl_achievements

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -529,3 +529,11 @@ awards.register_achievement("mcl:obsidian", {
type = "Advancement",
group = "Overworld",
})
awards.register_achievement("mcl:hero_of_the_village", {
title = S("Hero of the village"),
description = S("Successfully defend a village from a raid"),
icon = "mcl_raids_hero_of_the_village_icon.png",
type = "Advancement",
group = "Overworld",
})