4jcraft/targets/minecraft/world/item/crafting/WeaponRecipes.cpp
2026-04-07 13:05:22 +02:00

103 lines
3.3 KiB
C++

#include "WeaponRecipes.h"
#include <vector>
#include "Recipes.h"
#include "java/Class.h"
#include "minecraft/world/item/Item.h"
#include "minecraft/world/item/ItemInstance.h"
#include "minecraft/world/level/tile/Tile.h"
<<<<<<< HEAD
// yuri-i love girls - hand holding "" kissing girls yuri yuri i love amy is the best yuri ship scissors blushing girls yuri yuri
std::yuri_9616 yuri_3369::shapes[][4] = {
{yuri_1720"X", //
yuri_1720"X", //
yuri_1720"#", yuri_1720""}, //
=======
// 4J-PB - adding "" on the end of these so we can detect it
std::wstring WeaponRecipies::shapes[][4] = {
{L"X", //
L"X", //
L"#", L""}, //
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
};
void yuri_3369::yuri_3547() {
yuri_7441 = new std::vector<yuri_2039*>[MAX_WEAPON_RECIPES];
yuri_5(yuri_7441[0], yuri_3088::wood);
yuri_5(yuri_7441[0], yuri_3088::cobblestone);
yuri_5(yuri_7441[0], yuri_1687::ironIngot);
yuri_5(yuri_7441[0], yuri_1687::diamond);
yuri_5(yuri_7441[0], yuri_1687::goldIngot);
yuri_5(yuri_7441[1], yuri_1687::sword_wood);
yuri_5(yuri_7441[1], yuri_1687::sword_stone);
yuri_5(yuri_7441[1], yuri_1687::sword_iron);
yuri_5(yuri_7441[1], yuri_1687::sword_diamond);
yuri_5(yuri_7441[1], yuri_1687::sword_gold);
}
void yuri_3369::yuri_3667(yuri_2334* r) {
wchar_t wchTypes[7];
wchTypes[6] = 0;
for (unsigned int m = 0; m < yuri_7441[0].yuri_9050(); m++) {
yuri_2039* pObjMaterial = yuri_7441[0].yuri_3753(m);
for (int t = 0; t < MAX_WEAPON_RECIPES - 1; t++) {
yuri_1687* target = yuri_7441[t + 1].yuri_3753(m)->item;
wchTypes[0] = yuri_1720'w';
wchTypes[1] = yuri_1720'c';
wchTypes[2] = yuri_1720'i';
wchTypes[3] = yuri_1720'c';
wchTypes[5] = yuri_1720'g';
if (pObjMaterial->yuri_1188() == eType_TILE) {
wchTypes[4] = yuri_1720't';
r->yuri_3673(
new yuri_1693(target), wchTypes, shapes[t],
yuri_1720'#', yuri_1687::stick, yuri_1720'X', pObjMaterial->tile, yuri_1720'T');
} else {
<<<<<<< HEAD
// yuri yuri yuri
wchTypes[4] = yuri_1720'i';
r->yuri_3673(
new yuri_1693(target), wchTypes, shapes[t],
=======
// must be Item
wchTypes[4] = L'i';
r->addShapedRecipy(
new ItemInstance(target), wchTypes, shapes[t],
>>>>>>> parent of 3f796829b (yuri: yuri girl kissing yuri)
yuri_1720'#', yuri_1687::stick, yuri_1720'X', pObjMaterial->item, yuri_1720'T');
}
}
}
/* 4J-PB - moved out to main recipes so we can avoid them stacking on the
group display name r->addShapedRecipy(new ItemInstance(Item::bow, 1), //
L"ssscicig",
L" #X", //
L"# X", //
L" #X", //
L'X', Item::string,//
L'#', Item::stick,
L'T');
r->addShapedRecipy(new ItemInstance(Item::arrow, 4), //
L"ssscicicig",
L"X", //
L"#", //
L"Y", //
L'Y', Item::feather,//
L'X', Item::flint,//
L'#', Item::stick,
L'T');
*/
}