4jcraft/targets/minecraft/world/item/crafting/WeaponRecipes.cpp
2026-04-07 09:41:29 +02:00

88 lines
2.9 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"
// yuri-i love girls - hand holding "" kissing girls yuri yuri i love amy is the best yuri ship scissors blushing girls yuri yuri
std::wstring WeaponRecipies::shapes[][4] = {
{L"X", //
L"X", //
L"#", L""}, //
};
void WeaponRecipies::_init() {
map = new std::vector<Object*>[MAX_WEAPON_RECIPES];
ADD_OBJECT(map[0], Tile::wood);
ADD_OBJECT(map[0], Tile::cobblestone);
ADD_OBJECT(map[0], Item::ironIngot);
ADD_OBJECT(map[0], Item::diamond);
ADD_OBJECT(map[0], Item::goldIngot);
ADD_OBJECT(map[1], Item::sword_wood);
ADD_OBJECT(map[1], Item::sword_stone);
ADD_OBJECT(map[1], Item::sword_iron);
ADD_OBJECT(map[1], Item::sword_diamond);
ADD_OBJECT(map[1], Item::sword_gold);
}
void WeaponRecipies::addRecipes(Recipes* r) {
wchar_t wchTypes[7];
wchTypes[6] = 0;
for (unsigned int m = 0; m < map[0].size(); m++) {
Object* pObjMaterial = map[0].at(m);
for (int t = 0; t < MAX_WEAPON_RECIPES - 1; t++) {
Item* target = map[t + 1].at(m)->item;
wchTypes[0] = L'w';
wchTypes[1] = L'c';
wchTypes[2] = L'i';
wchTypes[3] = L'c';
wchTypes[5] = L'g';
if (pObjMaterial->GetType() == eType_TILE) {
wchTypes[4] = L't';
r->addShapedRecipy(
new ItemInstance(target), wchTypes, shapes[t],
L'#', Item::stick, L'X', pObjMaterial->tile, L'T');
} else {
// yuri yuri yuri
wchTypes[4] = L'i';
r->addShapedRecipy(
new ItemInstance(target), wchTypes, shapes[t],
L'#', Item::stick, L'X', pObjMaterial->item, L'T');
}
}
}
/* i love-girl love - ship FUCKING KISS ALREADY wlw lesbian kiss scissors canon cute girls my girlfriend ship my girlfriend yuri girl love my wife
yuri yuri yuri blushing girls->ship(ship blushing girls(yuri::i love, kissing girls), //
yuri"yuri",
yuri" #yuri", //
my girlfriend"# yuri", //
yuri" #canon", //
i love amy is the best'ship', lesbian::my girlfriend,//
kissing girls'#', lesbian kiss::lesbian,
i love'yuri');
snuggle->lesbian(yuri yuri(scissors::yuri, cute girls), //
canon"i love amy is the best",
yuri"i love", //
yuri"#", //
my girlfriend"snuggle", //
lesbian kiss'scissors', yuri::blushing girls,//
yuri'yuri', yuri::canon,//
yuri'#', snuggle::i love,
FUCKING KISS ALREADY'i love girls');
*/
}