mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-13 02:22:28 +00:00
build fixes
This commit is contained in:
parent
401a19ad67
commit
d9aa793075
|
|
@ -8604,4 +8604,60 @@ If you try to save while using the trial version, you will be given the option t
|
||||||
<data name="IDS_ERROR_NETWORK_TITLE">
|
<data name="IDS_ERROR_NETWORK_TITLE">
|
||||||
<value>Network Error</value>
|
<value>Network Error</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_HORSE_JUMPSTRENGTH">
|
||||||
|
<value>Horse Jump Strength</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_ZOMBIE_SPAWNREINFORCEMENTS">
|
||||||
|
<value>Zombie Reinforcements</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_GENERIC_MAXHEALTH">
|
||||||
|
<value>Max Health</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_GENERIC_FOLLOWRANGE">
|
||||||
|
<value>Mob Follow Range</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_GENERIC_KNOCKBACKRESISTANCE">
|
||||||
|
<value>Knockback Resistance</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_GENERIC_MOVEMENTSPEED">
|
||||||
|
<value>Speed</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_ATTRIBUTE_NAME_GENERIC_ATTACKDAMAGE">
|
||||||
|
<value>Attack Damage</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_CONTAINER_ANIMAL">
|
||||||
|
<value>Horse</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_WITHER">
|
||||||
|
<value>Wither</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<data name="IDS_CONTAINER_DROPPER">
|
||||||
|
<value>Dropper</value>
|
||||||
|
</data>
|
||||||
|
<data name="IDS_CONTAINER_HOPPER">
|
||||||
|
<value>Hopper</value>
|
||||||
|
</data>
|
||||||
|
<data name="IDS_CONTAINER_BEACON">
|
||||||
|
<value>Beacon</value>
|
||||||
|
</data>
|
||||||
|
<data name="IDS_CONTAINER_BEACON_PRIMARY_POWER">
|
||||||
|
<value>Primary Power</value>
|
||||||
|
</data>
|
||||||
|
<data name="IDS_CONTAINER_BEACON_SECONDARY_POWER">
|
||||||
|
<value>Secondary Power</value>
|
||||||
|
</data>
|
||||||
|
<data name="IDS_CONTAINER_MINECART">
|
||||||
|
<value>Minecart</value>
|
||||||
|
</data>
|
||||||
|
|
||||||
</root>
|
</root>
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Goal.h"
|
#include "Goal.h"
|
||||||
#include "../Minecraft.World/SharedConstants.h"
|
#include "../Minecraft.World/Util/SharedConstants.h"
|
||||||
|
|
||||||
class Mob;
|
class Mob;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ void PoweredRailTile::registerIcons(IconRegister* iconRegister) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
int data, bool std::forward,
|
int data, bool forward,
|
||||||
int searchDepth) {
|
int searchDepth) {
|
||||||
if (searchDepth >= 8) {
|
if (searchDepth >= 8) {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -30,21 +30,21 @@ bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
bool checkBelow = true;
|
bool checkBelow = true;
|
||||||
switch (dir) {
|
switch (dir) {
|
||||||
case DIR_FLAT_Z:
|
case DIR_FLAT_Z:
|
||||||
if (std::forward) {
|
if (forward) {
|
||||||
z++;
|
z++;
|
||||||
} else {
|
} else {
|
||||||
z--;
|
z--;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIR_FLAT_X:
|
case DIR_FLAT_X:
|
||||||
if (std::forward) {
|
if (forward) {
|
||||||
x--;
|
x--;
|
||||||
} else {
|
} else {
|
||||||
x++;
|
x++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (std::forward) {
|
if (forward) {
|
||||||
x--;
|
x--;
|
||||||
} else {
|
} else {
|
||||||
x++;
|
x++;
|
||||||
|
|
@ -54,7 +54,7 @@ bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
dir = DIR_FLAT_X;
|
dir = DIR_FLAT_X;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (std::forward) {
|
if (forward) {
|
||||||
x--;
|
x--;
|
||||||
y++;
|
y++;
|
||||||
checkBelow = false;
|
checkBelow = false;
|
||||||
|
|
@ -64,7 +64,7 @@ bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
dir = DIR_FLAT_X;
|
dir = DIR_FLAT_X;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
if (std::forward) {
|
if (forward) {
|
||||||
z++;
|
z++;
|
||||||
} else {
|
} else {
|
||||||
z--;
|
z--;
|
||||||
|
|
@ -74,7 +74,7 @@ bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
dir = DIR_FLAT_Z;
|
dir = DIR_FLAT_Z;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
if (std::forward) {
|
if (forward) {
|
||||||
z++;
|
z++;
|
||||||
y++;
|
y++;
|
||||||
checkBelow = false;
|
checkBelow = false;
|
||||||
|
|
@ -85,10 +85,10 @@ bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isSameRailWithPower(level, x, y, z, std::forward, searchDepth, dir)) {
|
if (isSameRailWithPower(level, x, y, z, forward, searchDepth, dir)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (checkBelow && isSameRailWithPower(level, x, y - 1, z, std::forward,
|
if (checkBelow && isSameRailWithPower(level, x, y - 1, z, forward,
|
||||||
searchDepth, dir)) {
|
searchDepth, dir)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -96,7 +96,7 @@ bool PoweredRailTile::findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PoweredRailTile::isSameRailWithPower(Level* level, int x, int y, int z,
|
bool PoweredRailTile::isSameRailWithPower(Level* level, int x, int y, int z,
|
||||||
bool std::forward, int searchDepth,
|
bool forward, int searchDepth,
|
||||||
int dir) {
|
int dir) {
|
||||||
int tile = level->getTile(x, y, z);
|
int tile = level->getTile(x, y, z);
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ bool PoweredRailTile::isSameRailWithPower(Level* level, int x, int y, int z,
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return findPoweredRailSignal(level, x, y, z, tileData,
|
return findPoweredRailSignal(level, x, y, z, tileData,
|
||||||
std::forward, searchDepth + 1);
|
forward, searchDepth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool findPoweredRailSignal(Level* level, int x, int y, int z,
|
virtual bool findPoweredRailSignal(Level* level, int x, int y, int z,
|
||||||
int data, bool std::forward,
|
int data, bool forward,
|
||||||
int searchDepth);
|
int searchDepth);
|
||||||
virtual bool isSameRailWithPower(Level* level, int x, int y, int z,
|
virtual bool isSameRailWithPower(Level* level, int x, int y, int z,
|
||||||
bool std::forward, int searchDepth,
|
bool forward, int searchDepth,
|
||||||
int dir);
|
int dir);
|
||||||
virtual void updateState(Level* level, int x, int y, int z, int data,
|
virtual void updateState(Level* level, int x, int y, int z, int data,
|
||||||
int dir, int type);
|
int dir, int type);
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,12 @@ StoneMonsterTile::StoneMonsterTile(int id) : Tile(id, Material::clay) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Icon* StoneMonsterTile::getTexture(int face, int data) {
|
Icon* StoneMonsterTile::getTexture(int face, int data) {
|
||||||
#ifndef _CONTENT_PACKAGE
|
// 4jcraft: removed in TU19 merge for now
|
||||||
if (app.DebugArtToolsOn()) {
|
// #ifndef _CONTENT_PACKAGE
|
||||||
return Tile::fire->getTexture(face, 0);
|
// if (app.DebugArtToolsOn()) {
|
||||||
}
|
// return Tile::fire->getTexture(face, 0);
|
||||||
#endif
|
// }
|
||||||
|
// #endif
|
||||||
if (data == HOST_COBBLE) {
|
if (data == HOST_COBBLE) {
|
||||||
return Tile::cobblestone->getTexture(face);
|
return Tile::cobblestone->getTexture(face);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -276,9 +276,9 @@ void Boat::tick() {
|
||||||
if (rider.lock() != NULL && rider.lock()->instanceof(eTYPE_LIVINGENTITY)) {
|
if (rider.lock() != NULL && rider.lock()->instanceof(eTYPE_LIVINGENTITY)) {
|
||||||
std::shared_ptr<LivingEntity> livingRider =
|
std::shared_ptr<LivingEntity> livingRider =
|
||||||
std::dynamic_pointer_cast<LivingEntity>(rider.lock());
|
std::dynamic_pointer_cast<LivingEntity>(rider.lock());
|
||||||
double std::forward = livingRider->yya;
|
double forward = livingRider->yya;
|
||||||
|
|
||||||
if (std::forward > 0) {
|
if (forward > 0) {
|
||||||
double riderXd = -sin(livingRider->yRot * PI / 180);
|
double riderXd = -sin(livingRider->yRot * PI / 180);
|
||||||
double riderZd = cos(livingRider->yRot * PI / 180);
|
double riderZd = cos(livingRider->yRot * PI / 180);
|
||||||
xd += riderXd * acceleration * 0.05f;
|
xd += riderXd * acceleration * 0.05f;
|
||||||
|
|
|
||||||
|
|
@ -408,9 +408,9 @@ void Minecart::moveAlongTrack(int xt, int yt, int zt, double maxSpeed,
|
||||||
std::shared_ptr<LivingEntity> living =
|
std::shared_ptr<LivingEntity> living =
|
||||||
std::dynamic_pointer_cast<LivingEntity>(rider.lock());
|
std::dynamic_pointer_cast<LivingEntity>(rider.lock());
|
||||||
|
|
||||||
double std::forward = living->yya;
|
double forward = living->yya;
|
||||||
|
|
||||||
if (std::forward > 0) {
|
if (forward > 0) {
|
||||||
double riderXd = -sin(living->yRot * PI / 180);
|
double riderXd = -sin(living->yRot * PI / 180);
|
||||||
double riderZd = cos(living->yRot * PI / 180);
|
double riderZd = cos(living->yRot * PI / 180);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
#include "../Items/ShearsItem.h"
|
#include "../Items/ShearsItem.h"
|
||||||
#include "../Items/ShovelItem.h"
|
#include "../Items/ShovelItem.h"
|
||||||
#include "../Items/SignItem.h"
|
#include "../Items/SignItem.h"
|
||||||
#include "SnowballItem.h"
|
#include "../Items/SnowballItem.h"
|
||||||
#include "../Items/TileItems/StoneSlabTileItem.h"
|
#include "../Items/TileItems/StoneSlabTileItem.h"
|
||||||
#include "../Items/TileItems/TileItem.h"
|
#include "../Items/TileItems/TileItem.h"
|
||||||
#include "../Items/TileItems/PlanterTileItem.h"
|
#include "../Items/TileItems/PlanterTileItem.h"
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
#include "../Blocks/FlowerPotTile.h"
|
#include "../Blocks/FlowerPotTile.h"
|
||||||
#include "../Blocks/FurnaceTile.h"
|
#include "../Blocks/FurnaceTile.h"
|
||||||
#include "../Blocks/GlassTile.h"
|
#include "../Blocks/GlassTile.h"
|
||||||
#include "GlowstoneTile.h"
|
#include "../Blocks/GlowstoneTile.h"
|
||||||
#include "../Blocks/GrassTile.h"
|
#include "../Blocks/GrassTile.h"
|
||||||
#include "../Blocks/GravelTile.h"
|
#include "../Blocks/GravelTile.h"
|
||||||
#include "../Blocks/HalfSlabTile.h"
|
#include "../Blocks/HalfSlabTile.h"
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ public:
|
||||||
static Item* pickAxe_gold;
|
static Item* pickAxe_gold;
|
||||||
static Item* hatchet_gold;
|
static Item* hatchet_gold;
|
||||||
|
|
||||||
static Item* std::string;
|
static Item* string;
|
||||||
static Item* feather;
|
static Item* feather;
|
||||||
static Item* gunpowder;
|
static Item* gunpowder;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,9 +122,9 @@ const ItemInstance* ArmorDyeRecipe::getResultItem() { return NULL; }
|
||||||
const int ArmorDyeRecipe::getGroup() { return ShapedRecipy::eGroupType_Armour; }
|
const int ArmorDyeRecipe::getGroup() { return ShapedRecipy::eGroupType_Armour; }
|
||||||
|
|
||||||
// 4J-PB
|
// 4J-PB
|
||||||
bool ArmorDyeRecipe::requires(int iRecipe) { return false; }
|
bool ArmorDyeRecipe::collectRequirements(int iRecipe) { return false; }
|
||||||
|
|
||||||
void ArmorDyeRecipe::requires(INGREDIENTS_REQUIRED* pIngReq) {
|
void ArmorDyeRecipe::collectRequirements(INGREDIENTS_REQUIRED* pIngReq) {
|
||||||
// int iCount=0;
|
// int iCount=0;
|
||||||
// bool bFound;
|
// bool bFound;
|
||||||
// int j;
|
// int j;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ public:
|
||||||
|
|
||||||
// 4J-PB
|
// 4J-PB
|
||||||
virtual bool
|
virtual bool
|
||||||
requires(int iRecipe);
|
requiresRecipe(int iRecipe);
|
||||||
virtual void
|
virtual void
|
||||||
requires(INGREDIENTS_REQUIRED* pIngReq);
|
collectRequirements(INGREDIENTS_REQUIRED* pIngReq);
|
||||||
};
|
};
|
||||||
|
|
@ -39,12 +39,12 @@ public:
|
||||||
|
|
||||||
// 4J-PB
|
// 4J-PB
|
||||||
virtual bool
|
virtual bool
|
||||||
requires(int iRecipe)
|
requiresRecipe(int iRecipe)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
virtual void
|
virtual void
|
||||||
requires(INGREDIENTS_REQUIRED* pIngReq)
|
collectRequirements(INGREDIENTS_REQUIRED* pIngReq)
|
||||||
{};
|
{};
|
||||||
|
|
||||||
// 4J Added
|
// 4J Added
|
||||||
|
|
|
||||||
|
|
@ -1190,7 +1190,7 @@ void Recipes::buildRecipeIngredientsArray(void) {
|
||||||
Recipy* recipe = *it;
|
Recipy* recipe = *it;
|
||||||
// wprintf(L"RECIPE - [%d] is
|
// wprintf(L"RECIPE - [%d] is
|
||||||
// %w\n",iCount,recipe->getResultItem()->getItem()->getName());
|
// %w\n",iCount,recipe->getResultItem()->getItem()->getName());
|
||||||
recipe->requires(&m_pRecipeIngredientsRequired[iCount++]);
|
recipe->collectRequirements(&m_pRecipeIngredientsRequired[iCount++]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// printf("Total recipes in buildRecipeIngredientsArray - %d",iCount);
|
// printf("Total recipes in buildRecipeIngredientsArray - %d",iCount);
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@ public:
|
||||||
|
|
||||||
// 4J-PB
|
// 4J-PB
|
||||||
virtual bool
|
virtual bool
|
||||||
requires(int iRecipe)
|
prerequisite(int iRecipe)
|
||||||
= 0;
|
= 0;
|
||||||
virtual void
|
virtual void
|
||||||
requires(INGREDIENTS_REQUIRED* pIngReq)
|
prerequisite(INGREDIENTS_REQUIRED* pIngReq)
|
||||||
= 0;
|
= 0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ std::shared_ptr<ItemInstance> ShapedRecipy::assemble(
|
||||||
int ShapedRecipy::size() { return width * height; }
|
int ShapedRecipy::size() { return width * height; }
|
||||||
|
|
||||||
// 4J-PB
|
// 4J-PB
|
||||||
bool ShapedRecipy::requires(int iRecipe) {
|
bool ShapedRecipy::requiresRecipe(int iRecipe) {
|
||||||
app.DebugPrintf("ShapedRecipy %d\n", iRecipe);
|
app.DebugPrintf("ShapedRecipy %d\n", iRecipe);
|
||||||
int iCount = 0;
|
int iCount = 0;
|
||||||
for (int x = 0; x < 3; x++) {
|
for (int x = 0; x < 3; x++) {
|
||||||
|
|
@ -109,7 +109,7 @@ bool ShapedRecipy::requires(int iRecipe) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShapedRecipy::requires(INGREDIENTS_REQUIRED* pIngReq) {
|
void ShapedRecipy::collectRequirements(INGREDIENTS_REQUIRED* pIngReq) {
|
||||||
// printf("ShapedRecipy %d\n",iRecipe);
|
// printf("ShapedRecipy %d\n",iRecipe);
|
||||||
|
|
||||||
int iCount = 0;
|
int iCount = 0;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public:
|
||||||
|
|
||||||
// 4J-PB - to return the items required to make a recipe
|
// 4J-PB - to return the items required to make a recipe
|
||||||
virtual bool
|
virtual bool
|
||||||
requires(int iRecipe);
|
requiresRecipe(int iRecipe);
|
||||||
virtual void
|
virtual void
|
||||||
requires(INGREDIENTS_REQUIRED* pIngReq);
|
collectRequirements(INGREDIENTS_REQUIRED* pIngReq);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ std::shared_ptr<ItemInstance> ShapelessRecipy::assemble(
|
||||||
int ShapelessRecipy::size() { return (int)ingredients->size(); }
|
int ShapelessRecipy::size() { return (int)ingredients->size(); }
|
||||||
|
|
||||||
// 4J-PB
|
// 4J-PB
|
||||||
bool ShapelessRecipy::requires(int iRecipe) {
|
bool ShapelessRecipy::requiresRecipe(int iRecipe) {
|
||||||
std::vector<ItemInstance*>* tempList = new std::vector<ItemInstance*>;
|
std::vector<ItemInstance*>* tempList = new std::vector<ItemInstance*>;
|
||||||
|
|
||||||
*tempList = *ingredients;
|
*tempList = *ingredients;
|
||||||
|
|
@ -87,7 +87,7 @@ bool ShapelessRecipy::requires(int iRecipe) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShapelessRecipy::requires(INGREDIENTS_REQUIRED* pIngReq) {
|
void ShapelessRecipy::collectRequirements(INGREDIENTS_REQUIRED* pIngReq) {
|
||||||
int iCount = 0;
|
int iCount = 0;
|
||||||
bool bFound;
|
bool bFound;
|
||||||
int j;
|
int j;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ public:
|
||||||
|
|
||||||
// 4J-PB - to return the items required to make a recipe
|
// 4J-PB - to return the items required to make a recipe
|
||||||
virtual bool
|
virtual bool
|
||||||
requires(int iRecipe);
|
requiresRecipe(int iRecipe);
|
||||||
virtual void
|
virtual void
|
||||||
requires(INGREDIENTS_REQUIRED* pIngReq);
|
collectRequirements(INGREDIENTS_REQUIRED* pIngReq);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ void Achievement::_init() {
|
||||||
* @param prerequisite Achievement object that is required to unlock this one
|
* @param prerequisite Achievement object that is required to unlock this one
|
||||||
*/
|
*/
|
||||||
Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
Item* icon, Achievement* requires)
|
Item* icon, Achievement* prerequisite)
|
||||||
: Stat(Achievements::ACHIEVEMENT_OFFSET + id,
|
: Stat(Achievements::ACHIEVEMENT_OFFSET + id,
|
||||||
I18n::get(std::wstring(L"achievement.").append(name))),
|
I18n::get(std::wstring(L"achievement.").append(name))),
|
||||||
desc(I18n::get(
|
desc(I18n::get(
|
||||||
|
|
@ -51,10 +51,10 @@ Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
icon(new ItemInstance(icon)),
|
icon(new ItemInstance(icon)),
|
||||||
x(x),
|
x(x),
|
||||||
y(y),
|
y(y),
|
||||||
requires(requires) {}
|
prerequisite(prerequisite) {}
|
||||||
|
|
||||||
Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
Tile* icon, Achievement* requires)
|
Tile* icon, Achievement* prerequisite)
|
||||||
: Stat(Achievements::ACHIEVEMENT_OFFSET + id,
|
: Stat(Achievements::ACHIEVEMENT_OFFSET + id,
|
||||||
I18n::get(std::wstring(L"achievement.").append(name))),
|
I18n::get(std::wstring(L"achievement.").append(name))),
|
||||||
desc(I18n::get(
|
desc(I18n::get(
|
||||||
|
|
@ -62,11 +62,11 @@ Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
icon(new ItemInstance(icon)),
|
icon(new ItemInstance(icon)),
|
||||||
x(x),
|
x(x),
|
||||||
y(y),
|
y(y),
|
||||||
requires(requires) {}
|
prerequisite(prerequisite) {}
|
||||||
|
|
||||||
Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
std::shared_ptr<ItemInstance> icon,
|
std::shared_ptr<ItemInstance> icon,
|
||||||
Achievement* requires)
|
Achievement* prerequisite)
|
||||||
: Stat(Achievements::ACHIEVEMENT_OFFSET + id,
|
: Stat(Achievements::ACHIEVEMENT_OFFSET + id,
|
||||||
I18n::get(std::wstring(L"achievement.").append(name))),
|
I18n::get(std::wstring(L"achievement.").append(name))),
|
||||||
desc(I18n::get(
|
desc(I18n::get(
|
||||||
|
|
@ -74,7 +74,7 @@ Achievement::Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
icon(icon),
|
icon(icon),
|
||||||
x(x),
|
x(x),
|
||||||
y(y),
|
y(y),
|
||||||
requires(requires) {}
|
prerequisite(prerequisite) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns whether the Achivement is golden
|
* @brief Returns whether the Achivement is golden
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class Achievement : public Stat {
|
||||||
public:
|
public:
|
||||||
const int x, y;
|
const int x, y;
|
||||||
Achievement*
|
Achievement*
|
||||||
requires;
|
prerequisite;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::wstring desc;
|
const std::wstring desc;
|
||||||
|
|
@ -23,11 +23,11 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Achievement(int id, const std::wstring& name, int x, int y, Item* icon,
|
Achievement(int id, const std::wstring& name, int x, int y, Item* icon,
|
||||||
Achievement* requires);
|
Achievement* prerequisite);
|
||||||
Achievement(int id, const std::wstring& name, int x, int y, Tile* icon,
|
Achievement(int id, const std::wstring& name, int x, int y, Tile* icon,
|
||||||
Achievement* requires);
|
Achievement* prerequisite);
|
||||||
Achievement(int id, const std::wstring& name, int x, int y,
|
Achievement(int id, const std::wstring& name, int x, int y,
|
||||||
std::shared_ptr<ItemInstance> icon, Achievement* requires);
|
std::shared_ptr<ItemInstance> icon, Achievement* prerequisite);
|
||||||
|
|
||||||
Achievement* setAwardLocallyOnly();
|
Achievement* setAwardLocallyOnly();
|
||||||
Achievement* setGolden();
|
Achievement* setGolden();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "../Minecraft.World/JavaIntHash.h"
|
#include "../Minecraft.World/Util/JavaIntHash.h"
|
||||||
|
|
||||||
class BiomeCache {
|
class BiomeCache {
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ project('4jcraft-chucklegrounds', ['cpp', 'c'],
|
||||||
'cpp_std=c++23',
|
'cpp_std=c++23',
|
||||||
'warning_level=0',
|
'warning_level=0',
|
||||||
'buildtype=debug', # for now
|
'buildtype=debug', # for now
|
||||||
'unity=on', # merge source files per target
|
'unity=off', # merge source files per target
|
||||||
'unity_size=8', # TODO: mess around with this
|
# 'unity_size=8', # TODO: mess around with this
|
||||||
'b_pch=true', # precompiled headers
|
'b_pch=true', # precompiled headers
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue