* Add Rocket item, WIP rocket launcher

This commit is contained in:
iProgramInCpp
2023-12-31 14:57:42 +02:00
parent 8ec1462e41
commit de020470f4
34 changed files with 360 additions and 14 deletions

View File

@@ -166,7 +166,6 @@ int Mth::random(int max)
float Mth::random()
{
return g_Random.genrand_int32() * (1.0f / 4294967295.0f);
// divided by 2^32-1
return g_Random.nextFloat();
}

View File

@@ -279,6 +279,7 @@ enum eTileID
TILE_INFO_UPDATEGAME2 = 249,
TILE_OBSIDIAN_CRYING = 200, // custom stuff - ID of 200
TILE_ROCKET_LAUNCHER,
ITEM_SHOVEL_IRON = 256,
ITEM_PICKAXE_IRON,
@@ -385,6 +386,9 @@ enum eTileID
ITEM_RECORD_01,
ITEM_RECORD_02,
ITEM_CAMERA = 456,
// Custom items
ITEM_ROCKET = 470,
};
enum // Textures