- 1.
-
2.
## The strategy assumes buying only Purple Smart until (You) reach the target and then switching to massing Princess Condense
-
3.
## Some other ponies have better DPS per cost (especially Ponka Po) but buying them is wildly inefficient compared to more clicking
-
4.
## Excuse the semicolons, I haven't written Python code in a while
-
5.
-
6.
def clicker_func_multibuy(clicks_per_second, threshold):
-
7.
gold = 0;
-
8.
gold_per_click=1;
-
9.
twig_cost = 10;
-
10.
seconds = 0;
-
11.
barrier = 1000000;
-
12.
condense_dps = 0
-
13.
-
14.
while (barrier > 0):
-
15.
gold += clicks_per_second*gold_per_click;
-
16.
barrier -= (clicks_per_second*gold_per_click + condense_dps);
-
17.
-
18.
if (gold_per_click < threshold):
-
19.
if (gold_per_click < 10 and gold > twig_cost):
-
20.
gold -= twig_cost;
-
21.
gold_per_click += 2;
-
22.
twig_cost += 10;
-
23.
seconds += 1;
-
24.
elif (gold_per_click < 50 and gold > (twig_cost*5+100)):
-
25.
gold -= (twig_cost*5+100);
-
26.
gold_per_click += 10;
-
27.
twig_cost += 50;
-
28.
seconds += 2;
-
29.
elif (gold > (twig_cost*10+450)):
-
30.
gold -= (twig_cost*10+450);
-
31.
gold_per_click += 20;
-
32.
twig_cost += 100;
-
33.
seconds += 3;
-
34.
-
35.
elif (gold > 10000):
-
36.
gold -= 10000;
-
37.
condense_dps += 1000;
-
38.
seconds += 1;
-
39.
-
40.
seconds += 1;
-
41.
print(" Target -", threshold, "g/click, win in ", seconds, "seconds! ", seconds);
-
42.
-
43.
-
44.
-
45.
-
46.
-
47.
start = 50;
-
48.
clicks_per_second = 8;
-
49.
print("For", clicks_per_second, "clicks per seconds:");
-
50.
for i in range(21):
-
51.
clicker_func_multibuy(clicks_per_second, start + 10*i);
191 1.5 KB 51
by Guest
by Guest
by Guest
by Guest
by Guest