0
0
Fork 0

Add code to unlock Voluntary Exile advancement

This commit is contained in:
PrairieWind 2022-11-09 12:30:23 -07:00 committed by cora
parent 358250012f
commit a1e21b44c8
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ function mcl_raids.promote_to_raidcaptain(c) -- object
l._banner = nil
mcl_raids.drop_obanner(pos)
if cmi_cause.type == "punch" and cmi_cause.puncher:is_player() then
awards.unlock(cmi_cause.puncher:get_player_name(), "mcl:voluntary_exile")
local lv = mcl_potions.player_get_effect(cmi_cause.puncher, "bad_omen")
if not lv then lv = 0
else lv = lv.factor end