## https://nokturne.itch.io/luna-clicker ## The strategy assumes buying only Purple Smart until (You) reach the target and then switching to massing Princess Condense ## Some other ponies have better DPS per cost (especially Ponka Po) but buying them is wildly inefficient compared to more clicking ## Excuse the semicolons, I haven't written Python code in a while def clicker_func_multibuy(clicks_per_second, threshold): gold = 0; gold_per_click=1; twig_cost = 10; seconds = 0; barrier = 1000000; condense_dps = 0 while (barrier > 0): gold += clicks_per_second*gold_per_click; barrier -= (clicks_per_second*gold_per_click + condense_dps); if (gold_per_click < threshold): if (gold_per_click < 10 and gold > twig_cost): gold -= twig_cost; gold_per_click += 2; twig_cost += 10; seconds += 1; elif (gold_per_click < 50 and gold > (twig_cost*5+100)): gold -= (twig_cost*5+100); gold_per_click += 10; twig_cost += 50; seconds += 2; elif (gold > (twig_cost*10+450)): gold -= (twig_cost*10+450); gold_per_click += 20; twig_cost += 100; seconds += 3; elif (gold > 10000): gold -= 10000; condense_dps += 1000; seconds += 1; seconds += 1; print(" Target -", threshold, "g/click, win in ", seconds, "seconds! ", seconds); start = 50; clicks_per_second = 8; print("For", clicks_per_second, "clicks per seconds:"); for i in range(21): clicker_func_multibuy(clicks_per_second, start + 10*i);