Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes from gh-pages into master #158

Open
wants to merge 180 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
07d21bf
Merge changes from branch master
Apr 8, 2014
47146c7
Fix for checking the price discount value of Santa upgrades
Apr 8, 2014
6d4baf2
Initial fix for new version
Apr 9, 2014
ee7ecd6
Award anti-vanilla achievement on load
Apr 9, 2014
2faac03
Add new upgrade prereqs
Apr 9, 2014
9f0c45e
Fix breaking
Apr 10, 2014
5144634
Update fc_main.js
Apr 10, 2014
20ec4da
Santa fix
Apr 10, 2014
6069334
Update fc_main.js
Apr 10, 2014
729ba85
Fix final form error
Apr 12, 2014
48e11f3
Bigger numbers, merge from branch/master
Apr 18, 2014
d6e1bb8
Update fcReset to pop wrinklers and clear stats
Apr 22, 2014
0eb2714
Make FC aware of wrinkler cookies as well.
Apr 22, 2014
eda2135
Wrinkler HC in graphs
Apr 22, 2014
26c0349
Add wrinkler info window and condense keydown listeners
Apr 25, 2014
d93fdb2
Frenzy/Blood Frenzy should be more accurate in payouts
Apr 25, 2014
113757f
Remove wrinkler saving, add toggleable wrinkler valuation
Apr 28, 2014
aa679f5
Remove wrinkler saving, add toggleable wrinkler valuation
Apr 28, 2014
f2aa772
Fix huge wrinkler bug
Apr 28, 2014
fb0ff5a
Version Tick
Apr 28, 2014
8eb6d66
Remove precalculated golden/reindeer probability lists
Apr 30, 2014
f32bb02
Frenzy/Clot probabilities don't include chain effects
Apr 30, 2014
a9f3cc8
Allow seasons to change as soon as you have all related cookies
May 1, 2014
56aeb07
Create test.json
May 12, 2014
7389831
Initial Easter Fix - not complete
May 18, 2014
bae5e6b
Century Egg fix? Maybe?
May 18, 2014
57eb4e4
Update fc_main.js
May 18, 2014
cfbd5e4
Update fc_main.js
May 18, 2014
a4c9974
Update fc_main.js
May 18, 2014
7e07e8d
Update fc_main.js
May 18, 2014
fc681d4
Redraw every 10 purchases for funsies
May 18, 2014
66cefac
Update fc_main.js
May 18, 2014
cbb075b
Add 'e' for export save popup
May 19, 2014
b0b9166
Add easter to holiday cookies
May 19, 2014
1e89dc5
Protect keyboard shortcuts from activating during prompts
May 19, 2014
e9a90f7
Add wrinklerspawn to calculations
May 20, 2014
390cc86
Change 'Season' blacklist to 'Pledging Only'
May 20, 2014
9329805
Change 'Season' blacklist to 'No Buildings'
May 20, 2014
f6f07e6
Remove Grandmapocalypse ending state, since nobody uses it for that a…
May 20, 2014
3c7b420
Fix for building blacklist
May 20, 2014
7cc07ce
Add extra sorting to the recommendation list
May 20, 2014
b4fa1d9
Efficiency should sort smallest to largest, and don't buy Infinite ef…
May 20, 2014
c1b6c43
Update fc_main.js
May 20, 2014
0230124
Change frenzy and HC gain console logging
May 20, 2014
b9206e4
Change frenzy and HC gain console logging
May 20, 2014
b45f87d
Update fc_main.js
May 20, 2014
5da5201
HC logging
May 20, 2014
f9c2123
Update fc_main.js
May 20, 2014
adae71b
Display more detailed rate info
May 20, 2014
8b2a49d
Update fc_button.js
May 20, 2014
eae2844
Default to valid gc state
May 20, 2014
90b2752
Pop wrinklers if in Easter and don't have all eggs, add 'pastemode'
May 20, 2014
4849531
Add pastemode because it's silly
May 20, 2014
bbbc75f
Remove 'includeWrinklers' option
May 20, 2014
feba410
Allow pastemode to buy even worse things
May 20, 2014
d5c4697
Pastemode should only reverse when recalculating the cache
May 20, 2014
41fd54f
Cumulative Building Cost is using wrong discount
May 20, 2014
fab2429
;
May 20, 2014
2e8d958
Alter how GC probabilities are stored/calculated
May 20, 2014
09b084d
Alter how GC probabilities are stored/calculated
May 20, 2014
f8fa80c
Update cc_upgrade_prerequisites.js
May 20, 2014
1c068bd
Update fc_main.js
May 20, 2014
28ad442
Move polyfill
May 20, 2014
ed32d27
Update fc_main.js
May 20, 2014
ef40363
Update fc_main.js
May 20, 2014
468e58e
Update wrinkler calcs everywhere
May 20, 2014
3b8d099
Version Tick
May 20, 2014
c0d439c
Add 'defaultPurchase' for completely empty recommendation lists
May 22, 2014
47b4504
Add default purchases that do nothing if recommendation list is empty…
May 22, 2014
f57f75e
Update fc_main.js
May 22, 2014
a329b3f
Add infobox to FC Reset code
May 22, 2014
ef4be88
Prettify reset prompt
May 22, 2014
cd8e023
Also make it a real number, that'd be great.
May 22, 2014
c066743
Update fc_main.js
May 22, 2014
3dc34ed
Update fc_main.js
May 22, 2014
9ac26b8
Update fc_main.js
May 22, 2014
c61eb53
Add some new info
May 27, 2014
dd474ca
Make Choc Recoup include (effective) time to buy
May 27, 2014
c8e0a60
Typo
May 27, 2014
0e4f073
Add chocolateValue()
May 28, 2014
380fa79
Include wrinklers/chocolate in HC values
May 28, 2014
7b4e18e
Add new keyboard shortcuts (Reset, Manual Save)
May 28, 2014
dedbc43
Update fc_button.js
May 28, 2014
c448b90
Update fc_button.js
May 28, 2014
bca667d
Update fc_button.js
May 28, 2014
3900e43
Update fc_button.js
May 28, 2014
2f4aad3
Update fc_button.js
May 28, 2014
8178b08
Update fc_button.js
May 28, 2014
15e7aa2
Update fc_button.js
May 28, 2014
86a19d0
Update fc_button.js
May 28, 2014
0d9803b
Update fc_button.js
May 28, 2014
b2fdd51
Update fc_button.js
May 28, 2014
0823d77
Update bank drawing and add markers for current
May 28, 2014
447d340
Update fc_button.js
May 28, 2014
5e1c8d3
Fix Chocolate Recoup to be more accurate
May 28, 2014
036667a
Simplify Chocolate Recoup, Change Separator Color
May 28, 2014
436ec0d
Add helper methods for behind the scenes
May 28, 2014
40b2136
Rename Method
May 28, 2014
831788c
Attempt to fix autobuy delay forever and ever
Jun 6, 2014
47997ba
Version tick
Jun 6, 2014
ef13c25
Comments
Jun 11, 2014
6b9de03
Add v1.9 branching folders/files
Dec 23, 2015
542a7a0
Create cc_upgrade_prerequisites.js
Dec 23, 2015
25fa6c9
Create fc_button.js
Dec 23, 2015
c32e6c7
Old Beta version folder
Dec 23, 2015
3d0245f
Create cc_upgrade_prerequisites.js
Dec 23, 2015
025278c
Create fc_button.js
Dec 23, 2015
56d6058
Rename fc_main.js to 1.0466/fc_main.js
Dec 23, 2015
01b0c42
Rename fc_button.js to 1.0466/fc_button.js
Dec 23, 2015
d32a403
Rename cc_upgrade_prerequisites.js to 1.0466/cc_upgrade_prerequisites.js
Dec 23, 2015
070fe84
Add version detection
Dec 23, 2015
962d29e
Update frozen_cookies.js
Dec 23, 2015
8516f1c
Update frozen_cookies.js
Dec 23, 2015
fce23fb
Update frozen_cookies.js
Dec 23, 2015
6a023fa
Potential fix for Golden Switch issues
Dec 23, 2015
2e2bb83
Re-allow ascending
Dec 24, 2015
03960cd
Allow dragonflight time to appear in stats
Dec 24, 2015
fe608f2
Remove HC circle and push whole circle right
Dec 24, 2015
f95a9bc
Track HC gains at different frenzy levels
Dec 24, 2015
46851ee
Display frenzy gains
Dec 24, 2015
9aaf3c6
)
Dec 24, 2015
88179f8
Update fc_main.js
Dec 24, 2015
4687183
Update fc_main.js
Dec 24, 2015
12c4117
Update fc_button.js
Dec 24, 2015
92cd345
Update fc_main.js
Dec 24, 2015
00aa64d
Remove logging, fix typo
Dec 24, 2015
7a79b65
Fix frenzy HC gain tracking
Dec 24, 2015
b96b440
Make golden cookie time more flexible
Dec 28, 2015
c1eea9b
Make GC possibly more flexible
Dec 28, 2015
792c331
Version tick
Dec 28, 2015
11f3678
Create 1.903 Branch
Feb 5, 2016
198b4e9
Create fc_button.js
Feb 5, 2016
cdb2e51
Create cc_upgrade_prerequisites.js
Feb 5, 2016
b0e0d64
Fix a change in Season Change buyFunctions
Feb 5, 2016
e21239a
Make header/tabs persistent
Feb 5, 2016
f70be19
Add multibuilding buy
Feb 5, 2016
3f00da7
Update fc_main.js
Feb 5, 2016
83829fe
Rename 1.903/fc_main.js to 1.904/fc_main.js
Feb 6, 2016
1a8d29f
Rename 1.903/fc_button.js to 1.904/fc_button.js
Feb 6, 2016
eda9bc5
Rename 1.903/cc_upgrade_prerequisites.js to 1.904/cc_upgrade_prerequi…
Feb 6, 2016
d3944e4
Rename 1.904/cc_upgrade_prerequisites.js to 1.905/cc_upgrade_prerequi…
Feb 6, 2016
e4b2877
Rename 1.904/fc_button.js to 1.905/fc_button.js
Feb 6, 2016
4c8af44
Rename 1.904/fc_main.js to 1.905/fc_main.js
Feb 6, 2016
aeb39cf
Add support for unsupported versions
Feb 6, 2016
b700555
Update to Lucky GC valuation
Feb 6, 2016
fca9b83
Reuse new tiered logic for building prereq list
Feb 7, 2016
803871c
Add widths to the internal info section's columns
Feb 7, 2016
6dbae6b
Update cc_upgrade_prerequisites.js
Feb 9, 2016
9397a8b
Clean up JSON and add Easter prereqs
Feb 9, 2016
b65c3d2
Add findIndex polyfill
Feb 10, 2016
d513ba4
Update GC Bank calculations
Feb 10, 2016
c5d4fac
Make the bank actually right this time.
Feb 10, 2016
fbdc758
Maybe... fix some more of the GC calculations?
Feb 10, 2016
2c47768
Update cookie bank value
Feb 10, 2016
682aa58
Delete test.json
Feb 11, 2016
a8bdcb8
First pass at fixing achievements
Feb 11, 2016
a055213
.
Feb 11, 2016
bd28e3b
Update fc_main.js
Feb 11, 2016
ccfe563
Add no bank to the bank section
Feb 12, 2016
5ec86d2
Update GC bank section to be more accurate
Feb 12, 2016
f415df7
Update GC Banks to be more accurate
Feb 12, 2016
3a7f59c
Update buy function to work with toggleInto upgrades
Feb 12, 2016
9913abf
Change overlap definitions
Feb 16, 2016
8e2af3c
Use new overlap definitions
Feb 16, 2016
1b108dd
Change polyfill to see if it works better
Feb 17, 2016
063e10d
Fix reset
Feb 17, 2016
a5a57cd
Rewrite the ascension logic to be more flexible
Feb 17, 2016
2830450
Update fc_main.js
Feb 17, 2016
586de7d
Update fc_main.js
Feb 17, 2016
9e1c531
Update fc_main.js
Feb 17, 2016
0fb3a9f
Update fc_main.js
Feb 17, 2016
c5c6bf3
Update next HC calcs to use Math.floor
Feb 17, 2016
be441d5
Prevent chain cookies from screwing up GC time valuation
Feb 17, 2016
12053d1
Update fc_main.js
Feb 17, 2016
dba1aa4
Add comments
Feb 19, 2016
b6fc678
Possibly fix wrinkler bug during reset
Feb 22, 2016
e4ec1e1
Add effective vs average function
Feb 23, 2016
d3b4f82
Add eCPS/Average CPS to FC Tab
Feb 23, 2016
3a62b7f
Alter compareCps function to use seconds
Feb 23, 2016
8f37a79
Update fc_main.js
Feb 23, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
309 changes: 309 additions & 0 deletions 1.0466/cc_upgrade_prerequisites.js

Large diffs are not rendered by default.

55 changes: 44 additions & 11 deletions fc_button.js → 1.0466/fc_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ function FCMenu() {
chainRecommendation = nextChainedPurchase(),
isChained = !(recommendation.id == chainRecommendation.id && recommendation.type == chainRecommendation.type),
bankLevel = bestBank(chainRecommendation.efficiency),
actualCps = Game.cookiesPs + Game.mouseCps() * FrozenCookies.cookieClickSpeed;
actualCps = Game.cookiesPs + Game.mouseCps() * FrozenCookies.cookieClickSpeed,
chocolateRecoup = (recommendation.type == 'upgrade' ? recommendation.cost : recommendation.cost * 0.425) / (recommendation.delta_cps * 21);

subsection.append($('<div>').addClass('listing').html('<b>Next Purchase:</b> ' + recommendation.purchase.name));
if (isChained) {
Expand All @@ -350,6 +351,9 @@ function FCMenu() {
if (isChained) {
subsection.append($('<div>').addClass('listing').html('<b>Time till Chain completion:</b> ' + timeDisplay(divCps(Math.max(0,(chainRecommendation.cost + bankLevel.cost - Game.cookies)), actualCps))));
}
if (Game.HasUnlocked('Chocolate egg') && !Game.Has('Chocolate egg')) {
subsection.append($('<div>').addClass('listing').html('<b>Time to Recoup Chocolate:</b> ' + timeDisplay(divCps(recommendation.cost + bankLevel.cost - Game.cookies, effectiveCps()) + chocolateRecoup)));
}
subsection.append($('<div>').addClass('listing').html('<b>Cost:</b> ' + Beautify(recommendation.cost)));
subsection.append($('<div>').addClass('listing').html('<b>Golden Cookie Bank:</b> ' + Beautify(bankLevel.cost)));
subsection.append($('<div>').addClass('listing').html('<b>Base &#916; CPS:</b> ' + Beautify(recommendation.base_delta_cps)));
Expand All @@ -362,6 +366,9 @@ function FCMenu() {
subsection.append($('<div>').addClass('listing').html('<b>Golden Cookie Efficiency:</b> ' + Beautify(bankLevel.efficiency)));
}
menu.append(subsection);

// Golden Cookies

subsection = $('<div>').addClass('subsection');
subsection.append($('<div>').addClass('title').html('Golden Cookie Information'));
currentCookies = Math.min(Game.cookies, FrozenCookies.targetBank.cost);
Expand All @@ -379,17 +386,23 @@ function FCMenu() {
}
subsection.append($('<div>').addClass('listing').html('<b>Max Lucky Cookie Value:</b> ' + Beautify(maxLuckyValue())));
subsection.append($('<div>').addClass('listing').html('<b>Cookie Bank Required for Max Lucky:</b> ' + Beautify(maxLuckyValue() * 10)));
subsection.append($('<div>').addClass('listing').html('<b>Max Chain Cookie Value:</b> ' + Beautify(calculateChainValue(chainBank(), Game.cookiesPs, (7 - (Game.elderWrath / 3))))));
subsection.append($('<div>').addClass('listing').html('<b>Cookie Bank Required for Max Chain:</b> ' + Beautify(chainBank())));
subsection.append($('<div>').addClass('listing').html('<b>Estimated Cookie CPS:</b> ' + Beautify(gcPs(cookieValue(currentCookies)))));
subsection.append($('<div>').addClass('listing').html('<b>Golden Cookie Clicks:</b> ' + Beautify(Game.goldenClicks)));
subsection.append($('<div>').addClass('listing').html('<b>Missed Golden Cookie Clicks:</b> ' + Beautify(Game.missedGoldenClicks)));
subsection.append($('<div>').addClass('listing').html('<b>Last Golden Cookie Effect:</b> ' + Game.goldenCookie.last));
subsection.append($('<div>').addClass('listing').html('<b>Total Recorded Frenzy Time:</b> ' + timeDisplay(FrozenCookies.gc_time/1000)));
subsection.append($('<div>').addClass('listing').html('<b>Total Recorded Non-Frenzy Time:</b> ' + timeDisplay(FrozenCookies.non_gc_time/1000)));
$.each(FrozenCookies.frenzyTimes, function(rate, time) {
subsection.append($('<div>').addClass('listing').html('<b>Total Recorded Time at x' + rate + ':</b> ' + timeDisplay(time/1000)));
});
menu.append(subsection);

// Heavenly Chips

subsection = $('<div>').addClass('subsection');
subsection.append($('<div>').addClass('title').html('Heavenly Chips Information'));
currHC = Game.prestige['Heavenly chips'];
resetHC = Game.HowMuchPrestige(Game.cookiesReset+Game.cookiesEarned);
resetHC = Game.HowMuchPrestige(Game.cookiesReset + Game.cookiesEarned + wrinklerValue() + chocolateValue());
subsection.append($('<div>').addClass('listing').html('<b>HC Now:</b> ' + Beautify(Game.prestige['Heavenly chips'])));
subsection.append($('<div>').addClass('listing').html('<b>HC After Reset:</b> ' + Beautify(resetHC)));
subsection.append($('<div>').addClass('listing').html('<b>Cookies to next HC:</b> ' + Beautify(nextHC(true))));
Expand All @@ -408,6 +421,8 @@ function FCMenu() {
}
}
menu.append(subsection);

// Other Information
subsection = $('<div>').addClass('subsection');
subsection.append($('<div>').addClass('title').html('Other Information'));
cps = baseCps() + baseClickingCps(FrozenCookies.cookieClickSpeed * FrozenCookies.autoClick);
Expand All @@ -417,8 +432,15 @@ function FCMenu() {
subsection.append($('<div>').addClass('listing').html('<b>Base CPS' + clickStr + baseChosen + ':</b> ' + Beautify(cps)));
subsection.append($('<div>').addClass('listing').html('<b>Frenzy CPS' + clickStr + frenzyChosen + ':</b> ' + Beautify(cps * 7)));
subsection.append($('<div>').addClass('listing').html('<b>Estimated Effective CPS:</b> ' + Beautify(effectiveCps())));
subsection.append($('<div>').addClass('listing').html('<b>Game Started:</b> ' + Game.sayTime((Date.now()-Game.startDate)/1000*Game.fps)));
if (Game.HasUnlocked('Chocolate egg') && !Game.Has('Chocolate egg')) {
subsection.append($('<div>').addClass('listing').html('<b>Chocolate Egg Value:</b> ' + Beautify(chocolateValue())));
}
if (liveWrinklers().length > 0) {
subsection.append($('<div>').addClass('listing').html('<b>Wrinkler Value:</b> ' + Beautify(wrinklerValue())));
}
menu.append(subsection);


if (FrozenCookies.preferenceValues) {
subsection = $('<div>').addClass('subsection');
subsection.append($('<div>').addClass('title').html('Frozen Cookie Controls'));
Expand Down Expand Up @@ -452,12 +474,23 @@ function FCMenu() {
chainStr = (item.unlocked === 0) ? ' (C)' : '';
buildTable.append($('<tr><td><b>' + item.name + chainStr + '</b></td><td>' + (Math.floor(rec.efficiencyScore * 10000) / 100).toString() + '%</td><td>' + Beautify(rec.efficiency) + '</td><td>' + Beautify(rec.cost) + '</td><td>' + Beautify(rec.delta_cps) + '</td></tr>'));
});
bankLucky = {'cost': luckyBank(), 'efficiency': cookieEfficiency(Game.cookies, luckyBank())};
bankLuckyFrenzy = {'cost': luckyFrenzyBank(), 'efficiency': cookieEfficiency(Game.cookies, luckyFrenzyBank())};
bankChain = {'cost': chainBank(), 'efficiency': cookieEfficiency(Game.cookies, chainBank())};
buildTable.append($('<tr><td><b>Lucky Bank</b></td><td>n/a</td><td>' + Beautify(bankLucky.efficiency) + '</td><td>' + Beautify(Math.max(0,bankLucky.cost - Game.cookies)) + '</td><td>' + Beautify(gcPs(cookieValue(bankLucky.cost) - cookieValue(Game.cookies))) + '</td></tr>'));
buildTable.append($('<tr><td><b>Lucky Frenzy Bank</b></td><td>n/a</td><td>' + Beautify(bankLuckyFrenzy.efficiency) + '</td><td>' + Beautify(Math.max(0,bankLuckyFrenzy.cost - Game.cookies)) + '</td><td>' + Beautify(gcPs(cookieValue(bankLuckyFrenzy.cost) - cookieValue(Game.cookies))) + '</td></tr>'));
buildTable.append($('<tr><td><b>Chain Bank</b></td><td>n/a</td><td>' + Beautify(bankChain.efficiency) + '</td><td>' + Beautify(Math.max(0,bankChain.cost - Game.cookies)) + '</td><td>' + Beautify(gcPs(cookieValue(bankChain.cost) - cookieValue(Game.cookies))) + '</td></tr>'));
// Table Dividers
buildTable.append($('<tr><td colspan="5">&nbsp;</td></tr>'));
buildTable.append($('<tr><td colspan="5">&nbsp;</td></tr>').css('border-top', '2px dashed #999'));

banks = [{name: 'Lucky Bank', cost: luckyBank(), efficiency: cookieEfficiency(Game.cookies, luckyBank())},
{name: 'Lucky Frenzy Bank', cost: luckyFrenzyBank(), efficiency: cookieEfficiency(Game.cookies, luckyFrenzyBank())},
{name: 'Chain Bank', cost: chainBank(), efficiency: cookieEfficiency(Game.cookies, chainBank())}];

banks.forEach(function(bank) {
var deltaCps = effectiveCps(bank.cost) - effectiveCps();
buildTable.append($('<tr><td colspan="2"><b>' + bank.name + (bank.deltaCps === 0 ? ' (*)' : '') + '</b></td><td>' + Beautify(bank.efficiency) + '</td><td>' + Beautify(Math.max(0, bank.cost - Game.cookies)) + '</td><td>' + Beautify(deltaCps) + '</td></tr>'));
});
buildTable.append($('<tr><td colspan="5">&nbsp;</td></tr>'));
buildTable.append($('<tr><td colspan="5">&nbsp;</td></tr>').css('border-top', '2px dashed #999'));
$.each({'Pledging/Appeased' : 0, 'One Mind/Awoken' : 1, 'Displeased' : 2, 'Full Wrath/Angered' : 3}, function(k,v) {
buildTable.append($('<tr><td colspan="2"><b>' + k + (Game.elderWrath === v ? ' (*)' : '') + '</b></td><td colspan="2" title="Ratio of Effective CPS vs Base CPS">' + Beautify(effectiveCps(Game.cookies, v) / baseCps()) + '</td><td>' + Beautify(effectiveCps(Game.cookies, v) - effectiveCps()) + '</td></tr>'));
});
subsection.append($('<div>').addClass('listing').append(buildTable));
menu.append(subsection);
};
Expand Down
Loading