动画音效补全 & 原始数值

This commit is contained in:
ckcz123 committed 2020-10-18 12:02:48 +08:00
1 parent 0e1f4242d6
commit 8b6ff17c53
9 files changed
+84 -28

No files matched your search

+1 -1
View File
@@ -1571,7 +1571,7 @@ control.prototype._replay_error = function (action) {
control.prototype._replay_drawProgress = function () {
var total = core.status.replay.totalList.length, left = total - core.status.replay.toReplay.length;
var content = '播放进度:' + left + '/' + total + '('+(left/total*100).toFixed(2)+'%)';
var content = '播放进度:' + left + ' / ' + total + '('+(left/total*100).toFixed(2)+'%)';
var width = 26 + core.calWidth('replay', content, "16px Arial");
core.clearMap('replay');
core.fillRect('replay', 0, 0, width, 40, '#000000');
+1 -1
View File
@@ -696,7 +696,7 @@ events.prototype._changeFloor_getHeroLoc = function (floorId, stair, heroLoc) {
heroLoc.x = core.bigmap.width - 1 - core.getHeroLoc('x');
else if (stair == ':symmetry_y')
heroLoc.y = core.bigmap.height - 1 - core.getHeroLoc('y');
// 检查该层地图的 upFloor & downFloor
// 检查该层地图的 upFloor & downFloor & flyPoint
else if (core.status.maps[floorId][stair]) {
heroLoc.x = core.status.maps[floorId][stair][0];
heroLoc.y = core.status.maps[floorId][stair][1];
+17
View File
@@ -2152,6 +2152,8 @@ ui.prototype._drawBookDetail_getInfo = function (index) {
}
ui.prototype._drawBookDetail_getTexts = function (enemy, floorId, texts) {
// --- 原始数值
this._drawBookDetail_origin(enemy, texts);
// --- 模仿临界计算器
this._drawBookDetail_mofang(enemy, texts);
// --- 吸血怪最低生命值
@@ -2162,6 +2164,21 @@ ui.prototype._drawBookDetail_getTexts = function (enemy, floorId, texts) {
this._drawBookDetail_turnAndCriticals(enemy, floorId, texts);
}
ui.prototype._drawBookDetail_origin = function (enemy, texts) {
// 怪物数值和原始值不一样时,在详细信息页显示原始数值
var originEnemy = core.enemys._getCurrentEnemys_getEnemy(enemy.id);
var content = [];
["hp", "atk", "def", "point", "money", "exp"].forEach(function (one) {
if (enemy[one] == null || originEnemy[one] == null) return;
if (enemy[one] != originEnemy[one]) {
content.push(core.getStatusLabel(one) + " " + originEnemy[one]);
}
});
if (content.length > 0) {
texts.push("\r[#FF6A6A]\\d原始数值:\\d\r[]" + content.join(";"));
}
}
ui.prototype._drawBookDetail_mofang = function (enemy, texts) {
// 模仿临界计算器
if (core.enemys.hasSpecial(enemy.special, 10)) {