diff options
author | mathiascode <mathiascode@users.noreply.github.com> | 2016-12-19 17:08:19 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-12-19 17:08:19 +0100 |
commit | efc7fed05b4800289cc644fbdeff18fe6cdd2a96 (patch) | |
tree | 237ef6d66aa2a8073c5d4200dde81f73a7727f6c /src/Entities | |
parent | Reverted temporary redirect to LuaAPI docs (#3487) (diff) | |
download | cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.gz cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.bz2 cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.lz cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.xz cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.zst cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 8 | ||||
-rw-r--r-- | src/Entities/Player.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 48d07fbbc..d155d9d9d 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -674,7 +674,7 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) int cEntity::GetRawDamageAgainst(const cEntity & a_Receiver) { // Returns the hitpoints that this pawn can deal to a_Receiver using its equipped items - // Ref: http://www.minecraftwiki.net/wiki/Damage#Dealing_damage as of 2012_12_20 + // Ref: http://minecraft.gamepedia.com/Damage#Dealing_damage as of 2012_12_20 switch (this->GetEquippedWeapon().m_ItemType) { case E_ITEM_WOODEN_SWORD: return 4; @@ -711,7 +711,7 @@ int cEntity::GetRawDamageAgainst(const cEntity & a_Receiver) bool cEntity::ArmorCoversAgainst(eDamageType a_DamageType) { - // Ref.: http://www.minecraftwiki.net/wiki/Armor#Effects as of 2012_12_20 + // Ref.: http://minecraft.gamepedia.com/Armor#Effects as of 2012_12_20 switch (a_DamageType) { case dtOnFire: @@ -761,7 +761,7 @@ int cEntity::GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_Dama } // Add up all armor points: - // Ref.: http://www.minecraftwiki.net/wiki/Armor#Defense_points as of 2012_12_20 + // Ref.: http://minecraft.gamepedia.com/Armor#Defense_points as of 2012_12_20 int ArmorValue = 0; switch (GetEquippedHelmet().m_ItemType) { @@ -797,7 +797,7 @@ int cEntity::GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_Dama } // TODO: Special armor cases, such as wool, saddles, dog's collar - // Ref.: http://www.minecraftwiki.net/wiki/Armor#Mob_armor as of 2012_12_20 + // Ref.: http://minecraft.gamepedia.com/Armor#Mob_armor as of 2012_12_20 // Now ArmorValue is in [0, 20] range, which corresponds to [0, 80%] protection. Calculate the hitpoints from that: return a_Damage * (ArmorValue * 4) / 100; diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index ce3b8b195..f3ea45cf4 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2316,7 +2316,7 @@ void cPlayer::TickBurning(cChunk & a_Chunk) void cPlayer::HandleFood(void) { - // Ref.: http://www.minecraftwiki.net/wiki/Hunger + // Ref.: http://minecraft.gamepedia.com/Hunger if (IsGameModeCreative() || IsGameModeSpectator()) { |