Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qwgame
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵国君
qwgame
Commits
beff5956
Commit
beff5956
authored
Apr 02, 2019
by
hxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复查询某地点有什么东西
parent
3225595d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
WorldController.java
...a/com/qiwu/chatbotbackend/processing/WorldController.java
+12
-8
No files found.
src/main/java/com/qiwu/chatbotbackend/processing/WorldController.java
View file @
beff5956
...
...
@@ -163,11 +163,11 @@ public class WorldController {
}
NPCName
=
currentInfoPoint
.
get
(
valuePair
[
1
]).
split
(
":"
,
2
)[
1
];
returnStr
=
gameEnv
.
query
GoodsIntroByGoods
Name
(
NPCName
);
returnStr
=
gameEnv
.
query
NpcIntroByNpc
Name
(
NPCName
);
if
(
returnStr
==
null
)
returnStr
=
DONT_FOUND
;
else
{
returnStr
=
format
.
replace
(
ITEM
_NAME_SLOT
,
NPCName
).
replace
(
ATTR_VALUE_SLOT
,
returnStr
);
returnStr
=
format
.
replace
(
NPC
_NAME_SLOT
,
NPCName
).
replace
(
ATTR_VALUE_SLOT
,
returnStr
);
}
break
;
...
...
@@ -449,9 +449,9 @@ public class WorldController {
format
=
SCRIPT_ITEM_IN_PLACE
;
}
destination
=
currentInfoPoint
.
get
(
valuePair
[
1
]).
split
(
":"
)[
1
];
destination
=
currentInfoPoint
.
get
(
valuePair
[
1
]).
split
(
":"
)[
0
];
sites
=
gameEnv
.
queryAroundGoodsBySite
(
historyInfoPoint
.
get
(
destination
)
);
sites
=
gameEnv
.
queryAroundGoodsBySite
(
destination
);
if
(
sites
==
null
||
sites
.
size
()
==
0
)
returnStr
=
NOTHING_FOUND
;
else
{
...
...
@@ -465,14 +465,14 @@ public class WorldController {
}
}
break
;
case
"queryN
PC
InPlace"
:
case
"queryN
pc
InPlace"
:
format
=
userInfo
.
varInitialMap
.
get
(
"NPC_IN_PLACE"
);
if
(
format
==
null
){
format
=
SCRIPT_NPC_IN_PLACE
;
}
destination
=
currentInfoPoint
.
get
(
valuePair
[
1
]).
split
(
":"
)[
1
];
sites
=
gameEnv
.
queryAroundNpcBySite
(
historyInfoPoint
.
get
(
destination
)
);
destination
=
currentInfoPoint
.
get
(
valuePair
[
1
]).
split
(
":"
)[
0
];
sites
=
gameEnv
.
queryAroundNpcBySite
(
destination
);
if
(
sites
==
null
||
sites
.
size
()
==
0
)
returnStr
=
NOTHING_FOUND
;
else
{
...
...
@@ -495,7 +495,7 @@ public class WorldController {
destination
=
currentInfoPoint
.
get
(
valuePair
[
1
]).
split
(
":"
)[
1
];
sites
=
gameEnv
.
queryAroundAllBySite
(
historyInfoPoint
.
get
(
destination
)
);
sites
=
gameEnv
.
queryAroundAllBySite
(
destination
);
if
(
sites
==
null
||
sites
.
size
()
==
0
)
returnStr
=
NOTHING_FOUND
;
else
{
...
...
@@ -510,6 +510,10 @@ public class WorldController {
}
break
;
default
:
returnStr
=
"error"
;
break
;
}
}
...
...
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