明日方舟Boss自适应反应装甲机制的数学建模与伤害计算
2020-04-20 06:12
本范例基于游戏《明日方舟》中的Boss自适应反应装甲机制,利用指数函数、对数函数、线性函数及积分等数学工具,对不同装甲类型下的单次伤害与总承伤进行数值建模。通过调节初始装甲、受击提升倍率、攻击力等参数,直观演示并对比各类自适应装甲在连续攻击下的伤害衰减与总有效伤害变化,展示了函数与微积分在游戏数值设计中的应用。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.574.0" app="classic" platform="w" id="E14D793B-48CD-4FC5-8B05-D695515B09CC" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1847" height="873" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.16459122902003248" orientation="1" />
</panes>
<views>
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 51 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 | 1009 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1,1" size="531" window="100,100,700,550" />
<view id="1" visible="true" inframe="false" stylebar="false" location="1" size="1535" window="100,100,600,400" />
<view id="2" visible="true" inframe="false" stylebar="true" location="3" size="304" window="100,100,600,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="300" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="300" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="128" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="900" window="50,50,500,500" />
<view id="43" visible="false" inframe="false" stylebar="false" location="1" size="450" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 77 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="1"/>
<font size="16"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="1534" height="819"/>
<coordSystem xZero="370.78545097216033" yZero="558.7929043709315" scale="1.784593454617512" yscale="0.5292199685037144"/>
<evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<algebraView>
<mode val="3"/>
</algebraView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="13"/>
<angleUnit val="degree"/>
<algebraStyle val="3" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2" max="2" step="1"/>
<scripting blocked="false" disabled="false"/>
<construction title="明日方舟boss _應激反應裝甲_2.0" author="" date="">
<element type="numeric" label="初始裝甲">
<value val="200"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="1000" absoluteScreenLocation="true" width="200" x="1242" y="105" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="每次受擊裝甲提升倍率">
<value val="0.005"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="0.05" absoluteScreenLocation="true" width="200" x="1244" y="169" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.0001" speed="1" type="0" playing="false"/>
</element>
<expression label="指數自適應裝甲" exp="指數自適應裝甲(t) = (初始裝甲 * (1 + 每次受擊裝甲提升倍率)^(t))" />
<element type="function" label="指數自適應裝甲">
<show object="true" label="true" ev="4"/>
<objColor r="46" g="125" b="50" alpha="0"/>
<layer val="0"/>
<labelOffset x="-17" y="1"/>
<labelMode val="9"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="204"/>
</element>
<command name="Point">
<input a0="指數自適應裝甲"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="true" label="true" ev="4"/>
<objColor r="21" g="101" b="192" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="535.5370542638319" y="2890.9216936192174" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="numeric" label="bossHPmax">
<value val="200000"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="200000" absoluteScreenLocation="true" width="200" x="1252" y="373" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="擊發子彈數量">
<value val="335"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="2000" absoluteScreenLocation="true" width="200" x="1255" y="319" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="10" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="能天使攻擊力">
<value val="781"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="5000" absoluteScreenLocation="true" width="200" x="1251" y="234" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<expression label="指數自適應裝甲單次傷害" exp="指數自適應裝甲單次傷害(t) = If[能天使攻擊力 - 指數自適應裝甲(t) > (0.05 * 能天使攻擊力), 能天使攻擊力 - 指數自適應裝甲(t), (0.05 * 能天使攻擊力)]" />
<element type="function" label="指數自適應裝甲單次傷害">
<show object="true" label="true" ev="4"/>
<objColor r="101" g="87" b="210" alpha="0"/>
<layer val="0"/>
<labelOffset x="-42" y="53"/>
<labelMode val="0"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="204"/>
</element>
<command name="Integral">
<input a0="指數自適應裝甲單次傷害" a1="0" a2="擊發子彈數量"/>
<output a0="指數自適應裝甲總承傷"/>
</command>
<element type="numeric" label="指數自適應裝甲總承傷">
<value val="99440.95154029367"/>
<show object="true" label="true"/>
<objColor r="21" g="101" b="192" alpha="0.09"/>
<layer val="0"/>
<labelOffset x="-46" y="-50"/>
<labelMode val="1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<command name="Point">
<input a0="指數自適應裝甲單次傷害"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="false" label="true"/>
<objColor r="21" g="101" b="192" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="768.2506231411439" y="39.050000000000004" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="numeric" label="boss單次受擊回血">
<value val="100"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="500" absoluteScreenLocation="true" width="200" x="1262" y="443" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<expression label="總有效傷害" exp="y = 指數自適應裝甲總承傷 - (boss單次受擊回血 * 擊發子彈數量)" type="line" />
<element type="line" label="總有效傷害">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelOffset x="21" y="-24"/>
<labelMode val="1"/>
<fixed val="true"/>
<coords x="0" y="1" z="-65940.95154029367"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<eqnStyle style="explicit"/>
</element>
<command name="Integral">
<input a0="能天使攻擊力 - 初始裝甲" a1="0" a2="擊發子彈數量"/>
<output a0="非自適應裝甲承傷"/>
</command>
<element type="numeric" label="非自適應裝甲承傷">
<value val="194635"/>
<show object="true" label="true"/>
<objColor r="128" g="128" b="128" alpha="0.08"/>
<layer val="0"/>
<labelOffset x="9" y="-80"/>
<labelMode val="1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<expression label="對數自適應裝甲" exp="對數自適應裝甲(x) = (5 * log(1 + 每次受擊裝甲提升倍率, (x + 200) / 初始裝甲)) + 200" />
<element type="function" label="對數自適應裝甲">
<show object="true" label="true" ev="4"/>
<objColor r="164" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-25" y="-54"/>
<labelMode val="1"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="204"/>
</element>
<expression label="對數自適應裝甲單次傷害" exp="對數自適應裝甲單次傷害(x) = If[能天使攻擊力 - 對數自適應裝甲(x) > (0.05 * 能天使攻擊力), 能天使攻擊力 - 對數自適應裝甲(x), (0.05 * 能天使攻擊力)]" />
<element type="function" label="對數自適應裝甲單次傷害">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-19" y="78"/>
<labelMode val="0"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
</element>
<command name="Integral">
<input a0="對數自適應裝甲單次傷害" a1="0" a2="擊發子彈數量"/>
<output a0="對數自適應裝甲總承傷"/>
</command>
<element type="numeric" label="對數自適應裝甲總承傷">
<value val="48457.19610356283"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.25"/>
<layer val="0"/>
<labelOffset x="-79" y="14"/>
<labelMode val="1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<expression label="線性自適應裝甲" exp="線性自適應裝甲(x) = 初始裝甲 + ((500 * 每次受擊裝甲提升倍率) * x)" />
<element type="function" label="線性自適應裝甲">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="85" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="45" y="-62"/>
<labelMode val="1"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="204"/>
</element>
<expression label="線性自適應裝甲單次傷害" exp="線性自適應裝甲單次傷害(x) = If[能天使攻擊力 - 線性自適應裝甲(x) > (0.05 * 能天使攻擊力), 能天使攻擊力 - 線性自適應裝甲(x), (0.05 * 能天使攻擊力)]" />
<element type="function" label="線性自適應裝甲單次傷害">
<show object="true" label="true" ev="4"/>
<objColor r="153" g="102" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-21" y="39"/>
<labelMode val="0"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="204"/>
</element>
<command name="Integral">
<input a0="線性自適應裝甲單次傷害" a1="0" a2="擊發子彈數量"/>
<output a0="線性自適應裝甲總承傷"/>
</command>
<element type="numeric" label="線性自適應裝甲總承傷">
<value val="71823.71049997507"/>
<show object="true" label="true"/>
<objColor r="153" g="102" b="0" alpha="0.1"/>
<layer val="0"/>
<labelOffset x="-53" y="-17"/>
<labelMode val="1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
</construction>
</geogebra>