Petals
| Name | Stats | Common | Unusual | Rare | Epic | Legendary |
|---|
| Basic | damage | 10 | 30 | 90 | 270 | 810 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 10 | 30 | 90 | 270 | 810 |
| reload | 2.5 |
| active bar | 2 |
| Rose | damage | 5 | 15 | 45 | 135 | 405 |
| healing | 10 | 30 | 90 | 270 | 810 |
| accuracy | 100% |
| petal health | 5 | 15 | 45 | 135 | 405 |
| reload | 2.5 |
| active bar | 4 |
| Leaf | damage | 7 | 21 | 63 | 189 | 567 |
| healing | 1/round | 3/round | 9/round | 27/round | 81/round |
| accuracy | 100% |
| petal health | 6 | 18 | 54 | 162 | 486 |
| reload | 2.5 |
| active bar | 3 |
| Light | damage | 15 | 45 | 135 | 405 | 1215 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 30% |
| petal health | 5 | 15 | 45 | 135 | 405 |
| reload | 0.8 |
| active bar | 1 |
| Corn | damage | 5 | 15 | 45 | 135 | 405 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 100 | 300 | 900 | 2700 | 8100 |
| reload | 3 |
| active bar | 0.5 |
| Stinger | damage | 50 | 150 | 450 | 1350 | 4050 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 1 | 3 | 9 | 27 | 81 |
| reload | 8 |
| active bar | 7 |
| Pollen | damage | 8 | 24 | 72 | 216 | 648 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 0 | 0 | 0 | 0 | 0 |
| reload | 2 |
| active bar | 1 |
| Rice | damage | 4 | 12 | 36 | 108 | 324 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 25% |
| petal health | 1 | 3 | 9 | 27 | 81 |
| reload | 0.2 |
| active bar | 0.3 |
| Glass | damage | 12 | 36 | 108 | 324 | 972 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 0 | 0 | 0 | 0 | 0 |
| reload | 1 |
| active bar | 3 |
| Clover | damage | 10 | 30 | 90 | 270 | 810 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 10 | 30 | 90 | 270 | 810 |
| reload | 2 |
| active bar | 2 |
| Rock | damage | 25 | 75 | 225 | 675 | 2025 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 15 | 45 | 135 | 405 | 1215 |
| reload | 4 |
| active bar | 2 |
| Heavy | damage | 8 | 24 | 72 | 216 | 648 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 50 | 150 | 450 | 1350 | 4050 |
| reload | 4 |
| active bar | 0.5 |
| Soil | damage | 10 | 30 | 90 | 270 | 810 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health | 10 | 30 | 90 | 270 | 810 |
| reload | 3 |
| active bar | 4 |
| extra health | 50 | 150 | 450 | 1350 | 4050 |
| Shovel | damage | 0 | 0 | 0 | 0 | 0 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | N/A |
| petal health | 0 | 0 | 0 | 0 | 0 |
| reload | 9 | 8 | 7 | 6 | 5 |
| active bar | 10 |
| Ant egg | damage(pet) | 6 | 18 | 54 | 162 | 486 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 100% |
| petal health(pet health) | 250 | 750 | 2250 | 6750 | 20250 |
| reload | 10 |
| active bar | 3 |
| copies | 4 |
| Peas | damage | 15 | 45 | 135 | 405 | 1215 |
| healing | 0 | 0 | 0 | 0 | 0 |
| accuracy | 25% |
| reload | 1 |
| petal health | 0 | 0 | 0 | 0 | 0 |
| active bar | 1 |
| copies | 4 |
Mobs
| Name | Stats | Common | Unusual | Rare | Epic | Legendary |
|---|
| Baby Ant | damage | 10 | 30 | 90 | 270 | 810 |
| health | 30 | 90 | 360 | 1800 | 10800 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Ladybug | damage | 10 | 30 | 90 | 270 | 810 |
| health | 70 | 210 | 840 | 4200 | 25200 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Worker Ant | damage | 10 | 30 | 90 | 270 | 810 |
| health | 70 | 210 | 840 | 4200 | 25200 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Bee | damage | 50 | 150 | 450 | 1350 | 4050 |
| health | 35 | 105 | 420 | 2100 | 12600 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Soldier Ant | damage | 10 | 30 | 90 | 270 | 810 |
| health | 100 | 300 | 1200 | 6000 | 36000 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Rock | damage | 10 | 30 | 90 | 270 | 810 |
| health | 50 | 150 | 600 | 3000 | 18000 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Ant hole | damage | 15 | 45 | 135 | 405 | 1215 |
| health | 750 | 2250 | 9000 | 45000 | 270000 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Queen ant | damage | 10 | 30 | 90 | 270 | 810 |
| health | 200 | 600 | 2400 | 12000 | 72000 |
| armor | 1 | 2 | 7 | 22 | 67 |
| Centipede (each section) | damage | 10 | 30 | 90 | 270 | 810 |
| health | 25 | 75 | 300 | 1500 | 9000 |
| armor | 1 | 2 | 7 | 22 | 67 |
Strength=ap×max(1, ⌈mobdmgph⌉)+5×cd5×max(1, ⌈mobdmgph⌉)×acc×max(0, dmg−armor)
Current Code
C++#include <bits/stdc++.h>
using namespace std;
#define int long long
const int mdfact[15]={0,1,3,9,27,81,243,729,2187,6561};
const int marmor[15]={0,1,2,7,22,65,194,583,583,583};
int mob_dmg[500];
struct petal{
int dmg,ph;
}petals[500];
signed main(){
freopen("data.txt","r",stdin);
freopen("strength.txt","w",stdout);
int max_petal,max_mob,max_rarity;
cin>>max_petal>>max_mob>>max_rarity;
for(int i=1;i<=max_mob;i++)
cin>>mob_dmg[i];
for(int i=1;i<=max_petal;i++){
string name,tp;
cin>>name>>tp;
cout<<name<<": ";
if(tp=="N/A"){
cout<<"N/A"<<endl;
continue;
}
double cd,ap,acc;
cin>>petals[i].dmg>>petals[i].ph>>cd>>ap>>acc;
if(name=="Ant_egg"){
for(int j=1;j<=max_rarity;j++){
int dmg=petals[i].dmg*mdfact[j],ph=petals[i].ph*mdfact[j];
double sum=0;
for(int n=1;n<=max_mob;n++){
for(int m=1;m<=max_rarity;m++){
int mobdmg=mob_dmg[n]*mdfact[m],armor=marmor[m];
int hits=max(1ll,(int)ceil((double)ph/(double)mobdmg)),dam=max(0ll,dmg-armor);
sum+=(double)(5.0*hits*acc*dam)/(double)(ap*hits+5.0*cd);
}
}
cout<<fixed<<setprecision(2)<<4ll*sum/(double)(max_mob*max_rarity)<<' ';
}
}
else{
for(int j=1;j<=max_rarity;j++){
int dmg=petals[i].dmg*mdfact[j],ph=petals[i].ph*mdfact[j];
double sum=0;
for(int n=1;n<=max_mob;n++){
for(int m=1;m<=max_rarity;m++){
int mobdmg=mob_dmg[n]*mdfact[m],armor=marmor[m];
int hits=max(1ll,(int)ceil((double)ph/(double)mobdmg)),dam=max(0ll,dmg-armor);
sum+=(double)(5.0*hits*acc*dam)/(double)(ap*hits+5.0*cd);
}
}
cout<<fixed<<setprecision(2)<<sum/(double)(max_mob*max_rarity)<<' ';
}
}
cout<<endl;
}
return 0;
}
Potential Update Code
C++#include <bits/stdc++.h>
using namespace std;
#define int long long
const int mdfact[15]={0,1,3,9,27,81,243,729,2187,6561};
const int marmor[15]={0,1,2,7,22,65,194,583,583,583};
int mob_dmg[500];
struct petal{
int dmg,ph;
}petals[500];
signed main(){
freopen("data.txt","r",stdin);
freopen("test.txt","w",stdout);
int max_petal,max_mob,max_rarity;
cin>>max_petal>>max_mob>>max_rarity;
for(int i=1;i<=max_mob;i++)
cin>>mob_dmg[i];
for(int i=1;i<=max_petal;i++){
string name,tp;
cin>>name>>tp;
cout<<name<<": ";
if(tp=="N/A"){
cout<<"N/A"<<endl;
continue;
}
double cd,ap,acc;
cin>>petals[i].dmg>>petals[i].ph>>cd>>ap>>acc;
if(name=="Ant_egg"){
for(int j=1;j<=max_rarity;j++){
int dmg=petals[i].dmg*mdfact[j],ph=petals[i].ph*mdfact[j];
double sum=0;
for(int n=1;n<=max_mob;n++){
for(int m=1;m<=max_rarity;m++){
int mobdmg=mob_dmg[n]*mdfact[m],armor=marmor[m];
int hits=max(1ll,(int)ceil((double)ph/(double)mobdmg));
double total_damage=0;
for(int k=1;k<=hits;k++){
int cur_hp=max(0ll,ph-(k-1)*mobdmg);
double cur_dmg=(ph==0)?(double)dmg:(double)cur_hp/(double)ph*(double)dmg;
double dam=max(0.0,cur_dmg-(double)armor);
total_damage+=dam;
}
sum+=(double)(5.0*acc*total_damage)/(double)(ap+hits+5.0*cd);
}
}
cout<<fixed<<setprecision(2)<<4ll*sum/(double)(max_mob*max_rarity)<<' ';
}
}
else{
for(int j=1;j<=max_rarity;j++){
int dmg=petals[i].dmg*mdfact[j],ph=petals[i].ph*mdfact[j];
double sum=0;
for(int n=1;n<=max_mob;n++){
for(int m=1;m<=max_rarity;m++){
int mobdmg=mob_dmg[n]*mdfact[m],armor=marmor[m];
int hits=max(1ll,(int)ceil((double)ph/(double)mobdmg));
double total_damage=0;
for(int k=1;k<=hits;k++){
int cur_hp=max(0ll,ph-(k-1)*mobdmg);
double cur_dmg=(ph==0)?(double)dmg:(double)cur_hp/(double)ph*(double)dmg;
double dam=max(0.0,cur_dmg-(double)armor);
total_damage+=dam;
}
sum+=(double)(5.0*acc*total_damage)/(double)(ap*hits+5.0*cd);
}
}
cout<<fixed<<setprecision(2)<<sum/(double)(max_mob*max_rarity)<<' ';
}
}
cout<<endl;
}
return 0;
}
Strength
| Petal | Common | Unusual | Rare | Epic | Legendary |
|---|
| Basic | 1.38 | N/A(8.29) | N/A(48.70) | N/A(243.68) | N/A(1052.61) |
| Rose | 0.42 | 2.51 | 13.58 | 66.49 | 277.83 |
| Leaf | N/A(0.71) | 4.18 | 23.77 | 118.66 | 500.00 |
| Light | 2.10 | 10.20 | 50.54 | 226.76 | 939.14 |
| Corn | 2.37 | 19.83 | 120.71 | 593.54 | 2502.23 |
| Stinger | 3.57 | 13.89 | 45.81 | 172.44 | 756.45 |
| Pollen | N/A(1.27) | 5.82 | 23.91 | 89.36 | 285.73 |
| Rice | 0.96 | 5.00 | 21.54 | 103.04 | 466.05 |
| Glass | 3.25 | 14.00 | 55.38 | 190.38 | 595.38 |
| Clover | 1.67 | 9.81 | 55.61 | 268.14 | 1124.28 |
| Rock | 3.77 | 22.08 | 123.82 | 603.63 | 2632.19 |
| Heavy | N/A(1.95) | N/A(16.88) | 118.13 | 661.38 | 3076.25 |
| Soil | 1.05 | 6.03 | 32.59 | 150.30 | 607.86 |
| Shovel | 0(N/A) |
| Ant egg | 5.26 | 33.48 | 164.06 | 698.93 | 2615.02 |
| Peas | 5.83 | 24.67 | 96.33 | 321.33 | 996.33 |