震动小模块不再引用游戏变量SETTING

This commit is contained in:
MrZ626
2021-09-30 00:19:25 +08:00
parent 45718eb41a
commit 3d4c51c532
5 changed files with 9 additions and 10 deletions

View File

@@ -1,8 +1,6 @@
local level={0,0,.01,.016,.023,.03,.04,.05,.06,.07,.08,.09,.12,.15}
local vib=love.system.vibrate
return function(t)
local L=SETTING.vib
if L>0 then
vib(level[L+t])
end
t=level[t]
if t then vib(t)end
end