>>738
To calculate the adjusted damage \( D \), start with this formula:
\[ D = \max(0, \left\lfloor (F - A) \times E \right\rfloor ) \]
Where:
- \( D \) is the adjusted damage.
- \( F \) is the final base damage dealt (including possible critical hits).
- \( A \) is the final defense of the opponent (including possible critical defense).
- \( E \) is the elemental effectiveness factor, which adjusts the damage based on the interaction between attacker’s and defender’s elements.
The elemental effectiveness \( E \) depends on the elements involved and their respective potencies. If one element is strong against another, the effectiveness factor increases; if one element is weak against another, the effectiveness factor decreases. Here’s how it is calculated:
For element interactions:
1. If the attacker’s element is strong against the defender’s element:
\[ E = 1.2 + 0.05 \times (p_1 - p_2) \]
Where \( p_1 \) is the potency of the attacker’s element, and \( p_2 \) is the potency of the defender’s element.
2. If the attacker’s element is weak against the defender’s element:
\[ E = 0.8 - 0.05 \times (p_1 - p_2) \]
3. Otherwise (if there is no specific strength or weakness between the elements or no elements are involved):
\[ E = 1.0 \]
Here are specific examples of element interactions:
- Fire vs Ice: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Ice vs Fire: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Fire vs Water: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Water vs Fire: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Water vs Earth: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Earth vs Water: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Earth vs Air: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Air vs Earth: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Air vs Lightning: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Lightning vs Air: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Lightning vs Water: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Water vs Lightning: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Ice vs Lightning: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- Lightning vs Ice: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Light vs Dark: \( E = 1.2 + 0.05 \times (p_1 - p_2) \)
- Dark vs Light: \( E = 0.8 - 0.05 \times (p_1 - p_2) \)
- If the attacker's element is Dark and the defender has no elemental defense:
\[ E = 1.2 + 0.05 \times (p_1 - 0) \]
In simpler terms, the elemental effectiveness adjusts the damage based on the interaction of elements. Elements have strengths and weaknesses against each other, and this is reflected in the calculation to either amplify or reduce the damage done in battle.
Please let me know if there is an error in my calculation or element/resistance loop, and I will fix it.
探検
どんぐりシステムについて話しましょう ★39
■ このスレッドは過去ログ倉庫に格納されています
751どんぐりキャノン ★ 警備員[Lv.4(前13)][芽警]
2024/05/18(土) 10:27:16.15ID:CAP_USER■ このスレッドは過去ログ倉庫に格納されています
ニュース
- 反撃の中居正広「こんなはずじゃなかった…」受け入れられない性暴力者の烙印 世間に性犯罪者のように見られることに耐えられず★7 [Ailuropoda melanoleuca★]
- 日産 追浜と湘南の2工場閉鎖へ…7工場削減計画 海外はメキシコや南アフリカなど [蚤の市★]
- マンション高層階から「泥団子」投げた小学生を児童相談所へ通告 男性が大けが 熊本県警 [香味焙煎★]
- 24年の出生率、民間試算「過去最低の1.15」 少子化に歯止めかからず ★6 [蚤の市★]
- 反撃の中居正広「こんなはずじゃなかった…」受け入れられない性暴力者の烙印 世間に性犯罪者のように見られることに耐えられず★6 [Ailuropoda melanoleuca★]
- 【芸能】にゃんこスター・アンゴラ村長、初写真集でランジェリーショット公開 昨年はデジタル写真集が異例の大ヒット [湛然★]
- ペヤング超大盛、ごっつ盛り←こういうの普通の人は食べないらしいな
- 【速報】米高騰の犯人、卸業者と判明 備蓄米に7600円上乗せ (22年産は2200~4600円) 打ちこわし始まるぞ… [402859164]
- 「水泳部」「巨乳」「先輩」←あとひとつ要素足して最強にしてくれ
- 【日本仕草】自衛隊事故で「もの」や「遺体」と発言しただけで大臣が謝罪することに😫 [583597859]
- 昨日初めて競輪に賭けてみたんだが
- 服着るのめんどくさいから裸でゴミ捨て行ってきていい?