awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou don't have that many.\n");
return;
}
siz+=1;
switch(fish.Rarity)
{
caseFishRarity.Legendary:
{
value=700;
}
break;
caseFishRarity.Rare:
{
value=6*(int)(size+1);
}
break;
caseFishRarity.Uncommon:
{
value=2*(int)(size+1);
}
break;
caseFishRarity.Common:
{
value=(int)(size+1);
}
break;
caseFishRarity.T2Legendary:
{
value=750;
}
break;
caseFishRarity.T2Rare:
{
value=12*(int)(size+1);
}
break;
caseFishRarity.T2Uncommon:
{
value=4*(int)(size+1);
}
break;
caseFishRarity.T2Common:
{
value=2*(int)(size+1);
}
break;
caseFishRarity.T3Legendary:
{
value=800;
}
break;
caseFishRarity.T3Rare:
{
value=18*(int)(size+1);
}
break;
caseFishRarity.T3Uncommon:
{
value=6*(int)(size+1);
}
break;
caseFishRarity.T3Common:
{
value=3*(int)(size+1);
}
break;
caseFishRarity.T4Legendary:
{
value=850;
value=(int)fish.Tier*siz*1;
}
break;
caseFishRarity.T4Rare:
caseFishRarity.Uncommon:
{
value=32*(int)(size+1);
value=(int)fish.Tier*siz*3;
}
break;
caseFishRarity.T4Uncommon:
caseFishRarity.Rare:
{
value=8*(int)(size+1);
value=(int)fish.Tier*siz*6;
}
break;
caseFishRarity.T4Common:
caseFishRarity.Legendary:
{
value=4*(int)(size+1);
value=(int)fish.Tier*100+600;
}
break;
}
value*=amount;
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou're about to sell **{amount} {fish.Name}** for **{((long)value).ToYeedraDisplay()}**.\nType 'ok' to confirm.");
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nTier not available.");
return;
}
foreach(varfinfishinv)
{
int[]amounts;
if(!fishinv.TryGetValue(f.Key,outamounts))
{
amounts=newint[]{0,0,0};
fishinv.Add(f.Key,amounts);
}
fish=fishes.FirstOrDefault(i=>i.Id==f.Key);
if(fish.Rarity!=FishRarity.Legendary)
{
count+=f.Value[0]+f.Value[1]+f.Value[2];
switch(fish.Rarity)//small
{
caseFishRarity.Common:
{
value+=(int)fish.Tier*1*1;
}
break;
caseFishRarity.Uncommon:
{
value+=(int)fish.Tier*1*3;
}
break;
caseFishRarity.Rare:
{
value+=(int)fish.Tier*1*6;
}
break;
}
////
switch(fish.Rarity)//med
{
caseFishRarity.Common:
{
value+=(int)fish.Tier*2*1;
}
break;
caseFishRarity.Uncommon:
{
value+=(int)fish.Tier*2*3;
}
break;
caseFishRarity.Rare:
{
value+=(int)fish.Tier*2*6;
}
break;
}
////
switch(fish.Rarity)//large
{
caseFishRarity.Common:
{
value+=(int)fish.Tier*3*1;
}
break;
caseFishRarity.Uncommon:
{
value+=(int)fish.Tier*3*3;
}
break;
caseFishRarity.Rare:
{
value+=(int)fish.Tier*3*6;
}
break;
}
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou're about to sell **{count} Fish** for **{((long)value).ToYeedraDisplay()}**.\nType 'ok' to confirm.");