Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
9 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
0 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
31 行
すべてコピー
1 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
31 行
すべてコピー
int32_t WeaponDistance::getWeaponDamage(const Player* player, const Creature* target, const Item* item, bool maxDamage /*= false*/) const
int32_t WeaponDistance::getWeaponDamage(const Player* player, const Creature* target, const Item* item, bool maxDamage /*= false*/) const
{
{
int32_t attackValue = item->getAttack();
int32_t attackValue = item->getAttack();
if (item->getWeaponType() == WEAPON_AMMO) {
if (item->getWeaponType() == WEAPON_AMMO) {
Item* weapon = player->getWeapon(true);
Item* weapon = player->getWeapon(true);
if (weapon) {
if (weapon) {
attackValue += weapon->getAttack();
attackValue += weapon->getAttack();
}
}
}
}
int32_t attackSkill = player->getSkillLevel(SKILL_DISTANCE);
int32_t attackSkill = player->getSkillLevel(SKILL_DISTANCE);
float attackFactor = player->getAttackFactor();
float attackFactor = player->getAttackFactor();
コピー
コピー済み
コピー
コピー済み
int32_t maxValue = static_cast<int32_t>(Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor
) * player->getVocation()->distDamageMultiplier);
int32_t maxValue = static_cast<int32_t>(Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor
, player->getPassiveDamageBonus()
) * player->getVocation()->distDamageMultiplier);
if (maxDamage) {
if (maxDamage) {
return -maxValue;
return -maxValue;
}
}
int32_t minValue;
int32_t minValue;
if (target) {
if (target) {
if (target->getPlayer()) {
if (target->getPlayer()) {
minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.1));
minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.1));
} else {
} else {
minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.2));
minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.2));
}
}
} else {
} else {
minValue = 0;
minValue = 0;
}
}
return -normal_random(minValue, maxValue);
return -normal_random(minValue, maxValue);
}
}
保存された差分
原文
ファイルを開く
int32_t WeaponDistance::getWeaponDamage(const Player* player, const Creature* target, const Item* item, bool maxDamage /*= false*/) const { int32_t attackValue = item->getAttack(); if (item->getWeaponType() == WEAPON_AMMO) { Item* weapon = player->getWeapon(true); if (weapon) { attackValue += weapon->getAttack(); } } int32_t attackSkill = player->getSkillLevel(SKILL_DISTANCE); float attackFactor = player->getAttackFactor(); int32_t maxValue = static_cast<int32_t>(Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor) * player->getVocation()->distDamageMultiplier); if (maxDamage) { return -maxValue; } int32_t minValue; if (target) { if (target->getPlayer()) { minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.1)); } else { minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.2)); } } else { minValue = 0; } return -normal_random(minValue, maxValue); }
変更されたテキスト
ファイルを開く
int32_t WeaponDistance::getWeaponDamage(const Player* player, const Creature* target, const Item* item, bool maxDamage /*= false*/) const { int32_t attackValue = item->getAttack(); if (item->getWeaponType() == WEAPON_AMMO) { Item* weapon = player->getWeapon(true); if (weapon) { attackValue += weapon->getAttack(); } } int32_t attackSkill = player->getSkillLevel(SKILL_DISTANCE); float attackFactor = player->getAttackFactor(); int32_t maxValue = static_cast<int32_t>(Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor, player->getPassiveDamageBonus()) * player->getVocation()->distDamageMultiplier); if (maxDamage) { return -maxValue; } int32_t minValue; if (target) { if (target->getPlayer()) { minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.1)); } else { minValue = static_cast<int32_t>(std::ceil(player->getLevel() * 0.2)); } } else { minValue = 0; } return -normal_random(minValue, maxValue); }
違いを見つける