Skip to content

Commit

Permalink
fix conditional lua error in default pump skin
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Dec 12, 2021
1 parent 6af633e commit c8585bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NoteSkins/pump/default/UpLeft Receptor.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
local player = Var "Player" or GAMESTATE:GetMasterPlayerNumber()
local style = GAMESTATE:GetCurrentStyle()
local stepstype = style ~= nil and style:GetStepsType() or nil

local function Beat(self)
-- too many locals
Expand Down Expand Up @@ -29,13 +31,13 @@ return Def.ActorFrame {
NOTESKIN:LoadActor("Center", "Outline Receptor") ..
{
Name = "Outline Full",
Condition = Var "Button" == "Center" and GAMESTATE:GetCurrentStyle():GetStepsType() ~= "StepsType_Pump_Halfdouble"
Condition = Var "Button" == "Center" and stepstype ~= "StepsType_Pump_Halfdouble"
--InitCommand=cmd(x,96);
},
NOTESKIN:LoadActor("DownLeft", "Outline Receptor") ..
{
Name = "Outline Half",
Condition = Var "Button" == "DownLeft" and GAMESTATE:GetCurrentStyle():GetStepsType() == "StepsType_Pump_Halfdouble"
Condition = Var "Button" == "DownLeft" and stepstype == "StepsType_Pump_Halfdouble"
--InitCommand=cmd(x,96);
},
NOTESKIN:LoadActor(Var "Button", "Ready Receptor") ..
Expand Down

0 comments on commit c8585bb

Please sign in to comment.