mirror of
https://github.com/MrEidam/bigredbutton.git
synced 2026-04-17 15:43:31 +00:00
Version 40.5 - shop fixes + scrollbar
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
v40.5
|
||||||
|
Added: Edited scrollbar
|
||||||
|
|
||||||
|
Fixed: Shop buttons for Czech
|
||||||
v40
|
v40
|
||||||
Added: Otters + Meerkats + Raccoons + Owls
|
Added: Otters + Meerkats + Raccoons + Owls
|
||||||
Prestige!
|
Prestige!
|
||||||
|
|||||||
@@ -243,4 +243,13 @@ ul li a{
|
|||||||
}
|
}
|
||||||
ul li:hover a{
|
ul li:hover a{
|
||||||
color: #44dd44;
|
color: #44dd44;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar{
|
||||||
|
background: transparent;
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb{
|
||||||
|
background: linear-gradient(transparent, #00ec00);
|
||||||
|
border-radius: 0 0 0.5rem 0.5rem;
|
||||||
}
|
}
|
||||||
@@ -272,4 +272,13 @@ ul li a{
|
|||||||
}
|
}
|
||||||
ul li:hover a{
|
ul li:hover a{
|
||||||
color: #44dd44;
|
color: #44dd44;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar{
|
||||||
|
background: transparent;
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb{
|
||||||
|
background: linear-gradient(transparent, #00ec00);
|
||||||
|
border-radius: 0 0 0.5rem 0.5rem;
|
||||||
}
|
}
|
||||||
274
js/shop.js
274
js/shop.js
@@ -182,10 +182,10 @@ function load(){
|
|||||||
ch1.innerHTML = 'Kup Geparda za <br /> 2 hady a 2 ptakopysky'
|
ch1.innerHTML = 'Kup Geparda za <br /> 2 hady a 2 ptakopysky'
|
||||||
py1.innerHTML = 'Kup Kobru za <br /> 1 geparda a 5 hrochů'
|
py1.innerHTML = 'Kup Kobru za <br /> 1 geparda a 5 hrochů'
|
||||||
gi1.innerHTML = 'Kup Žirafu za <br /> 1 kobru a 20 lišek'
|
gi1.innerHTML = 'Kup Žirafu za <br /> 1 kobru a 20 lišek'
|
||||||
ot1.innerHTML = 'Kup Vydru za <br /> 1 žirafu a 20 lišek'
|
ot1.innerHTML = 'Kup Vydru za <br /> 1 žirafu a 2 capybary'
|
||||||
me1.innerHTML = 'Kup Surikatu za <br /> 1 kobru a 20 lišek'
|
me1.innerHTML = 'Kup Surikatu za <br /> 1 vydru a 3 velryby'
|
||||||
ra1.innerHTML = 'Kup Mývala za <br /> 1 kobru a 20 lišek'
|
ra1.innerHTML = 'Kup Mývala za <br /> 1 surikatu a 7 dikobrazů'
|
||||||
ow1.innerHTML = 'Kup Sovu za <br /> 1 kobru a 20 lišek'
|
ow1.innerHTML = 'Kup Sovu za <br /> 1 mývala a 1 hada'
|
||||||
|
|
||||||
lm1.innerHTML = 'Kup Citrón za <b style="font-weight: 1000;">pár</b> koček'
|
lm1.innerHTML = 'Kup Citrón za <b style="font-weight: 1000;">pár</b> koček'
|
||||||
lt1.innerHTML = 'Kup Citrónovník za 5 citrónů'
|
lt1.innerHTML = 'Kup Citrónovník za 5 citrónů'
|
||||||
@@ -449,252 +449,181 @@ function mxlt(){
|
|||||||
upload()
|
upload()
|
||||||
}
|
}
|
||||||
function mxwh(){
|
function mxwh(){
|
||||||
one = Math.floor(items.wolfs/2)
|
let amount = Math.floor(items.wolfs/2);
|
||||||
|
|
||||||
items.wolfs -= one*2
|
items.wolfs -= amount*2;
|
||||||
items.whales += one
|
items.whales += amount;
|
||||||
upload()
|
upload();
|
||||||
}
|
}
|
||||||
let one,two,val
|
let one,two,val
|
||||||
|
|
||||||
// Max Wolf
|
// Max Shop
|
||||||
|
|
||||||
function mxwl(){
|
function mxwl(){
|
||||||
one = Math.floor(items.foxes/5)
|
let amount = Math.min(Math.floor(items.foxes/5), Math.floor(items.dogs/6));
|
||||||
two = Math.floor(items.dogs/6)
|
|
||||||
|
if(amount > 0){
|
||||||
if(one<=two){
|
items.foxes -= amount*5
|
||||||
items.foxes -= one*5
|
items.dogs -= amount*6
|
||||||
items.dogs -= one*6
|
items.wolfs += amount
|
||||||
items.wolfs += one
|
|
||||||
}else if(one>=two){
|
|
||||||
items.foxes -= two*5
|
|
||||||
items.dogs -= two*6
|
|
||||||
items.wolfs += two
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
|
|
||||||
function mxhm(){
|
function mxhm(){
|
||||||
one = Math.floor(items.wolfs/1)
|
let amount = Math.min(Math.floor(items.wolfs/1), Math.floor(items.cats/2));
|
||||||
two = Math.floor(items.cats/2)
|
|
||||||
|
if(amount > 0){
|
||||||
if(one<=two){
|
items.wolfs -= amount*1;
|
||||||
items.wolfs -= one*1
|
items.cats -= amount*2;
|
||||||
items.cats -= one*2
|
items.hamsters += amount;
|
||||||
items.hamsters += one
|
|
||||||
}else if(one>=two){
|
|
||||||
items.wolfs -= two*1
|
|
||||||
items.cats -= two*2
|
|
||||||
items.hamsters += two
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxcp(){
|
function mxcp(){
|
||||||
one = Math.floor(items.whales/1)
|
let amount = Math.min(Math.floor(items.whales/1), Math.floor(items.cats/4));
|
||||||
two = Math.floor(items.cats/4)
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.whales -= one*1
|
items.whales -= amount*1;
|
||||||
items.cats -= one*4
|
items.cats -= amount*4;
|
||||||
items.capybaras += one
|
items.capybaras += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.whales -= two*1
|
|
||||||
items.cats -= two*4
|
|
||||||
items.capybaras += two
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxpl(){
|
function mxpl(){
|
||||||
one = Math.floor(items.capybaras/1)
|
let amount = Math.min(Math.floor(items.capybaras/1), Math.floor(items.wolfs/1));
|
||||||
two = Math.floor(items.wolfs/1)
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.capybaras -= one*1
|
items.capybaras -= amount*1;
|
||||||
items.wolfs -= one*1
|
items.wolfs -= amount*1;
|
||||||
items.platapuses += one
|
items.platapuses += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.capybaras -= two*1
|
|
||||||
items.wolfs -= two*1
|
|
||||||
items.platapuses += two
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxpr(){
|
function mxpr(){
|
||||||
one = Math.floor(items.platapuses/1)
|
let amount = Math.min(Math.floor(items.platapuses/1), Math.floor(items.whales/1));
|
||||||
two = Math.floor(items.whales/1)
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.platapuses -= one*1
|
items.platapuses -= amount*1;
|
||||||
items.whales -= one*1
|
items.whales -= amount*1;
|
||||||
items.porcupines += one
|
items.porcupines += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.platapuses -= two*1
|
|
||||||
items.whales -= two*1
|
|
||||||
items.porcupines += two
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxhi(){
|
function mxhi(){
|
||||||
one = Math.floor(items.porcupines/1)
|
let amount = Math.min(Math.floor(items.porcupines/1), Math.floor(items.hamsters/2));
|
||||||
two = Math.floor(items.hamsters/2)
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.porcupines -= one*1
|
items.porcupines -= amount*1;
|
||||||
items.hamsters -= one*2
|
items.hamsters -= amount*2;
|
||||||
items.hippos += one
|
items.hippos += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.porcupines -= two*1
|
|
||||||
items.hamsters -= two*2
|
|
||||||
items.hippos += two
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxsn(){
|
function mxsn(){
|
||||||
one = Math.floor(items.whales/2);
|
let amount = Math.min(Math.floor(items.whales/2), Math.floor(items.hamsters/4));
|
||||||
two = Math.floor(items.hamsters/4);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.whales -= one*2;
|
items.whales -= amount*2;
|
||||||
items.hamsters -= one*4;
|
items.hamsters -= amount*4;
|
||||||
items.snakes += one;
|
items.snakes += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.whales -= two*2;
|
|
||||||
items.hamsters -= two*4;
|
|
||||||
items.snakes += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch');
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxch(){
|
function mxch(){
|
||||||
one = Math.floor(items.snakes/2);
|
let amount = Math.min(Math.floor(items.snakes/2), Math.floor(items.platapuses/2));
|
||||||
two = Math.floor(items.platapuses/2);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.snakes -= one*2;
|
items.snakes -= amount*2;
|
||||||
items.platapuses -= one*2;
|
items.platapuses -= amount*2;
|
||||||
items.cheetahs += one;
|
items.cheetahs += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.snakes -= two*2;
|
|
||||||
items.platapuses -= two*2;
|
|
||||||
items.cheetahs += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxpy(){
|
function mxpy(){
|
||||||
one = Math.floor(items.cheetahs/1);
|
let amount = Math.min(Math.floor(items.cheetahs/1), Math.floor(items.hippos/5));
|
||||||
two = Math.floor(items.hippos/5);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.cheetahs -= one*1;
|
items.cheetahs -= amount*1;
|
||||||
items.hippos -= one*5;
|
items.hippos -= amount*5;
|
||||||
items.pythons += one;
|
items.pythons += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.cheetahs -= two*1;
|
|
||||||
items.hippos -= two*5;
|
|
||||||
items.pythons += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxgi(){
|
function mxgi(){
|
||||||
one = Math.floor(items.pythons/1);
|
let amount = Math.min(Math.floor(items.pythons/1), Math.floor(items.foxes/20));
|
||||||
two = Math.floor(items.foxes/20);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount){
|
||||||
items.pythons -= one*1;
|
items.pythons -= amount*1;
|
||||||
items.foxes -= one*20;
|
items.foxes -= amount*20;
|
||||||
items.girrafes += one;
|
items.girrafes += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.pythons -= two*1;
|
|
||||||
items.foxes -= two*20;
|
|
||||||
items.girrafes += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxot(){
|
function mxot(){
|
||||||
one = Math.floor(items.girrafes/1);
|
let amount = Math.min(Math.floor(items.girrafes/1), Math.floor(items.capybaras/2));
|
||||||
two = Math.floor(items.capybaras/2);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.girrafes -= one*1;
|
items.girrafes -= amount*1;
|
||||||
items.capybaras -= one*2;
|
items.capybaras -= amount*2;
|
||||||
items.otters += one;
|
items.otters += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.girrafes -= two*1;
|
|
||||||
items.capybaras -= two*2;
|
|
||||||
items.otters += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxme(){
|
function mxme(){
|
||||||
one = Math.floor(items.otters/1);
|
let amount = Math.min(Math.floor(items.otters/1), Math.floor(items.whales/3));
|
||||||
two = Math.floor(items.whales/3);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.otters -= one*1;
|
items.otters -= amount*1;
|
||||||
items.whales -= one*3;
|
items.whales -= amount*3;
|
||||||
items.meerkat += one;
|
items.meerkat += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.otters -= two*1;
|
|
||||||
items.whales -= two*3;
|
|
||||||
items.meerkat += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxra(){
|
function mxra(){
|
||||||
one = Math.floor(items.meerkat/1);
|
let amount = Math.min(Math.floor(items.meerkat/1), Math.floor(items.porcupines/7));
|
||||||
two = Math.floor(items.porcupines/7);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.meerkat -= one*1;
|
items.meerkat -= amount*1;
|
||||||
items.porcupines -= one*7;
|
items.porcupines -= amount*7;
|
||||||
items.raccoon += one;
|
items.raccoon += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.meerkat -= two*1;
|
|
||||||
items.porcupines -= two*7;
|
|
||||||
items.raccoon += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
function mxow(){
|
function mxow(){
|
||||||
one = Math.floor(items.raccoon/1);
|
let amount = Math.min(Math.floor(items.raccoon/1), Math.floor(items.snakes/1));
|
||||||
two = Math.floor(items.snakes/1);
|
|
||||||
|
|
||||||
if(one<=two){
|
if(amount > 0){
|
||||||
items.raccoon -= one*1;
|
items.raccoon -= amount*1;
|
||||||
items.snakes -= one*1;
|
items.snakes -= amount*1;
|
||||||
items.owl += one;
|
items.owl += amount;
|
||||||
}else if(one>=two){
|
|
||||||
items.raccoon -= two*1;
|
|
||||||
items.snakes -= two*1;
|
|
||||||
items.owl += two;
|
|
||||||
}else{
|
}else{
|
||||||
console.log('You fucked up you stupid bitch')
|
console.log('You fucked up you stupid bitch');
|
||||||
}
|
}
|
||||||
upload();
|
upload();
|
||||||
}
|
}
|
||||||
@@ -761,6 +690,21 @@ function fornum(num) {
|
|||||||
|
|
||||||
/* SHOPPING WITH ONLY CLICKS */
|
/* SHOPPING WITH ONLY CLICKS */
|
||||||
|
|
||||||
|
function buyAnimal(animal, cost) {
|
||||||
|
const quantity = Math.floor(items.clicks / cost);
|
||||||
|
|
||||||
|
if (quantity > 0) {
|
||||||
|
items[animal] += quantity;
|
||||||
|
items.clicks -= quantity * cost;
|
||||||
|
upload();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example usage for buying cats
|
||||||
|
function buyCat() {
|
||||||
|
buyAnimal('cats', 1200);
|
||||||
|
}
|
||||||
|
|
||||||
// cat
|
// cat
|
||||||
function buyCcat(){
|
function buyCcat(){
|
||||||
if(items.clicks >= 1200){
|
if(items.clicks >= 1200){
|
||||||
|
|||||||
Reference in New Issue
Block a user