balancing

This commit is contained in:
IvarK 2017-09-24 04:08:41 +03:00
parent ae49051cec
commit a535e3c816
3 changed files with 33 additions and 1 deletions

View File

@ -1085,6 +1085,16 @@
</div>
</div>
<div class="popup" id="loadCloud">
<div>You have a cloud save with 69 infinities. Do you want to download it?</div>
<button class="storebtn" style="font-size: 15px" id="loadCloud">Yes</button>
<button class="storebtn" style="font-size: 15px" id="dontLoadCloud">No</button>
</div>
<div class="popup" id="saveCloud">
<div>You have a cloud save with 69 infinities. Do you want to overwrite it?</div>
<button class="storebtn" style="font-size: 15px" id="saveCloud">Yes</button>
<button class="storebtn" style="font-size: 15px" id="dontSaveCloud">No</button>
</div>
</body>
<script src="PlayFab/PlayFabClientApi.js"></script>
<script src="javascripts/autobuyer.js"></script>

View File

@ -327,11 +327,14 @@ function onLoad() {
unspentBonus = Decimal.pow(player.infinityPoints.dividedBy(2),1.5).plus(1)
}
function loadFromString(string) {
player = JSON.parse(atob(string))
onLoad()
}
function load_game() {
var save_data = get_cookie('dimensionSave');
if (!save_data) return;
@ -340,6 +343,7 @@ function load_game() {
}
function save_game() {
set_cookie('dimensionSave', player);
$.notify("Game saved", "info")
@ -1466,7 +1470,7 @@ function buyManyDimensionAutobuyer(tier, bulk) {
}
const infCostMults = [null, 1e2, 1e4, 1e6, 1e8]
const infPowerMults = [null, 20, 15, 10, 5]
const infPowerMults = [null, 50, 30, 10, 5]
function buyManyInfinityDimension(tier) {
var dim = player["infinityDimension"+tier]

View File

@ -496,6 +496,24 @@
}
.popup {
position: absolute;
left: 33%;
top: 33%;
border: 3px solid black;
width: 300px;
height: 120px;
background-color: #E0E0E0;
border-radius: 6px;
text-align:center;
z-index: 2;
color: black;
font-family: Typewriter;
padding: 10px;
display: none;
}
#progress {