Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sejong25
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Tear of Sejong
sejong25
Commits
6c7405b3
Commit
6c7405b3
authored
5 years ago
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
호패 생성시 돈 안쓰는 버그, 강호패가 단어 공간에 나타나는 버그 수정 및 획득 엽전 수치 조정
parent
e1bc4116
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Client.js
js/Client.js
+1
-4
ScenesData.js
js/ScenesData.js
+1
-1
No files found.
js/Client.js
View file @
6c7405b3
...
...
@@ -393,7 +393,6 @@ socket.on('attackSucceed', function(msg)
{
//console.log('client');
let
tempWord
=
WordSpace
.
generateWord
.
Name
(
ScenesData
.
gameScene
,
true
,
RoomData
.
findPlayer
(
msg
.
victimId
));
tempWord
.
instantiate
(
ScenesData
.
gameScene
);
let
victimPos
=
RoomData
.
findPlayer
(
msg
.
victimId
).
position
;
tempWord
.
physicsObj
.
setPosition
(
victimPos
.
x
,
victimPos
.
y
);
tempWord
.
wordObj
.
setPosition
(
tempWord
.
physicsObj
.
x
,
tempWord
.
physicsObj
.
y
);
...
...
@@ -417,10 +416,9 @@ var gameEndMenu = function(isWin)
let
earnedMoney
=
0
;
if
(
isWin
)
earnedMoney
+=
20
;
earnedMoney
+=
RoomData
.
myself
.
killCount
*
3
;
earnedMoney
+=
parseInt
(
WordSpace
.
playerTyping
/
1
0
);
earnedMoney
+=
parseInt
(
WordSpace
.
playerTyping
/
4
0
);
earnedMoney
+=
Math
.
max
(
20
,
Math
.
pow
(
RoomData
.
myself
.
attackSucceed
,
2
));
earnedMoney
+=
parseInt
(
20
*
(
1
-
(
RoomData
.
myself
.
rank
-
1
)
/
(
RoomData
.
players
.
length
-
1
)));
earnedMoney
=
parseInt
(
earnedMoney
/
40
);
Input
.
inputField
.
text
.
destroy
();
...
...
@@ -432,7 +430,6 @@ var gameEndMenu = function(isWin)
ScenesData
.
changeScene
(
'
menuScene
'
);
}
ScenesData
.
gameScene
.
backToMenuDialog
=
ScenesData
.
gameScene
.
rexUI
.
add
.
dialog
({
x
:
game
.
config
.
width
/
2
,
y
:
game
.
config
.
height
/
2
,
...
...
This diff is collapsed.
Click to expand it.
js/ScenesData.js
View file @
6c7405b3
...
...
@@ -291,7 +291,7 @@ var hopaeScene = new Phaser.Class(
if
(
PlayerData
.
userData
.
hopae
===
undefined
||
PlayerData
.
userData
.
hopae
.
length
==
0
||
PlayerData
.
userData
.
money
>
0
)
{
fbClient
.
updateUserData
(
'
hopae
'
,
{
name
:
Input
.
inputField
.
text
.
text
,
type
:
'
wood
'
});
if
(
PlayerData
.
userData
.
hopae
===
undefined
||
PlayerData
.
userData
.
hopae
.
length
==
0
)
fbClient
.
updateUserData
(
'
money
'
,
-
1
);
if
(
!
(
PlayerData
.
userData
.
hopae
===
undefined
||
PlayerData
.
userData
.
hopae
.
length
==
0
)
)
fbClient
.
updateUserData
(
'
money
'
,
-
1
);
ScenesData
.
changeScene
(
'
menuScene
'
);
}
else
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment