Code cleanup

This commit is contained in:
cora 2022-11-17 05:48:15 +01:00
parent db4f9ec5a3
commit 94057aa7e5
2 changed files with 0 additions and 11 deletions

View file

@ -31,8 +31,6 @@ end
function mcl_events.register_event(name,def)
if table.indexof(disabled_events,name) ~= -1 then return end
mcl_events.registered_events[name] = {}
--setmetatable(mcl_events.registered_events[name],tpl_eventdef)
mcl_events.registered_events[name] = def
mcl_events.registered_events[name].name = name
end
@ -47,13 +45,6 @@ local function addbars(self)
end
end
local function update_bars(self)
if not self.enable_bossbar then return end
for _,b in pairs(self.bars) do
mcl_bossbars.update_bar(b,{text = self.readable_name .. ": Wave "..self.stage,percentage=self.percent})
end
end
local function start_event(p,e)
mcl_log("[mcl_events] Event started: "..e.readable_name.." at "..minetest.pos_to_string(vector.round(p.pos)))
local idx = #active_events + 1
@ -103,7 +94,6 @@ function check_events(dtime)
ae:on_step()
end
addbars(ae)
--update_bars(ae)
end
-- check if a new event should be started
etime = etime - dtime

View file

@ -288,7 +288,6 @@ mcl_events.register_event("raid",{
return self.stage >= self.max_stage and #m < 1
end,
on_complete = function(self)
--minetest.log("RAID complete")
awards.unlock(self.player,"mcl:hero_of_the_village")
mcl_potions.player_clear_effect(minetest.get_player_by_name(self.player),"bad_omen")
end,