Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.



Check if you are posting in the correct category.



The Off Topic section is not meant for discussing Cookie Clicker.

CBTG gets wrong when selling a building

21102110 Member Posts: 81 ✭✭
Because a video explains better than approximative words:


Summary:
When selling a building, CBTG value gets the new in-bank value, instead of adding it to itself. Weird.
Does the universe have a temporal end? Either yes or no, the answer is absolutely frightening...
Tagged:

Comments

  • ChocolateMachineChocolateMachine Member Posts: 102 ✭✭
    That's on purpose.

    Normally selling a building doesn't increase the CBTA at all. You already baked those cookies before you spent them on a building. Let's say in a new game, you click 15 times, buy a cursor for 15, then sell it for 8. You have 8 cookies in the bank and you have baked 15 total. You haven't baked 23; those 8 were already counted among the original 15.

    The weirdness starts happening when you sell buildings for more than you bought them for, either because of some combination of price buffs or from something like spontaneous edifice. Here's the line in the sell function:
    Game.cookiesEarned=Math.max(Game.cookies,Game.cookiesEarned);//this is to avoid players getting the cheater achievement when selling buildings that have a higher price than they used to
    So the CBTA gets set to either itself or the cookies in bank, whichever is higher.
Sign In or Register to comment.