|
@@ -125,31 +125,24 @@ public class Award
|
|
|
sb.AppendFormat("{0}{1}{2}", Language.GetStr("UI", "J_Info0"), "<(花朵)>", flowerInfo.Name);
|
|
|
}
|
|
|
else
|
|
|
- {
|
|
|
- float flowerRate = (float)Auxiliary.FmlParse(FlowerFml, "l", ManaCenter.Level.ToString(), "f", ManaGarden.MyFlower.ToString());
|
|
|
-
|
|
|
- if (Random.Range(0, 1f) <= flowerRate)
|
|
|
+ {
|
|
|
+ if (!ManaMiniGame.FlowerLock)
|
|
|
{
|
|
|
if (Random.Range(0, 1f) <= Odds[rate])
|
|
|
{
|
|
|
- while (true)
|
|
|
- {
|
|
|
- FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic.Random();
|
|
|
+ flowerFlag = true;
|
|
|
|
|
|
- if (flowerInfo.Unlock)
|
|
|
- {
|
|
|
- flowerFlag = true;
|
|
|
+ FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic[ManaMiniGame.Flower];
|
|
|
|
|
|
- ManaReso.Get<Image>("Da_FlowerIcon").sprite = flowerInfo.Icon;
|
|
|
- ManaReso.Get<Image>("Da_FlowerIcon").Resize(0.2f, 0.2f);
|
|
|
+ flowerInfo.Unlock = true;
|
|
|
|
|
|
- ManaReso.SetText("Da_FlowerLab", flowerInfo.Name);
|
|
|
|
|
|
- sb.AppendFormat("{0}{1}{2}", Language.GetStr("UI", "J_Info0"), "<(花朵)>", flowerInfo.Name);
|
|
|
+ ManaReso.Get<Image>("Da_FlowerIcon").sprite = flowerInfo.Icon;
|
|
|
+ ManaReso.Get<Image>("Da_FlowerIcon").Resize(0.2f, 0.2f);
|
|
|
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ ManaReso.SetText("Da_FlowerLab", flowerInfo.Name);
|
|
|
+
|
|
|
+ sb.AppendFormat("{0}{1}{2}", Language.GetStr("UI", "J_Info0"), "<(花朵)>", flowerInfo.Name);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -618,6 +611,7 @@ public class ManaMiniGame : Regist
|
|
|
public static string ScoreLab;
|
|
|
|
|
|
public static bool Prepare;
|
|
|
+ public static bool FlowerLock;
|
|
|
public static bool TutorialLock = true;
|
|
|
public static bool DropDiamond;
|
|
|
|
|
@@ -870,44 +864,58 @@ public class ManaMiniGame : Regist
|
|
|
|
|
|
public static void GameEnter()
|
|
|
{
|
|
|
- if (ManaGarden.MyFlower < ManaGarden.TotalFlower)
|
|
|
+ float flowerRate = (float)Auxiliary.FmlParse(Award.FlowerFml, "l", ManaCenter.Level.ToString(), "f", ManaGarden.MyFlower.ToString());
|
|
|
+
|
|
|
+ if (Random.Range(0, 1f) <= flowerRate)
|
|
|
{
|
|
|
- while (true)
|
|
|
+ if (ManaGarden.MyFlower < ManaGarden.TotalFlower)
|
|
|
{
|
|
|
- FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic.Random();
|
|
|
-
|
|
|
- if (!flowerInfo.Unlock)
|
|
|
+ while (true)
|
|
|
{
|
|
|
- Flower = flowerInfo.ID_;
|
|
|
+ FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic.Random();
|
|
|
|
|
|
- break;
|
|
|
+ if (!flowerInfo.Unlock)
|
|
|
+ {
|
|
|
+ Flower = flowerInfo.ID_;
|
|
|
+
|
|
|
+ FlowerLock = false;
|
|
|
+
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ FlowerLock = true;
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- Flower = ManaGarden.FlowerInfoDic.Random().ID_;
|
|
|
+ FlowerLock = true;
|
|
|
}
|
|
|
|
|
|
|
|
|
- int flowerAmt = 1;
|
|
|
-
|
|
|
- while (true)
|
|
|
+ if (FlowerLock)
|
|
|
{
|
|
|
- FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic.Random();
|
|
|
-
|
|
|
- if (flowerInfo.Unlock)
|
|
|
+ for (int i = 1; i < 10; i++)
|
|
|
{
|
|
|
- IdleList.Add(ManaReso.GetFlower(flowerInfo, ManaReso.Get("SlotMini" + flowerAmt)));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoDic[1], ManaReso.Get("SlotMini" + i)));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ List<int> idList = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
|
|
|
|
|
|
- flowerAmt++;
|
|
|
+ int special = idList.Random(true);
|
|
|
|
|
|
- if (flowerAmt == 10)
|
|
|
- {
|
|
|
- break;
|
|
|
- }
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoDic[Flower], ManaReso.Get("SlotMini" + special)));
|
|
|
+
|
|
|
+ for (int i = 0; i < idList.Count; i++)
|
|
|
+ {
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoDic[1], ManaReso.Get("SlotMini" + idList[i])));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
|
|
|
ScoreLab = Language.GetStr("UI", "D_ScoreLab");
|
|
|
|