Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
9 years ago
Diff never expires
Clear
Export
Share
Explain
0 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
13 lines
Copy
1 addition
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
13 lines
Copy
int32_t WeaponMelee::getElementDamage(const Player* player, const Creature*, const Item* item) const
int32_t WeaponMelee::getElementDamage(const Player* player, const Creature*, const Item* item) const
{
{
if (elementType == COMBAT_NONE) {
if (elementType == COMBAT_NONE) {
return 0;
return 0;
}
}
int32_t attackSkill = player->getWeaponSkill(item);
int32_t attackSkill = player->getWeaponSkill(item);
int32_t attackValue = elementDamage;
int32_t attackValue = elementDamage;
float attackFactor = player->getAttackFactor();
float attackFactor = player->getAttackFactor();
Copy
Copied
Copy
Copied
int32_t maxValue = Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor
);
int32_t maxValue = Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor
, player->getPassiveDamageBonus()
);
return -normal_random(0, static_cast<int32_t>(maxValue * player->getVocation()->meleeDamageMultiplier));
return -normal_random(0, static_cast<int32_t>(maxValue * player->getVocation()->meleeDamageMultiplier));
}
}
Saved diffs
Original text
Open file
int32_t WeaponMelee::getElementDamage(const Player* player, const Creature*, const Item* item) const { if (elementType == COMBAT_NONE) { return 0; } int32_t attackSkill = player->getWeaponSkill(item); int32_t attackValue = elementDamage; float attackFactor = player->getAttackFactor(); int32_t maxValue = Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor); return -normal_random(0, static_cast<int32_t>(maxValue * player->getVocation()->meleeDamageMultiplier)); }
Changed text
Open file
int32_t WeaponMelee::getElementDamage(const Player* player, const Creature*, const Item* item) const { if (elementType == COMBAT_NONE) { return 0; } int32_t attackSkill = player->getWeaponSkill(item); int32_t attackValue = elementDamage; float attackFactor = player->getAttackFactor(); int32_t maxValue = Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor, player->getPassiveDamageBonus()); return -normal_random(0, static_cast<int32_t>(maxValue * player->getVocation()->meleeDamageMultiplier)); }
Find difference