Commit 092bee4f authored by Simpy's avatar Simpy 🐹

define the repair output function

parent 10fa9b18
......@@ -87,7 +87,7 @@ end
do -- Auto Repair Functions
local TYPE, COST, POSS, STATUS
local function RepairOutput()
function M:AutoRepairOutput()
if TYPE == 'GUILD' then
if STATUS == "GUILD_REPAIR_FAILED" then
M:AttemptAutoRepair(true) --Try using player money instead
......@@ -115,7 +115,7 @@ do -- Auto Repair Functions
RepairAllItems(TYPE == 'GUILD')
--Delay this a bit so we have time to catch the outcome of first repair attempt
E:Delay(0.5, RepairOutput)
E:Delay(0.5, M.AutoRepairOutput)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment