From ebeb164d2be6754908a9c562850e585f18f70b88 Mon Sep 17 00:00:00 2001 From: Spongecade Date: Wed, 27 Sep 2023 13:07:42 -0500 Subject: Update Minecraft Wiki links to new domain (#5532) * Update Minecraft Wiki links to new domain * Added Spongecade to contributors * Sorted Spongecade --- src/Entities/Entity.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Entities/Entity.cpp') diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 4d61a5744..26ee7ed6f 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -442,7 +442,7 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) bool MagicalCriticalHit = false; // IsOnGround() only is false if the player is moving downwards - // Ref: https://minecraft.gamepedia.com/Damage#Critical_Hits + // Ref: https://minecraft.wiki/w/Damage#Critical_Hits if (!Player->IsOnGround()) { if ((a_TDI.DamageType == dtAttack) || (a_TDI.DamageType == dtArrowAttack)) @@ -501,7 +501,7 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) // The duration of the effect is a random value between 1 and 1.5 seconds at level I, // increasing the max duration by 0.5 seconds each level. - // Ref: https://minecraft.gamepedia.com/Enchanting#Bane_of_Arthropods + // Ref: https://minecraft.wiki/w/Enchanting#Bane_of_Arthropods int Duration = 20 + GetRandomProvider().RandInt(BaneOfArthropodsLevel * 10); // Duration in ticks. Monster->AddEntityEffect(cEntityEffect::effSlowness, Duration, 4); @@ -614,7 +614,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: https://minecraft.gamepedia.com/Damage#Dealing_damage as of 2012_12_20 + // Ref: https://minecraft.wiki/w/Damage#Dealing_damage as of 2012_12_20 switch (this->GetEquippedWeapon().m_ItemType) { case E_ITEM_WOODEN_SWORD: return 4; @@ -660,7 +660,7 @@ void cEntity::ApplyArmorDamage(int DamageBlocked) bool cEntity::ArmorCoversAgainst(eDamageType a_DamageType) { - // Ref.: https://minecraft.gamepedia.com/Armor#Effects as of 2012_12_20 + // Ref.: https://minecraft.wiki/w/Armor#Effects as of 2012_12_20 switch (a_DamageType) { case dtOnFire: @@ -777,7 +777,7 @@ float cEntity::GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_Da } // Add up all armor points: - // Ref.: https://minecraft.gamepedia.com/Armor#Defense_points + // Ref.: https://minecraft.wiki/w/Armor#Defense_points int ArmorValue = 0; int Toughness = 0; switch (GetEquippedHelmet().m_ItemType) @@ -814,7 +814,7 @@ float cEntity::GetArmorCoverAgainst(const cEntity * a_Attacker, eDamageType a_Da } // TODO: Special armor cases, such as wool, saddles, dog's collar - // Ref.: https://minecraft.gamepedia.com/Armor#Mob_armor as of 2012_12_20 + // Ref.: https://minecraft.wiki/w/Armor#Mob_armor as of 2012_12_20 float Reduction = std::max(ArmorValue / 5.0f, ArmorValue - a_Damage / (2.0f + Toughness / 4.0f)); return (a_Damage * std::min(20.0f, Reduction) / 25.0f); @@ -1797,7 +1797,7 @@ void cEntity::SetSize(const float a_Width, const float a_Height) void cEntity::HandleAir(void) { - // Ref.: https://minecraft.gamepedia.com/Chunk_format + // Ref.: https://minecraft.wiki/w/Chunk_format // See if the entity is /submerged/ water (head is in water) // Get the type of block the entity is standing in: -- cgit v1.2.3