hello
i found this code and i want to spawn 1174 on a dragon at low chance
it gives error when i do it like this at dragon.cs
error : control cannot fall through one case label <case 0;>
double rate = Utility.RandomDouble();
if (rate <= 0.005)
{
switch (Utility.Random(3))
{
case 0:
this.Hue = 1174
}
}
i found this code and i want to spawn 1174 on a dragon at low chance
it gives error when i do it like this at dragon.cs
error : control cannot fall through one case label <case 0;>
double rate = Utility.RandomDouble();
if (rate <= 0.005)
{
switch (Utility.Random(3))
{
case 0:
this.Hue = 1174
}
}