programming-game
Version:
The client for programming game, an mmorpg that you interact with entirely through code.
674 lines (673 loc) • 14.7 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.recipes = void 0;
var items_1 = require("./items");
var percent = function (numerator, denominator) {
return twoDecimals(numerator / denominator);
};
var twoDecimals = function (value) {
return Math.floor(value * 100) / 100;
};
/**
* @deprecated Use the recipes field on the heartbeat tick instead.
*/
exports.recipes = {
/**
* @deprecated Use pinewoodArrow instead.
*/
woodenArrow: {
duration: 1000,
input: {
feather: 1,
arrowShaft: 1,
},
output: {
woodenArrow: 1,
},
required: [],
},
pinewoodArrow: {
duration: 1000,
input: {
feather: 3,
pinewoodArrowShaft: 1,
stoneArrowHead: 1,
},
output: {
pinewoodArrow: 1,
},
required: [],
},
stoneArrowHead: {
duration: 1500,
input: {
stone: percent(items_1.items.stoneArrowHead.weight, items_1.items.stone.weight),
},
output: {
stoneArrowHead: 1,
},
required: [["stoneCutterTools"]],
},
/**
* @deprecated Use pinewoodArrowShaft instead.
*/
arrowShaft: {
duration: 1000,
input: {
bitOfWood: 1,
},
output: {
arrowShaft: 1,
},
required: [],
},
pinewoodArrowShaft: {
duration: 1000,
input: {
pinewoodBits: percent(
// crafting arrows is a little wasteful on wood
items_1.items.pinewoodArrowShaft.weight * 1.2, items_1.items.pinewoodBits.weight),
},
output: {
pinewoodArrowShaft: 1,
},
required: [["stoneCarvingKnife"]],
},
pinewoodBits: {
duration: 30000,
input: {
pinewoodLog: 1,
},
output: {
pinewoodBits: Math.floor((items_1.items.pinewoodLog.weight / items_1.items.pinewoodBits.weight) * 0.9),
},
required: [["stoneFellingAxe"]],
},
oakBits: {
duration: 30000,
input: {
oakLog: 1,
},
output: {
oakBits: Math.floor((items_1.items.oakLog.weight / items_1.items.oakBits.weight) * 0.9),
},
required: [["copperFellingAxe"]],
},
campfireKit: {
duration: 30000,
input: {
pinewoodLog: 3,
flint: 1,
},
output: {
campfireKit: 1,
},
required: [],
},
stoneCarvingKnife: {
duration: 1000,
input: {
stone: 1,
pinewoodBits: 1,
},
output: {
stoneCarvingKnife: 1,
},
required: [["stoneCutterTools"]],
},
pinewoodSword: {
duration: 30000,
input: {
pinewoodLog: 1,
leatherStrips: 5,
pinewoodPommel: 1,
},
output: {
pinewoodSword: 1,
},
required: [["stoneCarvingKnife"]],
},
pinewoodBow: {
duration: 30000,
input: {
pinewoodBits: 5,
coarseThread: 10,
},
output: {
pinewoodBow: 1,
},
required: [["stoneCarvingKnife"]],
},
bitOfWood: {
duration: 1000,
input: {
woodLog: 1,
},
output: {
bitOfWood: 10,
},
required: [],
},
chunkOfCopper: {
duration: 3000,
input: {
copperCoin: items_1.items.chunkOfCopper.weight / items_1.items.copperCoin.weight,
},
output: {
chunkOfCopper: 1,
},
required: [["furnace"]],
},
copperIngot: {
duration: 30000,
input: [
{
chunkOfCopper: 3,
},
{
copperOre: 9,
},
],
output: {
copperIngot: 1,
},
required: [["furnace"]],
},
tinIngot: {
duration: 30000,
input: {
tinOre: 9,
},
output: {
tinIngot: 1,
},
required: [["furnace"]],
},
bronzeIngot: {
duration: 30000,
input: {
tinIngot: 1,
copperIngot: 1,
},
output: {
bronzeIngot: 1,
},
required: [["furnace"]],
},
copperDagger: {
duration: 30000,
input: {
copperIngot: 3,
pinewoodPommel: 1,
},
output: {
copperDagger: 1,
},
required: [["anvil"]],
},
copperSword: {
duration: 30000,
input: {
copperIngot: 5,
leatherStrips: 5,
pinewoodPommel: 1,
},
output: {
copperSword: 1,
},
required: [["anvil"]],
},
copperGreatSword: {
duration: 30000,
input: {
copperIngot: 7,
leatherStrips: 7,
pinewoodPommel: 1,
},
output: {
copperGreatSword: 1,
},
required: [["anvil"]],
},
copperShield: {
duration: 30000,
input: {
copperIngot: 10,
pinewoodBits: 2,
leatherStrips: 5,
},
output: {
copperShield: 1,
},
required: [["anvil"]],
},
woodPommel: {
duration: 30000,
input: {
bitOfWood: 3,
},
output: {
woodPommel: 1,
},
required: [],
},
pinewoodPommel: {
duration: 30000,
input: {
pinewoodBits: 3,
},
output: {
pinewoodPommel: 1,
},
required: [["stoneCarvingKnife"]],
},
pinewoodAxeHandle: {
duration: 30000,
input: {
pinewoodLog: 1,
},
output: {
pinewoodAxeHandle: 1,
},
required: [["stoneCarvingKnife"]],
},
stoneFellingAxe: {
duration: 30000,
input: {
pinewoodBits: 1,
leatherStrips: 2,
pinewoodAxeHandle: 1,
stone: 3,
},
output: {
stoneFellingAxe: 1,
},
required: [["stoneCutterTools"]],
},
stonePickaxe: {
duration: 30000,
input: {
pinewoodBits: 1,
leatherStrips: 2,
pinewoodAxeHandle: 1,
stone: 3,
},
output: {
stonePickaxe: 1,
},
required: [["stoneCutterTools"]],
},
copperFellingAxe: {
duration: 30000,
input: {
copperIngot: 3,
pinewoodAxeHandle: 1,
leatherStrips: 2,
pinewoodBits: 1,
},
output: {
copperFellingAxe: 1,
},
required: [["anvil"]],
},
copperPickaxe: {
duration: 30000,
input: {
copperIngot: 3,
pinewoodAxeHandle: 1,
leatherStrips: 2,
pinewoodBits: 1,
},
output: {
copperPickaxe: 1,
},
required: [["anvil"]],
},
leatherStrips: {
duration: 30000,
input: {
lightLeather: 1,
},
output: {
leatherStrips: 3,
},
required: [],
},
lightLeather: {
duration: 30000,
input: {
ratPelt: 3,
},
output: {
lightLeather: 1,
},
required: [],
},
snakeSkinLeather: {
duration: 30000,
input: {
snakeSkin: 3,
},
output: {
snakeSkinLeather: 1,
},
required: [],
},
// cloth ingredients
// tier 1
cottonCloth: {
duration: 30000,
input: {
tatteredCottonCloth: 3,
},
output: {
cottonCloth: 1,
},
required: [["copperNeedle"]],
},
boltOfCottonCloth: {
duration: 30000,
input: {
cottonCloth: 2,
},
output: {
boltOfCottonCloth: 1,
},
required: [["copperNeedle"]],
},
// tier 2
linenCloth: {
duration: 30000,
input: {
tatteredLinenCloth: 3,
},
output: {
linenCloth: 1,
},
required: [["copperNeedle"]],
},
boltOfLinenCloth: {
duration: 30000,
input: {
linenCloth: 2,
},
output: {
boltOfLinenCloth: 1,
},
required: [["copperNeedle"]],
},
woolCloth: {
duration: 30000,
input: {
tatteredWoolCloth: 5,
},
output: {
woolCloth: 1,
},
required: [["copperNeedle"]],
},
boltOfWoolCloth: {
duration: 30000,
input: {
woolCloth: 3,
},
output: {
boltOfWoolCloth: 1,
},
required: [["copperNeedle"]],
},
// cloth armor
cottonHood: {
duration: 30000,
input: {
boltOfCottonCloth: 3,
coarseThread: 10,
},
output: {
cottonHood: 1,
},
required: [["copperNeedle"]],
},
cottonShirt: {
duration: 30000,
input: {
boltOfCottonCloth: 5,
coarseThread: 10,
},
output: {
cottonShirt: 1,
},
required: [["copperNeedle"]],
},
cottonGloves: {
duration: 30000,
input: {
boltOfCottonCloth: 2,
coarseThread: 10,
},
output: {
cottonGloves: 1,
},
required: [["copperNeedle"]],
},
cottonPants: {
duration: 30000,
input: {
boltOfCottonCloth: 4,
coarseThread: 10,
},
output: {
cottonPants: 1,
},
required: [["copperNeedle"]],
},
cottonBoots: {
duration: 30000,
input: {
boltOfCottonCloth: 2,
coarseThread: 10,
},
output: {
cottonBoots: 1,
},
required: [["copperNeedle"]],
},
// leather armor
lightLeatherHelm: {
duration: 30000,
input: {
lightLeather: 3,
leatherStrips: 10,
},
output: {
lightLeatherHelm: 1,
},
required: [["copperNeedle"]],
},
lightLeatherChest: {
duration: 30000,
input: {
lightLeather: 5,
leatherStrips: 10,
},
output: {
lightLeatherChest: 1,
},
required: [["copperNeedle"]],
},
lightLeatherGloves: {
duration: 30000,
input: {
lightLeather: 2,
leatherStrips: 10,
},
output: {
lightLeatherGloves: 1,
},
required: [["copperNeedle"]],
},
lightLeatherLegs: {
duration: 30000,
input: {
lightLeather: 4,
leatherStrips: 10,
},
output: {
lightLeatherLegs: 1,
},
required: [["copperNeedle"]],
},
lightLeatherBoots: {
duration: 30000,
input: {
lightLeather: 2,
leatherStrips: 10,
},
output: {
lightLeatherBoots: 1,
},
required: [["copperNeedle"]],
},
// snake skin armor
snakeSkinHelm: {
duration: 30000,
input: {
snakeSkinLeather: 3,
leatherStrips: 10,
},
output: {
snakeSkinHelm: 1,
},
required: [["copperNeedle"]],
},
snakeSkinChest: {
duration: 30000,
input: {
snakeSkinLeather: 5,
leatherStrips: 10,
},
output: {
snakeSkinChest: 1,
},
required: [["copperNeedle"]],
},
snakeSkinGloves: {
duration: 30000,
input: {
snakeSkinLeather: 2,
leatherStrips: 10,
},
output: {
snakeSkinGloves: 1,
},
required: [["copperNeedle"]],
},
snakeSkinLegs: {
duration: 30000,
input: {
snakeSkinLeather: 4,
leatherStrips: 10,
},
output: {
snakeSkinLegs: 1,
},
required: [["copperNeedle"]],
},
snakeSkinBoots: {
duration: 30000,
input: {
snakeSkinLeather: 2,
leatherStrips: 10,
},
output: {
snakeSkinBoots: 1,
},
required: [["copperNeedle"]],
},
// copper mail armor
copperMailHelm: {
duration: 30000,
input: {
copperIngot: 3,
},
output: {
copperMailHelm: 1,
},
required: [["anvil"]],
},
copperMailChest: {
duration: 30000,
input: {
copperIngot: 5,
},
output: {
copperMailChest: 1,
},
required: [["anvil"]],
},
copperMailGloves: {
duration: 30000,
input: {
copperIngot: 2,
},
output: {
copperMailGloves: 1,
},
required: [["anvil"]],
},
copperMailLegs: {
duration: 30000,
input: {
copperIngot: 4,
},
output: {
copperMailLegs: 1,
},
required: [["anvil"]],
},
copperMailBoots: {
duration: 30000,
input: {
copperIngot: 2,
},
output: {
copperMailBoots: 1,
},
required: [["anvil"]],
},
eyeJelly: {
duration: 5000,
input: [
{
snakeEyes: Math.ceil(items_1.items["eyeJelly"].weight / items_1.items["snakeEyes"].weight),
},
],
output: {
eyeJelly: 1,
},
required: [["mortarAndPestle"]],
},
minorHealthPotion: {
duration: 5000,
input: {
eyeJelly: 1,
digesta: 5,
},
output: {
minorHealthPotion: 1,
},
required: [],
},
medicatedBandage: {
duration: 5000,
input: {
eyeJelly: 1,
boltOfLinenCloth: 1,
digesta: 1,
},
output: {
medicatedBandage: 1,
},
required: [],
},
};