主线:修复章节奖励
This commit is contained in:
@@ -245,7 +245,7 @@ export function getMainChapter(role: RoleType) {
|
||||
let chapterArr: { chapter: number, star: number, warType: number }[] = [];
|
||||
for(let { id, star } of role.warStar ) {
|
||||
let dicWar = gameData.war.get(id);
|
||||
if((dicWar.warType == WAR_TYPE.NORMAL || dicWar.warType == WAR_TYPE.MAIN_ELITE) && star > 0) {
|
||||
if((dicWar && (dicWar.warType == WAR_TYPE.NORMAL || dicWar.warType == WAR_TYPE.MAIN_ELITE)) && star > 0) {
|
||||
let curChapter = chapterArr.find(cur => cur.warType == dicWar.warType && cur.chapter == dicWar.chapter);
|
||||
if(!curChapter) {
|
||||
chapterArr.push({ chapter: dicWar.chapter, star, warType: dicWar.warType });
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
module.exports = {
|
||||
'development': {
|
||||
'connector': [
|
||||
{ 'id': 'connector-server-1', 'port': 4050, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true },
|
||||
{ 'id': 'connector-server-2', 'port': 4051, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true },
|
||||
{ 'id': 'connector-server-3', 'port': 4052, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true },
|
||||
{ 'id': 'connector-server-1', 'port': 4050, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true, "args": " --inspect=9500" },
|
||||
{ 'id': 'connector-server-2', 'port': 4051, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true, "args": " --inspect=9501" },
|
||||
{ 'id': 'connector-server-3', 'port': 4052, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true, "args": " --inspect=9502" },
|
||||
{ 'id': 'connector-server-gm', 'port': 4099, 'clientHost': '127.0.0.1', 'host': '127.0.0.1', 'clientPort': 3099, 'frontend': true, 'isGM': true }
|
||||
],
|
||||
'chat': [
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user