diff --git a/client/src/components/game.construct.jsx b/client/src/components/game.construct.jsx index 347b4511..9a9c9e90 100644 --- a/client/src/components/game.construct.jsx +++ b/client/src/components/game.construct.jsx @@ -89,7 +89,6 @@ const addState = connect( animText, gameSkillInfo, itemInfo, - tutorialGame, } = state; function selectSkillTarget(targetConstructId) { @@ -109,7 +108,6 @@ const addState = connect( selectSkillTarget, gameSkillInfo, itemInfo, - tutorialGame, }; }, @@ -118,11 +116,7 @@ const addState = connect( dispatch(actions.setGameEffectInfo(info)); } - function setTutorialGameClear(activeSkill, tutorialGame) { - if (activeSkill && tutorialGame) dispatch(actions.setTutorialGame(null)); - } - - return { setGameEffectInfo, setTutorialGameClear }; + return { setGameEffectInfo }; } ); @@ -157,7 +151,6 @@ class GameConstruct extends preact.Component { if (newProps.animating !== this.props.animating) return true; if (newProps.construct !== this.props.construct) return true; if (newProps.player !== this.props.player) return true; - if (newProps.tutorialGame !== this.props.tutorialGame) return true; if (newProps.gameSkillInfo !== this.props.gameSkillInfo) return true; return false; } @@ -171,14 +164,12 @@ class GameConstruct extends preact.Component { animating, construct, player, - tutorialGame, gameSkillInfo, // Constants i, itemInfo, // Functions selectSkillTarget, - setTutorialGameClear, setGameEffectInfo, } = this.props; @@ -233,7 +224,6 @@ class GameConstruct extends preact.Component {