Shield durability/zh: Difference between revisions

Created page with "* 林克在盾牌上滑行的時候,一個計時器(和盾綁定)會紀錄滑行的時間。 * 如果林克在「光滑的表面」滑行''或''滑行的速度小於 0.0..."
(Created page with "這個 gist 裡有原始碼<ref>{{addr|a=0x71002CEAF4|ver=nx-1.5.0}}: https://gist.github.com/leoetlino/34a2ce6273f7cfcbbabceda24d19aa5d</ref>(很長所以不放在這裡)...")
(Created page with "* 林克在盾牌上滑行的時候,一個計時器(和盾綁定)會紀錄滑行的時間。 * 如果林克在「光滑的表面」滑行''或''滑行的速度小於 0.0...")
Line 31: Line 31:
這個 gist 裡有原始碼<ref>{{addr|a=0x71002CEAF4|ver=nx-1.5.0}}: https://gist.github.com/leoetlino/34a2ce6273f7cfcbbabceda24d19aa5d</ref>(很長所以不放在這裡),總結邏輯如下:
這個 gist 裡有原始碼<ref>{{addr|a=0x71002CEAF4|ver=nx-1.5.0}}: https://gist.github.com/leoetlino/34a2ce6273f7cfcbbabceda24d19aa5d</ref>(很長所以不放在這裡),總結邏輯如下:


* Whenever Link is shield surfing, a timer (which is tied to the shield) is incremented.
* 林克在盾牌上滑行的時候,一個計時器(和盾綁定)會紀錄滑行的時間。
* If Link is surfing on a "no shield damage floor", '''or''' if the L2 norm of his velocity is lower than 0.03, then the shield takes no damage.
* 如果林克在「光滑的表面」滑行''''滑行的速度小於 0.03,則不扣耐用度。
* Otherwise, every time the timer reaches ShieldRideBaseFrame (as configured in [[GlobalParameter]]), the shield takes <code>RideBreakRatio * ShieldRideHitBaseDamage * Damage</code> and the timer is reset.
* 否則,每當計時器計到 ShieldRideBaseFrame (as configured in [[GlobalParameter]]) 這個數字時,盾牌的耐用度就會減少 <code>RideBreakRatio * ShieldRideHitBaseDamage * Damage</code> 這麼多點,然後計時器歸零。


In 1.6.0:
In 1.6.0:
translator
745

edits