summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorSpongecade <spongecade.129@gmail.com>2023-09-27 20:07:42 +0200
committerGitHub <noreply@github.com>2023-09-27 20:07:42 +0200
commitebeb164d2be6754908a9c562850e585f18f70b88 (patch)
treef0396dc592063fab48a622049ac43e35a8bc9f66 /src/Blocks
parentOnly enable werror for debug (#5501) (diff)
downloadcuberite-ebeb164d2be6754908a9c562850e585f18f70b88.tar
cuberite-ebeb164d2be6754908a9c562850e585f18f70b88.tar.gz
cuberite-ebeb164d2be6754908a9c562850e585f18f70b88.tar.bz2
cuberite-ebeb164d2be6754908a9c562850e585f18f70b88.tar.lz
cuberite-ebeb164d2be6754908a9c562850e585f18f70b88.tar.xz
cuberite-ebeb164d2be6754908a9c562850e585f18f70b88.tar.zst
cuberite-ebeb164d2be6754908a9c562850e585f18f70b88.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockBed.cpp2
-rw-r--r--src/Blocks/BlockCrops.h8
-rw-r--r--src/Blocks/BlockFarmland.h2
-rw-r--r--src/Blocks/BlockHandler.h4
-rw-r--r--src/Blocks/BlockStems.h8
5 files changed, 12 insertions, 12 deletions
diff --git a/src/Blocks/BlockBed.cpp b/src/Blocks/BlockBed.cpp
index 728c9d2b7..a18d95196 100644
--- a/src/Blocks/BlockBed.cpp
+++ b/src/Blocks/BlockBed.cpp
@@ -64,7 +64,7 @@ bool cBlockBedHandler::OnUse(
const Vector3i a_CursorPos
) const
{
- // Source: https://minecraft.gamepedia.com/Bed#Sleeping
+ // Source: https://minecraft.wiki/w/Bed#Sleeping
// Sleeping in bed only allowed in Overworld, beds explode elsewhere:
if (a_WorldInterface.GetDimension() != dimOverworld)
diff --git a/src/Blocks/BlockCrops.h b/src/Blocks/BlockCrops.h
index 90a5badc9..b323ace10 100644
--- a/src/Blocks/BlockCrops.h
+++ b/src/Blocks/BlockCrops.h
@@ -65,7 +65,7 @@ private:
}
case E_BLOCK_CROPS:
{
- // https://minecraft.fandom.com/wiki/Seeds_(Wheat)
+ // https://minecraft.wiki/w/Seeds_(Wheat)
Res.Add(E_ITEM_WHEAT);
const auto SeedCount = CalculateSeedCount(1, 3, ToolFortuneLevel(a_Tool));
Res.Add(E_ITEM_SEEDS, SeedCount);
@@ -73,19 +73,19 @@ private:
}
case E_BLOCK_CARROTS:
{
- // https://minecraft.gamepedia.com/Carrot#Breaking
+ // https://minecraft.wiki/w/Carrot#Breaking
const auto CarrotCount = CalculateSeedCount(1, 4, ToolFortuneLevel(a_Tool));
Res.Add(E_ITEM_CARROT, CarrotCount);
break;
}
case E_BLOCK_POTATOES:
{
- // https://minecraft.gamepedia.com/Potato#Breaking
+ // https://minecraft.wiki/w/Potato#Breaking
const auto PotatoCount = CalculateSeedCount(2, 3, ToolFortuneLevel(a_Tool));
Res.Add(E_ITEM_POTATO, PotatoCount);
if (rand.RandBool(0.02))
{
- // https://minecraft.gamepedia.com/Poisonous_Potato#Obtaining
+ // https://minecraft.wiki/w/Poisonous_Potato#Obtaining
// With a 2% chance, drop a poisonous potato as well:
Res.Add(E_ITEM_POISONOUS_POTATO);
}
diff --git a/src/Blocks/BlockFarmland.h b/src/Blocks/BlockFarmland.h
index 9a458a1d6..8641238ed 100644
--- a/src/Blocks/BlockFarmland.h
+++ b/src/Blocks/BlockFarmland.h
@@ -195,7 +195,7 @@ private:
const auto WorldPos = a_Chunk.RelativeToAbsolute(a_RelPos);
// Search for water in a close proximity:
- // Ref.: https://minecraft.gamepedia.com/Farmland#Hydration
+ // Ref.: https://minecraft.wiki/w/Farmland#Hydration
// TODO: Rewrite this to use the chunk and its neighbors directly
cBlockArea Area;
if (!Area.Read(*a_Chunk.GetWorld(), WorldPos - Vector3i(4, 0, 4), WorldPos + Vector3i(4, 1, 4)))
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h
index c0e9d3a3d..1e5dd6fcf 100644
--- a/src/Blocks/BlockHandler.h
+++ b/src/Blocks/BlockHandler.h
@@ -151,7 +151,7 @@ public:
cChunk & a_Chunk
) const;
- /** Returns the base colour ID of the block, as will be represented on a map, as per documentation: https://minecraft.gamepedia.com/Map_item_format */
+ /** Returns the base colour ID of the block, as will be represented on a map, as per documentation: https://minecraft.wiki/w/Map_item_format */
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const;
/** Rotates a given block meta counter-clockwise. Default: no change
@@ -192,7 +192,7 @@ public:
a_BonusMax is the amount to increase the max of randInt by, usually the fortune level (but not always)
a_DropCap is the maximum items from one block with fortune,
if unspecified set to 25 to prevent lag or crash with high level tools.
- Similar to uniform_bonus_count at https://minecraft.gamepedia.com/Loot_table#Functions */
+ Similar to uniform_bonus_count at https://minecraft.wiki/w/Loot_table#Functions */
static char FortuneDiscreteRandom(char a_MinDrop, char a_DefaultMax, unsigned char a_BonusMax, char a_DropCap = 25);
// Gets the blockhandler for the given block type.
diff --git a/src/Blocks/BlockStems.h b/src/Blocks/BlockStems.h
index f6686b25a..11cd83967 100644
--- a/src/Blocks/BlockStems.h
+++ b/src/Blocks/BlockStems.h
@@ -26,8 +26,8 @@ private:
{
/*
Use correct percent:
- https://minecraft.gamepedia.com/Melon_Seeds#Breaking
- https://minecraft.gamepedia.com/Pumpkin_Seeds#Breaking
+ https://minecraft.wiki/w/Melon_Seeds#Breaking
+ https://minecraft.wiki/w/Pumpkin_Seeds#Breaking
*/
// Age > 7 (Impossible)
@@ -171,8 +171,8 @@ private:
private:
- // https://minecraft.gamepedia.com/Pumpkin_Seeds#Breaking
- // https://minecraft.gamepedia.com/Melon_Seeds#Breaking
+ // https://minecraft.wiki/w/Pumpkin_Seeds#Breaking
+ // https://minecraft.wiki/w/Melon_Seeds#Breaking
/** The array describes how many seed may be dropped at which age. The inner arrays describe the probability to drop 0, 1, 2, 3 seeds.
The outer describes the age of the stem. */
static constexpr std::array<std::array<double, 4>, 8> m_AgeSeedDropProbability