map: add arrow id
This commit is contained in:
parent
f6a138b57f
commit
eee40297d8
13
libs/maps.js
13
libs/maps.js
@ -78,11 +78,7 @@ maps.prototype.getBlock = function (x, y, id) {
|
|||||||
if (id == 12) tmp.event = {'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}; // 毒网
|
if (id == 12) tmp.event = {'cls': 'animates', 'id': 'poisonNet', 'noPass': false, 'trigger': 'passNet'}; // 毒网
|
||||||
if (id == 13) tmp.event = {'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}; // 衰网
|
if (id == 13) tmp.event = {'cls': 'animates', 'id': 'weakNet', 'noPass': false, 'trigger': 'passNet'}; // 衰网
|
||||||
if (id == 14) tmp.event = {'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}; // 咒网
|
if (id == 14) tmp.event = {'cls': 'animates', 'id': 'curseNet', 'noPass': false, 'trigger': 'passNet'}; // 咒网
|
||||||
// 单向行走箭头
|
|
||||||
if (id == 15) tmp.event = {'cls': 'terrains', 'id': 'arrowUp','noPass': false}; // 上行箭头
|
|
||||||
if (id == 16) tmp.event = {'cls': 'terrains', 'id': 'arrowLeft','noPass': false}; // 左行箭头
|
|
||||||
if (id == 17) tmp.event = {'cls': 'terrains', 'id': 'arrowDown','noPass': false}; // 下行箭头
|
|
||||||
if (id == 18) tmp.event = {'cls': 'terrains', 'id': 'arrowRight','noPass': false}; // 右行箭头
|
|
||||||
// 21-80 物品
|
// 21-80 物品
|
||||||
if (id == 21) tmp.event = {'cls': 'items', 'id': 'yellowKey'}; // 黄钥匙
|
if (id == 21) tmp.event = {'cls': 'items', 'id': 'yellowKey'}; // 黄钥匙
|
||||||
if (id == 22) tmp.event = {'cls': 'items', 'id': 'blueKey'}; // 蓝钥匙
|
if (id == 22) tmp.event = {'cls': 'items', 'id': 'blueKey'}; // 蓝钥匙
|
||||||
@ -161,6 +157,13 @@ maps.prototype.getBlock = function (x, y, id) {
|
|||||||
if (id == 131) tmp.event = {'cls': 'npcs', 'id': 'blueShop'};
|
if (id == 131) tmp.event = {'cls': 'npcs', 'id': 'blueShop'};
|
||||||
if (id == 132) tmp.event = {'cls': 'npcs', 'id': 'princess'};
|
if (id == 132) tmp.event = {'cls': 'npcs', 'id': 'princess'};
|
||||||
|
|
||||||
|
// 161-200 其他(单向箭头、灯、箱子等等)
|
||||||
|
if (id == 161) tmp.event = {'cls': 'terrains', 'id': 'up'}; // 单向上箭头
|
||||||
|
if (id == 162) tmp.event = {'cls': 'terrains', 'id': 'down'}; // 单向下箭头
|
||||||
|
if (id == 163) tmp.event = {'cls': 'terrains', 'id': 'left'}; // 单向左箭头
|
||||||
|
if (id == 164) tmp.event = {'cls': 'terrains', 'id': 'right'}; // 单向右箭头
|
||||||
|
if (id == 165) tmp.event = {'cls': 'terrains', 'id': 'light', 'trigger': 'changeLight', 'noPass': false}; // 灯
|
||||||
|
if (id == 166) tmp.event = {'cls': 'terrains', 'id': 'darkLight', 'noPass': true}; // 暗灯
|
||||||
|
|
||||||
// 201-300 怪物
|
// 201-300 怪物
|
||||||
if (id == 201) tmp.event = {'cls': 'enemys', 'id': 'greenSlime'};
|
if (id == 201) tmp.event = {'cls': 'enemys', 'id': 'greenSlime'};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user