Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const header = document.getElementsByClassName("right-tab-header")[0];
- const spendCulture = () => {
- [
- "parchment",
- "manuscript",
- //"compedium",
- ].forEach(res => gamePage.craftAll(res));
- gamePage.huntAll({ preventDefault: () => null });
- }
- const cultureBtn = document.createElement("button");
- const cultureText = document.createTextNode("Spend culture");
- cultureBtn.onclick = () => {
- spendCulture();
- };
- cultureBtn.appendChild(cultureText);
- const stuff = ["slab","beam"];
- const matsBtn = document.createElement("button");
- const matsText = document.createTextNode("Make stuff");
- matsBtn.onclick = () => {
- stuff.forEach(res => gamePage.craftAll(res));
- };
- matsBtn.appendChild(matsText);
- const withPlates = document.createElement("button");
- const stufftxt = document.createTextNode("Make stuff + plates");
- withPlates.onclick = () => {
- ["plate", ...stuff].forEach(res => gamePage.craftAll(res));
- };
- withPlates.appendChild(stufftxt);
- const withSteel = document.createElement("button");
- const withSteelText = document.createTextNode("Make stuff + steel");
- withSteel.onclick = () => {
- ["steel", ...stuff].forEach(res => gamePage.craftAll(res));
- };
- withSteel.appendChild(withSteelText);
- const withBoth = document.createElement("button");
- const withBothText = document.createTextNode("Make all the stuff");
- withBoth.onclick = () => {
- ["steel", "plate", ...stuff].forEach(res => gamePage.craftAll(res));
- };
- withBoth.appendChild(withBothText);
- header.appendChild(matsBtn);
- header.appendChild(withPlates);
- header.appendChild(withSteel);
- header.appendChild(withBoth);
- header.appendChild(cultureBtn);
- header.appendChild(cultureFaithBtn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement