mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Shop Updated(minus lemon stuff), upgrades ready (not), now 'items' variable is pointless
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
body{
|
body{
|
||||||
background: #333;
|
background: #333;
|
||||||
|
}
|
||||||
|
.inMaking{
|
||||||
|
width: 300px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.inMaking img{
|
||||||
|
width: 300px;
|
||||||
|
aspect-ratio: 1/1;
|
||||||
}
|
}
|
||||||
BIN
img/underconstuction.png
Normal file
BIN
img/underconstuction.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 335 KiB |
10
js/fornum.js
10
js/fornum.js
@@ -2,11 +2,11 @@
|
|||||||
function fornum(num){
|
function fornum(num){
|
||||||
if(num<1000) return Math.floor(num);
|
if(num<1000) return Math.floor(num);
|
||||||
else{
|
else{
|
||||||
const suffixes = ['', ' K', ' M', ' B', ' T',
|
const suffixes = ['', 'K', 'M', 'B', 'T',
|
||||||
' aa', ' ab', ' ac', ' ad', ' ae', ' af', ' ag', ' ah', ' ai', ' aj', ' ak', ' al', ' am', ' an', ' ao', ' ap', ' aq', ' ar', ' as', ' at', ' au', ' av', ' aw', ' ax', ' ay', ' az',
|
'aa', 'ab', 'ac', 'ad', 'ae', 'af', 'ag', 'ah', 'ai', 'aj', 'ak', 'al', 'am', 'an', 'ao', 'ap', 'aq', 'ar', 'as', 'at', 'au', 'av', 'aw', 'ax', 'ay', 'az',
|
||||||
' ba', ' bb', ' bc', ' bd', ' be', ' bf', ' bg', ' bh', ' bi', ' bj', ' bk', ' bl', ' bm', ' bn', ' bo', ' bp', ' bq', ' br', ' bs', ' bt', ' bu', ' bv', ' bw', ' bx', ' by', ' bz',
|
'ba', 'bb', 'bc', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bk', 'bl', 'bm', 'bn', 'bo', 'bp', 'bq', 'br', 'bs', 'bt', 'bu', 'bv', 'bw', 'bx', 'by', 'bz',
|
||||||
' ca', ' cb', ' cc', ' cd', ' ce', ' cf', ' cg', ' ch', ' ci', ' cj', ' ck', ' cl', ' cm', ' cn', ' co', ' cp', ' cq', ' cr', ' cs', ' ct', ' cu', ' cv', ' cw', ' cx', ' cy', ' cz',
|
'ca', 'cb', 'cc', 'cd', 'ce', 'cf', 'cg', 'ch', 'ci', 'cj', 'ck', 'cl', 'cm', 'cn', 'co', 'cp', 'cq', 'cr', 'cs', 'ct', 'cu', 'cv', 'cw', 'cx', 'cy', 'cz',
|
||||||
' da', ' db', ' dc', ' dd', ' de', ' df', ' dg', ' dh', ' di', ' dj', ' dk', ' dl', ' dm', ' dn', ' do', ' dp', ' dq', ' dr', ' ds', ' dt', ' du', ' dv', ' dw', ' dx', ' dy', ' dz'];
|
'da', 'db', 'dc', 'dd', 'de', 'df', 'dg', 'dh', 'di', 'dj', 'dk', 'dl', 'dm', 'dn', 'do', 'dp', 'dq', 'dr', 'ds', 'dt', 'du', 'dv', 'dw', 'dx', 'dy', 'dz'];
|
||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
while (num >= 1000 && i < suffixes.length - 1) {
|
while (num >= 1000 && i < suffixes.length - 1) {
|
||||||
|
|||||||
39
js/htmls.js
39
js/htmls.js
@@ -646,33 +646,32 @@ const htmlShop = `
|
|||||||
|
|
||||||
<article class="main">
|
<article class="main">
|
||||||
<!-- Lemons -->
|
<!-- Lemons -->
|
||||||
<div class="item">
|
<div class="item" onclick="log()">
|
||||||
<section class="title">
|
<section class="title">
|
||||||
<img src="../img/lemon.svg" draggable="false">
|
<img src="../img/lemon.svg" draggable="false">
|
||||||
<h3 id="dislemName">Lemons</h3>
|
<h3 id="dislemonName">Lemons</h3>
|
||||||
<span id="lemMake">+69k/s</span>
|
<span id="lemonMake">+69k/s</span>
|
||||||
</section>
|
</section>
|
||||||
<div class="buttons" style="--Bcolor: yellow">
|
<div class="buttons" style="--Bcolor: yellow">
|
||||||
<button onclick="buylem()" class="buyone" id="lm1">
|
<button onclick="buylemon()" class="buyone" id="lemon1">
|
||||||
Buy a Lemon
|
Buy a Lemon
|
||||||
</button>
|
</button>
|
||||||
<button onclick="mxlm()" class="buymax">
|
<button onclick="mxlemon()" class="buymax">
|
||||||
MAX
|
MAX
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<p id="dislem">You've got OUTPUT</p>
|
<p id="dislemon">You've got OUTPUT</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Lemon t3-->
|
<!-- Lemon t3-->
|
||||||
<div class="item">
|
<div class="item" onclick="log()">
|
||||||
<section class="title">
|
<section class="title">
|
||||||
<img src="../img/lemon-tree.svg" draggable="false">
|
<img src="../img/lemon-tree.svg" draggable="false">
|
||||||
<h3 id="dislt3Name">Lemon t</h3>
|
<h3 id="dislt3Name">Lemon t</h3>
|
||||||
<span id="lt3Make">+69k/s</span>
|
|
||||||
</section>
|
</section>
|
||||||
<div class="buttons" style="--Bcolor: lightgoldenrodyellow">
|
<div class="buttons" style="--Bcolor: lightgoldenrodyellow">
|
||||||
<button onclick="buylt3()" class="buyone" id="lt1">
|
<button onclick="buylt3()" class="buyone" id="lt1">
|
||||||
Buy a Lemon Tree for 5 lemons
|
Buy a Lemon Tree
|
||||||
</button>
|
</button>
|
||||||
<button onclick="mxlt()" class="buymax">
|
<button onclick="mxlt()" class="buymax">
|
||||||
MAX
|
MAX
|
||||||
@@ -684,32 +683,32 @@ const htmlShop = `
|
|||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
${menu}
|
|
||||||
|
|
||||||
<a href="#" class="upwards">
|
<a href="#" class="upwards">
|
||||||
<img src="../img/arrow-up.svg" alt="">
|
<img src="../img/arrow-up.svg" alt="">
|
||||||
</a>`;
|
</a>
|
||||||
|
|
||||||
|
${menu}`;
|
||||||
|
|
||||||
const htmlUpgrade = `
|
const htmlUpgrade = `
|
||||||
<!-- lemons -->
|
<!-- lemons -->
|
||||||
<section class="joe" id="jonathan">
|
<section class="joe" id="jonathan">
|
||||||
<div id="loglm">
|
<!-- <div id="loglm">
|
||||||
<img src="../img/lemon.svg" id="imglm" draggable="false">
|
<img src="../img/lemon.svg" id="imglm" draggable="false">
|
||||||
<p id="dislm"></p>
|
<p id="dislm"></p>
|
||||||
</div>
|
</div>-->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<main style="margin-top: 175px;">
|
<main style="margin-top: 175px;">
|
||||||
<!-- Example -->
|
<!-- Example--><!--
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<h2>BRB</h2>
|
<h2>BRB</h2>
|
||||||
<img src="../img/brb-still.png">
|
<img src="../img/brb-still.png">
|
||||||
<div class="buttons" style="--Bcolor: darkred">
|
<div class="buttons" style="--Bcolor: darkred">
|
||||||
<button onclick="buyMcc()" class="buyone" id="Mc1">
|
<button onclick="buyMcc()" class="buyone" id="Mc1">
|
||||||
</button><!--
|
</button>
|
||||||
<button onclick="mxMc()" class="buymax">
|
<button onclick="mxMc()" class="buymax">
|
||||||
MAX
|
MAX
|
||||||
</button>-->
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p id="disMcmake"></p>
|
<p id="disMcmake"></p>
|
||||||
@@ -733,7 +732,13 @@ const htmlUpgrade = `
|
|||||||
<button id="ItsTime" onclick="TheThing();"></button>
|
<button id="ItsTime" onclick="TheThing();"></button>
|
||||||
<p id="progva"></p>
|
<p id="progva"></p>
|
||||||
<p id="got"></p>
|
<p id="got"></p>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<div class="inMaking">
|
||||||
|
<h1> In Making </h1>
|
||||||
|
<img src="./img/underconstuction.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
${menu}`;
|
${menu}`;
|
||||||
|
|||||||
16
js/main.js
16
js/main.js
@@ -21,19 +21,19 @@ Upraveno: Načítání obchodu
|
|||||||
Smazáno: Možnost výběru změny jazyka a S/T módu`
|
Smazáno: Možnost výběru změny jazyka a S/T módu`
|
||||||
|
|
||||||
function loadClicking(){
|
function loadClicking(){
|
||||||
if (localStorage.getItem('items')!=null){
|
if (localStorage.getItem('BRB-Progress')!=null){
|
||||||
items = JSON.parse(localStorage.getItem('items'));
|
bigredbutton = JSON.parse(localStorage.getItem('BRB-Progress'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateClicking
|
// updateClicking
|
||||||
function updateClicking(){
|
function updateClicking(){
|
||||||
let i = JSON.stringify(items);
|
let i = JSON.stringify(bigredbutton);
|
||||||
localStorage.setItem('items', i);
|
localStorage.setItem('BRB-Progress', i);
|
||||||
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
document.getElementById('disclick').innerHTML=`Máš ${fornum(items.clicks)} kliků a generuješ ${fornum(cs*items.pres)} k/s!`
|
document.getElementById('disclick').innerHTML=`Máš ${fornum(bigredbutton.items.special[0].number)} kliků a generuješ ${fornum(cs*bigredbutton.settings.prestige)} k/s!`
|
||||||
}else{
|
}else{
|
||||||
document.getElementById('disclick').innerHTML=`You have ${fornum(items.clicks)} clicks, and generating ${fornum(cs*items.pres)} c/s!`
|
document.getElementById('disclick').innerHTML=`You have ${fornum(bigredbutton.items.special[0].number)} clicks, and generating ${fornum(cs*bigredbutton.settings.prestige)} c/s!`
|
||||||
}
|
}
|
||||||
checklang();
|
checklang();
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ function change(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function clicking(){
|
function clicking(){
|
||||||
items.clicks += 1*(items.Mclick||1)*items.pres;
|
bigredbutton.items.special[0].number += 1; //*(items.Mclick||1)*items.pres;
|
||||||
updateClicking();
|
updateClicking();
|
||||||
|
|
||||||
document.getElementById('unpressed').style.visibility='hidden'
|
document.getElementById('unpressed').style.visibility='hidden'
|
||||||
|
|||||||
10
js/normal.js
10
js/normal.js
@@ -1,4 +1,4 @@
|
|||||||
let contextBRBCONST = {
|
const contextBRBCONST = {
|
||||||
items: {
|
items: {
|
||||||
special:[
|
special:[
|
||||||
{
|
{
|
||||||
@@ -130,7 +130,7 @@ let contextBRBCONST = {
|
|||||||
name: 'squirrel',
|
name: 'squirrel',
|
||||||
number: 0,
|
number: 0,
|
||||||
history: 0,
|
history: 0,
|
||||||
cost: 9000000,
|
cost: 900000,
|
||||||
make: 9000,
|
make: 9000,
|
||||||
upgrade: 1,
|
upgrade: 1,
|
||||||
},
|
},
|
||||||
@@ -187,6 +187,8 @@ let contextBRBCONST = {
|
|||||||
settings: {
|
settings: {
|
||||||
prestige: 1,
|
prestige: 1,
|
||||||
tokens: 0,
|
tokens: 0,
|
||||||
|
quality: 0,
|
||||||
|
numberOfAnimals: 3,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,3 +207,7 @@ const updateContext = (context) => {
|
|||||||
context.settings.tokens = 0; // Set tokens to 0
|
context.settings.tokens = 0; // Set tokens to 0
|
||||||
context.settings.prestige += 0.5; // Add 0.5 to prestige
|
context.settings.prestige += 0.5; // Add 0.5 to prestige
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function log(mess = 'If you see this then message MrEidam that it doesn\'t work'){
|
||||||
|
alert(mess);
|
||||||
|
}
|
||||||
1111
js/shop.js
1111
js/shop.js
File diff suppressed because it is too large
Load Diff
322
js/title.js
322
js/title.js
@@ -1,63 +1,20 @@
|
|||||||
let items;
|
let bigredbutton;
|
||||||
let cs;
|
let cs;
|
||||||
|
|
||||||
window.onload = function(){
|
window.onload = function(){
|
||||||
let socmenu = document.querySelector('.socmenu');
|
let socmenu = document.querySelector('.socmenu');
|
||||||
let toggle = document.querySelector('.toggle');
|
let toggle = document.querySelector('.toggle');
|
||||||
items = {
|
|
||||||
clicks:0,
|
bigredbutton = contextBRBCONST
|
||||||
dogs:0,
|
|
||||||
cats:0,
|
|
||||||
foxes:0,
|
|
||||||
wolfs:0,
|
|
||||||
hamsters:0,
|
|
||||||
whales:0,
|
|
||||||
capybaras:0,
|
|
||||||
platapuses:0,
|
|
||||||
porcupines:0,
|
|
||||||
hippos:0,
|
|
||||||
snakes:0,
|
|
||||||
cheetahs:0,
|
|
||||||
pythons:0,
|
|
||||||
girrafes:0,
|
|
||||||
lions:0,
|
|
||||||
otters:0,
|
|
||||||
meerkat:0,
|
|
||||||
raccoon:0,
|
|
||||||
owl:0,
|
|
||||||
badger:0,
|
|
||||||
squirrel:0,
|
|
||||||
chameleon:0,
|
|
||||||
chicken:0,
|
|
||||||
wombat:0,
|
|
||||||
panther:0,
|
|
||||||
coyote:0,
|
|
||||||
frog:0,
|
|
||||||
bear:0,
|
|
||||||
pig:0,
|
|
||||||
seal:0,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lemons:0,
|
|
||||||
lt3:0,
|
|
||||||
pres:1,
|
|
||||||
Mclick:1,
|
|
||||||
token:0,
|
|
||||||
}
|
|
||||||
load();
|
load();
|
||||||
update();
|
update();
|
||||||
for(let item in items){
|
|
||||||
if(!items[item]){
|
|
||||||
items[item] = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cash();
|
cash();
|
||||||
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
if(navigator.language == 'cs' || navigator.language == 'cs-CZ'){
|
||||||
document.title = 'BRB - Hlavní menu'
|
document.title = 'BRB - Hlavní menu'
|
||||||
document.querySelector('#tit').innerHTML = 'BRB - HRA';
|
document.querySelector('#tit').innerHTML = 'BRB - HRA';
|
||||||
document.querySelector('#heh').innerHTML = 'Zmáčkni tlačítko aby ses dostal do hry!';
|
document.querySelector('#heh').innerHTML = 'Zmáčkni tlačítko aby ses dostal do hry!';
|
||||||
document.querySelector('footer').innerHTML = `Vytvořil: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
document.querySelector('footer').innerHTML = `Vytvořil: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
||||||
}else{
|
}else{
|
||||||
document.title = 'BRB - Main Menu';
|
document.title = 'BRB - Main Menu';
|
||||||
document.querySelector('#tit').innerHTML = 'BRB THE GAME';
|
document.querySelector('#tit').innerHTML = 'BRB THE GAME';
|
||||||
@@ -65,241 +22,64 @@ window.onload = function(){
|
|||||||
document.querySelector('footer').innerHTML = `Made by: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
document.querySelector('footer').innerHTML = `Made by: <a href="https://www.youtube.com/@MrEidam">MrEidam</a>`;
|
||||||
}
|
}
|
||||||
toggle.onclick = () => {
|
toggle.onclick = () => {
|
||||||
socmenu.classList.toggle('active');
|
socmenu.classList.toggle('active');
|
||||||
};
|
};
|
||||||
toShop()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function click(){
|
function click(){
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
document.querySelector('#imgcli').src = '../img/icons8-clicked.png';
|
document.querySelector('#imgcli').src = '../img/icons8-clicked.png';
|
||||||
}
|
}
|
||||||
},750);
|
},750);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
document.querySelector('#imgcli').src = '../img/icons8-rest.svg';
|
document.querySelector('#imgcli').src = '../img/icons8-rest.svg';
|
||||||
}
|
}
|
||||||
},1000);
|
},1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function calculateCS(){
|
||||||
|
const anim = bigredbutton.items.animals;
|
||||||
|
let prestigeMultiplier = bigredbutton.settings.prestige || 1;
|
||||||
|
let clicksPerSecond = 0;
|
||||||
|
|
||||||
|
anim.forEach(animal => {
|
||||||
|
const { number = 0, make = 0, upgrade = 1 } = animal;
|
||||||
|
clicksPerSecond += number*make*upgrade;
|
||||||
|
});
|
||||||
|
|
||||||
|
clicksPerSecond *= prestigeMultiplier;
|
||||||
|
|
||||||
|
return clicksPerSecond;
|
||||||
}
|
}
|
||||||
|
|
||||||
function cash(){
|
function cash(){
|
||||||
setTimeout (() => {
|
setTimeout (() => {
|
||||||
cs = items.dogs+items.cats*12+items.foxes*18+items.wolfs*100+items.hamsters*130+items.whales*220+items.capybaras*280+items.platapuses*400+items.porcupines*650+items.hippos*950+items.snakes*1000+items.cheetahs*3000+items.pythons*7800+items.girrafes*8400+items.otters*9000+items.meerkat*9800+items.raccoon*14500+items.owl*16000+items.badger*32000+items.squirrel*50000+items.chameleon*70000+items.chicken*120000+items.wombat*280000+items.panther*550000+items.coyote*840000+items.frog*900000+items.bear*950000+items.pig*1150000+(items.seal||0)*1300000;
|
cs = calculateCS();
|
||||||
items.clicks += cs*items.pres;
|
bigredbutton.items.special[0].number += cs;
|
||||||
items.lemons += (items.lt3/100)*items.pres;
|
//items.lemons += (items.lt3/100)*items.pres;
|
||||||
update();cash();
|
|
||||||
if(document.title === 'BRB - Klikání'||document.title === 'BRB - Clicking'){
|
update();cash();
|
||||||
uploadClicking();
|
if(document.title === 'BRB - Klikání'||document.title === 'BRB - Clicking'){
|
||||||
}
|
uploadClicking();
|
||||||
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
}
|
||||||
uploadShop();
|
if(document.title === 'BRB - Obchod'||document.title === 'BRB - Shop'){
|
||||||
click();
|
uploadShop();
|
||||||
}
|
click();
|
||||||
|
}
|
||||||
////console.log(`Clicks: ${items.clicks}`);
|
////console.log(`Clicks: ${items.clicks}`);
|
||||||
},1000)
|
},1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
function load(){
|
function load(){
|
||||||
if (localStorage.getItem('items')!=null){
|
if (localStorage.getItem('BRB-Progress')!=null){
|
||||||
items = JSON.parse(localStorage.getItem('items'));
|
bigredbutton = JSON.parse(localStorage.getItem('BRB-Progress'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update
|
// Update
|
||||||
function update(){
|
function update(){
|
||||||
let i = JSON.stringify(items);
|
let i = JSON.stringify(bigredbutton);
|
||||||
localStorage.setItem('items', i);
|
localStorage.setItem('BRB-Progress', i);
|
||||||
}
|
|
||||||
|
|
||||||
let bigredbutton = {
|
|
||||||
items: {
|
|
||||||
special:[
|
|
||||||
{
|
|
||||||
name: 'click',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
make: 0,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'lemon',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'lemon tree',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
animals: [
|
|
||||||
{
|
|
||||||
name: 'dog',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 100,
|
|
||||||
make: 1,
|
|
||||||
upgrade: 1, // min 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'cat',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 1200,
|
|
||||||
make: 12,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'fox',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 1800,
|
|
||||||
make: 18,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'wolf',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 10000,
|
|
||||||
make: 100,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'hamster',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 13000,
|
|
||||||
make: 130,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'whale',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 35000,
|
|
||||||
make: 350,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'capybara',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 41000,
|
|
||||||
make: 410,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'snake',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 50000,
|
|
||||||
make: 500,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'cheetah',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 55000,
|
|
||||||
make: 550,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'giraffe',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 150000,
|
|
||||||
make: 1500,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'otter',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 475000,
|
|
||||||
make: 4750,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'racoon',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 650000,
|
|
||||||
make: 6500,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'badger',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 740000,
|
|
||||||
make: 7400,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'squirrel',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 9000000,
|
|
||||||
make: 9000,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'chameleon',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 1900000,
|
|
||||||
make: 19000,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'chicken',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 2700000,
|
|
||||||
make: 27000,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'wombat',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 3000000,
|
|
||||||
make: 30000,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'frog',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 5000000,
|
|
||||||
make: 50000,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'pig',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 13500000,
|
|
||||||
make: 135000,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'seal',
|
|
||||||
number: 0,
|
|
||||||
history: 0,
|
|
||||||
cost: 27590000,
|
|
||||||
make: 275900,
|
|
||||||
upgrade: 1,
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
settings: {
|
|
||||||
prestige: 1,
|
|
||||||
tokens: 0,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
10
js/upgr.js
10
js/upgr.js
@@ -1,5 +1,5 @@
|
|||||||
function loadUpgrades(){
|
function loadUpgrades(){
|
||||||
if (localStorage.getItem('items')!=null){
|
/*if (localStorage.getItem('items')!=null){
|
||||||
items = JSON.parse(localStorage.getItem('items'));
|
items = JSON.parse(localStorage.getItem('items'));
|
||||||
prog.max = 1000*items.pres;
|
prog.max = 1000*items.pres;
|
||||||
}
|
}
|
||||||
@@ -29,14 +29,14 @@ function loadUpgrades(){
|
|||||||
presBT1.innerHTML = `1 Ticket for ${fornum(2000)} Lemons`;
|
presBT1.innerHTML = `1 Ticket for ${fornum(2000)} Lemons`;
|
||||||
ItsTime.innerHTML = `Let's do this!`;
|
ItsTime.innerHTML = `Let's do this!`;
|
||||||
if(items.pres > 1) got.innerHTML = `You have ${items.pres-1} Prestige points`;
|
if(items.pres > 1) got.innerHTML = `You have ${items.pres-1} Prestige points`;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// UploadUpgrades
|
// UploadUpgrades
|
||||||
function uploadUpgrades(){update();loadUpgrades();}
|
//function uploadUpgrades(){update();loadUpgrades();}
|
||||||
|
|
||||||
/* U P G R A D E S */
|
/* U P G R A D E S */
|
||||||
|
/*
|
||||||
function buyMcc(){
|
function buyMcc(){
|
||||||
alert("Doesn't work");
|
alert("Doesn't work");
|
||||||
return 0;
|
return 0;
|
||||||
@@ -176,4 +176,4 @@ function TheThing(){
|
|||||||
toClick();
|
toClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
29
txt/add.txt
29
txt/add.txt
@@ -23,6 +23,7 @@ max 5 hour
|
|||||||
1 pig = 135 000 c/s = 7 624 300 | 2 frog + 5 racc
|
1 pig = 135 000 c/s = 7 624 300 | 2 frog + 5 racc
|
||||||
1 seal = 275 900 c/s = 15 323 600 | 2 pig + 10 foxes
|
1 seal = 275 900 c/s = 15 323 600 | 2 pig + 10 foxes
|
||||||
|
|
||||||
|
//Removed
|
||||||
1 platypus
|
1 platypus
|
||||||
1 porcupine
|
1 porcupine
|
||||||
1 hippo
|
1 hippo
|
||||||
@@ -39,30 +40,4 @@ compile to .exe and add it to the play store
|
|||||||
|
|
||||||
add complete history of clicks, dogs, cats, lemons, ...
|
add complete history of clicks, dogs, cats, lemons, ...
|
||||||
|
|
||||||
Wiki on a new page - https://wiki.mreidam-brb.com
|
Wiki on a new page - https://wiki.mreidam-brb.com
|
||||||
|
|
||||||
BRB = {
|
|
||||||
items: {
|
|
||||||
animals: [
|
|
||||||
{
|
|
||||||
name: 'dog',
|
|
||||||
number: 0,
|
|
||||||
history: 25,
|
|
||||||
cost: 100,
|
|
||||||
make: 1,
|
|
||||||
upgrade: 1, // min 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'cat',
|
|
||||||
number: 5,
|
|
||||||
history: 6,
|
|
||||||
cost: 1200,
|
|
||||||
make: 12,
|
|
||||||
upgrade: 1,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
settings :{
|
|
||||||
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user