Window_SrpgPrediction.prototype.drawContents = function() {
var windowWidth = this.windowWidth();
var lineHeight = this.lineHeight();
var x = 40;
// 攻撃側
var actor = this._actionArray[1];
var target = this._targetArray[1];
var action = actor.currentAction();
var damage = action.srpgPredictionDamage(target);
var hit = action.itemHit(target);
var eva = action.itemEva(target);
this.drawSrpgBattleActionName(actor, action, windowWidth / 2 + x, lineHeight * 0, true);
this.drawSrpgBattleHit(hit, eva, windowWidth / 2 + x, lineHeight * 1);
this.drawSrpgBattleDistance(actor, action, windowWidth / 2 + 160 + x, lineHeight * 1);
this.drawSrpgBattleDamage(damage, windowWidth / 2 + x, lineHeight * 2);
// 迎撃側
var actor = this._targetArray[1];
var target = this._actionArray[1];
var action = actor.currentAction();
if (!this._targetArray[1].canUse(action.item())) {
action = null;
}
if (!action || actor == target) {
this.drawSrpgBattleActionName(actor, action, x, lineHeight * 0, false);
return;
}
var damage = action.srpgPredictionDamage(target);
var hit = action.itemHit(target);
var eva = action.itemEva(target);
this.drawSrpgBattleActionName(actor, action, x, lineHeight * 0, true);
this.drawSrpgBattleHit(hit, eva, x, lineHeight * 1);
this.drawSrpgBattleDistance(actor, action, 160 + x, lineHeight * 1);
this.drawSrpgBattleDamage(damage, x, lineHeight * 2);
this._targetArray[1].clearActions();