|
@@ -21,7 +21,6 @@ namespace ET
|
|
|
switch (a.FuncIndex)
|
|
|
{
|
|
|
case (int)BattleFunc.FUNC.Start:
|
|
|
- session.Call(new C2G_BattleNotify() { Message = BattleNotify.ClientIsReady.ToString() }).Coroutine();
|
|
|
session.Call(new C2G_BattleNotify()
|
|
|
{
|
|
|
Message = BattleNotify.StartRefreshMonster.ToString()
|
|
@@ -33,8 +32,8 @@ namespace ET
|
|
|
var rand = new Random();
|
|
|
foreach (var id in units)
|
|
|
{
|
|
|
- float r = rand.Next(1000) / 30.0f + 8;
|
|
|
- double ang = rand.Next(120) / 180.0f * Math.PI + Math.PI;
|
|
|
+ float r = (float)Math.Sqrt(rand.Next(1225)) + 12;
|
|
|
+ double ang = rand.Next(50) / 180.0f * Math.PI + Math.PI/2.0f + Math.PI;
|
|
|
|
|
|
float x = centerpos.X + (float)(r * Math.Cos(ang));
|
|
|
float y = centerpos.Y - (float)(r * Math.Sin(ang));
|
|
@@ -57,8 +56,8 @@ namespace ET
|
|
|
for (int i = 0; i < 2; i++)
|
|
|
{
|
|
|
var id = units2[rand.Next(units2.Length)];
|
|
|
- float r = rand.Next(1000) / 30.0f + 8;
|
|
|
- double ang = rand.Next(120) / 180.0f * Math.PI + Math.PI;
|
|
|
+ float r = (float)Math.Sqrt(rand.Next(1225)) + 12;
|
|
|
+ double ang = rand.Next(50) / 180.0f * Math.PI + Math.PI / 2.0f + Math.PI;
|
|
|
float x = centerpos.X + (float)(r * Math.Cos(ang));
|
|
|
float y = centerpos.Y - (float)(r * Math.Sin(ang));
|
|
|
|
|
@@ -79,8 +78,8 @@ namespace ET
|
|
|
for (int i = 0; i < 1; i++)
|
|
|
{
|
|
|
var id = units3[rand.Next(units3.Length)];
|
|
|
- float r = rand.Next(1000) / 30.0f + 8;
|
|
|
- double ang = rand.Next(120) / 180.0f * Math.PI + Math.PI;
|
|
|
+ float r = (float)Math.Sqrt(rand.Next(1225)) + 12;
|
|
|
+ double ang = rand.Next(50) / 180.0f * Math.PI + Math.PI / 2.0f + Math.PI;
|
|
|
float x = centerpos.X + (float)(r * Math.Cos(ang));
|
|
|
float y = centerpos.Y - (float)(r * Math.Sin(ang));
|
|
|
|