Add hero of the village achievement

This commit is contained in:
cora 2022-10-25 01:20:09 +02:00
parent ad6326271e
commit a0c83e72b9
3 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

View File

@ -487,3 +487,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",
})