刚写了个Matlab code,不过既然楼主把计算器都弄出来了,那我就发这吧。没算伊欧菲斯的两点。
Code:
clear all;
close all;
clc;
Dp=25; Da=3; %Defender_power & Defender_armor
Ap=10; Aa=10; %Attacker_power & Attacker_armor
Api=Ap;Dpi=Dp;%record initial power
Death=Ap*Dp;
while Death>0
%A attacks D
DamageToD=Ap;
if Da>0
DamageToD=max(Ap-Da,0);
Da=max(Da-Ap,0)
end
Dp=max(Dp-DamageToD,0)
%D attacks A
DamageToA=Dp;
if Aa>0
DamageToA=max(Dp-Aa,0);
Aa=max(Aa-Dp,0)
end
Ap=max(Ap-DamageToA,0)
%check
Death=Ap*Dp;
end
%when attacker is enemy
Value_enemy=Api+Dpi-Ap-Dp
%when attacker is ally
Value_ally=(Dpi-Dp)-(Api-Ap)
以此为基础,就能画出下面这些图:
令两个敌军决斗(假设均无护甲):横轴为攻击者与防御者战力之比,纵轴为收益与防御者战力之比
令友军与敌军决斗(假设均无护甲):横轴为攻击者与防御者战力之比,纵轴为收益与防御者战力之比
关于塞尔奇克的收益,要算上多站场的塞尔奇克的点数,
假设塞尔奇克7力3甲:横轴为敌军与塞尔奇克战力之比,纵轴为收益,线上的数字为敌军护甲数