科研-极简模式优化

This commit is contained in:
MrZ_26
2023-10-10 15:04:40 +08:00
parent 6ccebcfe17
commit 769125a894
4 changed files with 43 additions and 33 deletions

View File

@@ -253,9 +253,7 @@ local hooks = {
'hook_right',
'hook_right_manual',
'hook_right_auto',
'hook_rotLeft',
'hook_rotRight',
'hook_rot180',
'hook_rotate',
'hook_drop',
'hook_spawn',
'hook_hold',

View File

@@ -271,7 +271,7 @@ function Player:act_rotRight()
if self.cur then
self.ctrlCount=self.ctrlCount+1
self:spin(1)
self:_triggerEvent('hook_rotRight')
self:_triggerEvent('hook_rotate',1)
self.keyPressing[3]=false
end
end
@@ -280,7 +280,7 @@ function Player:act_rotLeft()
if self.cur then
self.ctrlCount=self.ctrlCount+1
self:spin(3)
self:_triggerEvent('hook_rotLeft')
self:_triggerEvent('hook_rotate',3)
self.keyPressing[4]=false
end
end
@@ -289,7 +289,7 @@ function Player:act_rot180()
if self.cur then
self.ctrlCount=self.ctrlCount+2
self:spin(2)
self:_triggerEvent('hook_rot180')
self:_triggerEvent('hook_rotate',2)
self.keyPressing[5]=false
end
end