Commit 2b288bf8 authored by 18손재민's avatar 18손재민

첫 호패 생성 시 -1냥이 되는 문제 수정

parent 9faf947b
...@@ -289,8 +289,8 @@ var hopaeScene = new Phaser.Class( ...@@ -289,8 +289,8 @@ var hopaeScene = new Phaser.Class(
{ {
if(PlayerData.userData.hopae === undefined || PlayerData.userData.hopae.length == 0 || PlayerData.userData.money > 0) if(PlayerData.userData.hopae === undefined || PlayerData.userData.hopae.length == 0 || PlayerData.userData.money > 0)
{ {
if(!(PlayerData.userData.hopae === undefined || PlayerData.userData.hopae.length == 0))fbClient.updateUserData('money', -1);
fbClient.updateUserData('hopae', {name: Input.inputField.text.text, type: 'wood'}); fbClient.updateUserData('hopae', {name: Input.inputField.text.text, type: 'wood'});
if(!(PlayerData.userData.hopae === undefined || PlayerData.userData.hopae.length == 0)) fbClient.updateUserData('money', -1);
ScenesData.changeScene('menuScene'); ScenesData.changeScene('menuScene');
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment