From eea07b64af572998285098772ba9294e874d26b6 Mon Sep 17 00:00:00 2001 From: tacigar Date: Fri, 16 Dec 2016 22:44:48 +0900 Subject: [PATCH] Fix core writer --- maidroid_tool/core_writer.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maidroid_tool/core_writer.lua b/maidroid_tool/core_writer.lua index b70fb13..907f830 100644 --- a/maidroid_tool/core_writer.lua +++ b/maidroid_tool/core_writer.lua @@ -44,13 +44,13 @@ do -- register core writer .. "list[current_player;main;0,5;8,1;]" .. "list[current_player;main;0,6.2;8,3;8]", - ["active"] = function(t) - local arrow_percent = (100 / 40) * writing_time + ["active"] = function(time) + local arrow_percent = (100 / 40) * time local merter_percent = 0 - if writing_time % 16 >= 8 then - meter_percent = (8 - (writing_time % 8)) * (100 / 8) + if time % 16 >= 8 then + meter_percent = (8 - (time % 8)) * (100 / 8) else - meter_percent = (writing_time % 8) * (100 / 8) + meter_percent = (time % 8) * (100 / 8) end return "size[8,9]" .. default.gui_bg