feat: 苍蓝之殿左上角区域

This commit is contained in:
unanmed 2024-09-20 19:29:24 +08:00
parent dcb952f92d
commit 0a9ace7ab2
16 changed files with 157 additions and 48 deletions

View File

@ -5,6 +5,7 @@ public/project/floors/*.js
public/project/items.js public/project/items.js
public/project/floors/*.js public/project/floors/*.js
public/project/maps.js public/project/maps.js
public/project/icons.js
public/_server/**/*.js public/_server/**/*.js
script/**/*.js script/**/*.js
public/editor.html public/editor.html

View File

@ -199,5 +199,9 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E686": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E686": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E687": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E687": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E688": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E688": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E689": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]} "E689": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E690": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E691": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E692": {"name":"苍蓝之灵-圣","hp":150000,"atk":15000,"def":5000,"money":20,"exp":5000,"point":0,"special":[4,28],"paleShield":25},
"E693": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}
} }

View File

@ -41,10 +41,10 @@ main.floors.MT50=
"本区域极大,建议打开小地图游玩。如果打开小地图后打怪出现卡顿,可以尝试在 设置->ui设置 里面打开小地图懒更新设置", "本区域极大,建议打开小地图游玩。如果打开小地图后打怪出现卡顿,可以尝试在 设置->ui设置 里面打开小地图懒更新设置",
"此区域建议多多使用定点查看功能鼠标移动到怪物上按C或E即可打开如果你没有设置自己的快捷键的话。手机端暂时无法定点查看", "此区域建议多多使用定点查看功能鼠标移动到怪物上按C或E即可打开如果你没有设置自己的快捷键的话。手机端暂时无法定点查看",
"打完左下角和右下角的boss之后开四个机关门", "打完左下角和右下角的boss之后开四个机关门",
"注意不要忘记购买装备,到了下一章之后本章的商店将不能到达,快捷商店也会消失。这些装备在下一章都会有向上合成", "注意不要忘记购买装备,到了下一章之后本章的商店将不能到达,不过快捷商店还会保留。这些装备在下一章都会有向上合成",
"建议优先点出学习技能,对于特定场景将会非常有帮助", "建议优先点出学习技能,对于特定场景将会非常有帮助",
"本区域可以使用跳跃技能,不要忘记了。", "本区域可以使用跳跃技能,不要忘记了。",
"注意火炬可通行,而且跳跃时会跳过火炬,不会跳到火炬上。以及由于不可抗力,修改游戏缩放后需要刷新页面才能使光照正常。" "注意火炬可通行,而且跳跃时会跳过火炬,不会跳到火炬上。"
] ]
}, },
"changeFloor": { "changeFloor": {

View File

@ -31,6 +31,13 @@ main.floors.MT83=
7, 7,
14 14
] ]
},
"0,7": {
"floorId": "MT84",
"loc": [
14,
7
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},

View File

@ -1,45 +1,65 @@
main.floors.MT84= main.floors.MT84=
{ {
"floorId": "MT84", "floorId": "MT84",
"title": "苍蓝之殿-左上", "title": "苍蓝之殿-左上",
"name": "84", "name": "84",
"width": 15, "width": 15,
"height": 15, "height": 15,
"canFlyTo": true, "canFlyTo": true,
"canFlyFrom": true, "canFlyFrom": true,
"canUseQuickShop": true, "canUseQuickShop": true,
"cannotViewMap": false, "cannotViewMap": false,
"images": [], "images": [],
"ratio": 8, "ratio": 8,
"defaultGround": "T650", "defaultGround": "T650",
"bgm": "palaceNorth.mp3", "bgm": "palaceNorth.mp3",
"firstArrive": [], "firstArrive": [],
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"beforeBattle": {}, "14,7": {
"afterBattle": {}, "floorId": "MT83",
"afterGetItem": {}, "loc": [
"afterOpenDoor": {}, 0,
"autoEvent": {}, 7
"cannotMove": {}, ]
"cannotMoveIn": {}, }
"map": [ },
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "beforeBattle": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "afterBattle": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "afterGetItem": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "afterOpenDoor": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "autoEvent": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "cannotMove": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "cannotMoveIn": {},
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,648,648,648,648,648,648,648,648,648,648,648,648,648,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,671, 0,491,378, 0,679,648,578, 0, 28,484,658,482,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,648,648,648,648, 0,648, 0,648,648,648,648,658,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,378,648, 0,491,648,491,648,484,648,484, 0,648, 28,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648,232,648,648,538,648,378,648, 28,648,513,648,648, 0,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [648, 0,491,381, 0,648, 0,648, 0,648, 0, 29,484,677,648],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [648,648,648,648,648,648,618,648,682,648,648,648,648,648,648],
[648,466,467,468,695,692,487,648, 0, 0,484, 0,484, 0, 94],
[648,648,648,648,648,648,618,648,682,648,648,648,648,648,648],
[648, 0,491,381, 0,648, 0,648, 0,648, 0, 29,484,677,648],
[648,232,648,648,538,648,376,648, 27,648,513,648,648, 0,648],
[648,376,648, 0,491,648,491,648,484,648,484, 0,648, 27,648],
[648, 0,648,648,648,648, 0,648, 0,648,648,648,648,658,648],
[648,671, 0,491,376, 0,679,648,578, 0, 27,484,658,482,648],
[648,648,648,648,648,648,648,648,648,648,648,648,648,648,648]
], ],
"bgmap": [
],
"fgmap": [
],
"bg2map": [
],
"fg2map": [
]
} }

View File

@ -447,7 +447,11 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"E686": 192, "E686": 192,
"E687": 193, "E687": 193,
"E688": 194, "E688": 194,
"E689": 195 "E689": 195,
"E690": 196,
"E691": 197,
"E692": 198,
"E693": 199
}, },
"enemy48": { "enemy48": {
"angel": 0, "angel": 0,
@ -647,7 +651,11 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"I662": 104, "I662": 104,
"I663": 105, "I663": 105,
"I664": 106, "I664": 106,
"I665": 107 "I665": 107,
"I694": 108,
"I695": 109,
"I696": 110,
"I697": 111
}, },
"autotile": { "autotile": {
"autotile": 0, "autotile": 0,

View File

@ -1269,5 +1269,33 @@ var items_296f5d02_12fd_4166_a7c1_b5e830c9ee3a =
"cls": "items", "cls": "items",
"name": "新物品", "name": "新物品",
"canUseItemEffect": "true" "canUseItemEffect": "true"
},
"I694": {
"cls": "items",
"name": "高级红血瓶",
"canUseItemEffect": "true",
"itemEffect": "core.status.hero.hp += Math.round(10000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))",
"itemEffectTip": ",生命+${Math.round(10000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))}"
},
"I695": {
"cls": "items",
"name": "高级蓝血瓶",
"canUseItemEffect": "true",
"itemEffect": "core.status.hero.hp += Math.round(20000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))",
"itemEffectTip": ",生命+${Math.round(20000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))}"
},
"I696": {
"cls": "items",
"name": "高级绿血瓶",
"canUseItemEffect": "true",
"itemEffect": "core.status.hero.hp += Math.round(40000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))",
"itemEffectTip": ",生命+${Math.round(40000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))}"
},
"I697": {
"cls": "items",
"name": "高级紫血瓶",
"canUseItemEffect": "true",
"itemEffect": "core.status.hero.hp += Math.round(80000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))",
"itemEffectTip": ",生命+${Math.round(80000 * core.status.thisMap.ratio * (1 + Mota.Plugin.require('skillTree_g').getSkillLevel(13) / 50))}"
} }
} }

View File

@ -618,6 +618,14 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"687": {"cls":"enemys","id":"E687"}, "687": {"cls":"enemys","id":"E687"},
"688": {"cls":"enemys","id":"E688"}, "688": {"cls":"enemys","id":"E688"},
"689": {"cls":"enemys","id":"E689"}, "689": {"cls":"enemys","id":"E689"},
"690": {"cls":"enemys","id":"E690"},
"691": {"cls":"enemys","id":"E691"},
"692": {"cls":"enemys","id":"E692"},
"693": {"cls":"enemys","id":"E693"},
"694": {"cls":"items","id":"I694"},
"695": {"cls":"items","id":"I695"},
"696": {"cls":"items","id":"I696"},
"697": {"cls":"items","id":"I697"},
"20032": {"cls":"tileset","id":"X20032","cannotOut":["up","left"],"cannotIn":["up","left"]}, "20032": {"cls":"tileset","id":"X20032","cannotOut":["up","left"],"cannotIn":["up","left"]},
"20033": {"cls":"tileset","id":"X20033","cannotOut":["up"],"cannotIn":["up"]}, "20033": {"cls":"tileset","id":"X20033","cannotOut":["up"],"cannotIn":["up"]},
"20034": {"cls":"tileset","id":"X20034","cannotOut":["up","right"],"cannotIn":["up","right"]}, "20034": {"cls":"tileset","id":"X20034","cannotOut":["up","right"],"cannotIn":["up","right"]},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 KiB

After

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -125,6 +125,10 @@ export namespace BluePalace {
{ fx: 5, fy: 3, dir: 'left', tx: 9, ty: 3, toDir: 'right' }, { fx: 5, fy: 3, dir: 'left', tx: 9, ty: 3, toDir: 'right' },
{ fx: 2, fy: 2, dir: 'up', tx: 2, ty: 12, toDir: 'down' }, { fx: 2, fy: 2, dir: 'up', tx: 2, ty: 12, toDir: 'down' },
{ fx: 12, fy: 2, dir: 'up', tx: 12, ty: 12, toDir: 'down' } { fx: 12, fy: 2, dir: 'up', tx: 12, ty: 12, toDir: 'down' }
],
MT84: [
{ fx: 2, fy: 3, dir: 'right', tx: 12, ty: 3, toDir: 'left' },
{ fx: 2, fy: 11, dir: 'right', tx: 12, ty: 11, toDir: 'left' }
] ]
}; };
loading.once('coreInit', initPortals); loading.once('coreInit', initPortals);

View File

@ -227,7 +227,7 @@ export class FloorItemDetail implements ILayerGroupRenderExtends {
for (const [key, value] of Object.entries(diff)) { for (const [key, value] of Object.entries(diff)) {
if (!value) continue; if (!value) continue;
const color = FloorItemDetail.detailColor[key] ?? '#fff'; const color = FloorItemDetail.detailColor[key] ?? '#fff';
const text = Math.floor(value).toString(); const text = core.formatBigNumber(value, 4);
const renderable: DamageRenderable = { const renderable: DamageRenderable = {
x: x * this.sprite.cellSize + 2, x: x * this.sprite.cellSize + 2,
y: y * this.sprite.cellSize + 31 - n * 10, y: y * this.sprite.cellSize + 31 - n * 10,

View File

@ -44,7 +44,8 @@ export const jumpIgnoreFloor: FloorIds[] = [
'MT72', 'MT72',
'MT73', 'MT73',
'MT74', 'MT74',
'MT75' 'MT75',
'MT84'
]; ];
// 跳跃 // 跳跃
export function jumpSkill() { export function jumpSkill() {

8
src/source/cls.d.ts vendored
View File

@ -617,6 +617,14 @@ interface IdToCls {
E687: 'enemys'; E687: 'enemys';
E688: 'enemys'; E688: 'enemys';
E689: 'enemys'; E689: 'enemys';
E690: 'enemys';
E691: 'enemys';
E692: 'enemys';
E693: 'enemys';
I694: 'items';
I695: 'items';
I696: 'items';
I697: 'items';
X20032: 'tileset'; X20032: 'tileset';
X20033: 'tileset'; X20033: 'tileset';
X20034: 'tileset'; X20034: 'tileset';

View File

@ -191,4 +191,8 @@ interface ItemDeclaration {
I663: 'equips'; I663: 'equips';
I664: 'items'; I664: 'items';
I665: 'items'; I665: 'items';
I694: 'items';
I695: 'items';
I696: 'items';
I697: 'items';
} }

16
src/source/maps.d.ts vendored
View File

@ -617,6 +617,14 @@ interface IdToNumber {
E687: 687; E687: 687;
E688: 688; E688: 688;
E689: 689; E689: 689;
E690: 690;
E691: 691;
E692: 692;
E693: 693;
I694: 694;
I695: 695;
I696: 696;
I697: 697;
X20032: 20032; X20032: 20032;
X20033: 20033; X20033: 20033;
X20034: 20034; X20034: 20034;
@ -1319,6 +1327,14 @@ interface NumberToId {
687: 'E687'; 687: 'E687';
688: 'E688'; 688: 'E688';
689: 'E689'; 689: 'E689';
690: 'E690';
691: 'E691';
692: 'E692';
693: 'E693';
694: 'I694';
695: 'I695';
696: 'I696';
697: 'I697';
20032: 'X20032'; 20032: 'X20032';
20033: 'X20033'; 20033: 'X20033';
20034: 'X20034'; 20034: 'X20034';