Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
sister-kering
IF3230-Tugas-Besar-Sister-2015
Commits
2822eea3
Commit
2822eea3
authored
Apr 25, 2015
by
Rafi Ramadhan
Browse files
update mix item
parent
fe84012c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server/GrandQuestServer/src/grandquestserver/MethodHandler.java
View file @
2822eea3
...
...
@@ -202,10 +202,11 @@ public class MethodHandler {
String
username
=
session
.
get
(
searchToken
(
token
)).
getUsername
();
Long
item1
=
parse
.
parseIntJSON
(
input
,
"item1"
);
Long
item2
=
parse
.
parseIntJSON
(
input
,
"item2"
);
int
item_id
=
0
;
if
((
db
.
getItem
(
username
,
item1
.
intValue
())
>=
3
)
&&
(
db
.
getItem
(
username
,
item2
.
intValue
())
>=
3
))
{
int
item_id
=
-
999
;
item_id
=
Combine
(
item1
,
item2
);
if
(
item_id
!=
-
999
)
{
db
.
addInventory
(
username
,
item_id
);
db
.
removefromInventory
(
username
,
item1
.
intValue
(),
3
);
db
.
removefromInventory
(
username
,
item2
.
intValue
(),
3
);
...
...
Write
Preview
Supports
Markdown
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