Ejemplo n.º 1
0
        private static void TriggerLoss(int team, string reason)
        {
            MatchConfiguration.ShowAnnouncement(reason + " -\t" + teamNames[0] + ": " + points[0] + " points \t\t" + teamNames[1] + ": " + points[1] + " points", 300);
            Referee mref = RefereeMan.inst.GetRefereeObj();

            mref.PlDir       = PlDirEnum.Left;
            mref.State       = RefeStateEnum.DeclareVictory;
            mref.matchResult = MatchResultEnum.KO;
            mref.ReqRefereeAnm(BasicSkillEnum.Refe_Stand_MatchEnd_Front_Left);
            resultText = "T.K.O. Due to Point Loss";
            PlayerMan.inst.GetPlObj(team).isLoseAndStop = true;
            endMatch = true;
            mref.SentenceLose(team);
        }
Ejemplo n.º 2
0
        public static void UpdateMatchTimer(MatchMain m)
        {
            try
            {
                if (isIronMan && currMatchTime != null)
                {
                    MatchConfiguration.ShowAnnouncement(teamNames[0] + " : " + wins[0] + "      " + teamNames[1] + " : " + wins[1], 300);
                    m.matchTime.Set(currMatchTime);

                    //Replenish wrestlers hp, stamina and spirit
                    for (int i = 0; i < 8; i++)
                    {
                        Player plObj = PlayerMan.inst.GetPlObj(i);
                        if (!plObj)
                        {
                            continue;
                        }
                        if (!plObj.isSecond && !plObj.isSleep && !plObj.isIntruder)
                        {
                            float hp            = plObj.HP;
                            float sp            = plObj.SP;
                            float bp            = plObj.BP;
                            float recoverVal    = 65535f * UnityEngine.Random.Range(.15f, .3f);
                            float recoveryParam = (float)plObj.WresParam.hpRecovery;

                            hp = hp + recoverVal + (recoverVal * (recoveryParam) * .2f);
                            sp = sp + recoverVal + (recoverVal * (recoveryParam) * .2f);
                            bp = bp + recoverVal + (recoverVal * (recoveryParam) * .2f);

                            plObj.SetSP(sp);
                            plObj.SetHP(hp * .5f);
                            plObj.SetBP(bp * .75f);
                        }
                    }
                }
                else
                {
                    return;
                }
            }
            catch
            {
                return;
            }
        }
Ejemplo n.º 3
0
        private static void CheckMatchEnd(string reason)
        {
            if (endMatch)
            {
                return;
            }

            if (points[0] <= 0)
            {
                TriggerLoss(0, reason);
            }
            else if (points[1] <= 0)
            {
                TriggerLoss(4, reason);
            }
            else
            {
                MatchConfiguration.ShowAnnouncement(reason + " -\t" + teamNames[0] + ": " + points[0] + " points \t\t" + teamNames[1] + ": " + points[1] + " points", 300);
                ForceCleanBreak(); //Allows the round to continue
                ResumeAfterBreak();
            }
        }
Ejemplo n.º 4
0
 private static void DisplayScore(String reason)
 {
     MatchConfiguration.ShowAnnouncement(reason + " -\t  " + teamNames[0] + ": " + points[0] + " points \t\t" + teamNames[1] + ": " + points[1] + " points");
 }
Ejemplo n.º 5
0
 public static void DisplayElimination(String wrestlerName, int membersRemaining)
 {
     MatchConfiguration.ShowAnnouncement(wrestlerName + " has been eliminated!\t" + teamNames[loserTrack] + " members remaining: " + membersRemaining, 300);
 }
Ejemplo n.º 6
0
        public static bool CheckMatchEnd(Referee r)
        {
            if (!isLuchaTag)
            {
                return(false);
            }

            //Get the loser
            int loser = r.TargetPlIdx;

            //Determine if a captain has lost
            if (loser == 0)
            {
                points[1] = 2;
                return(false);
            }
            else if (loser == 4)
            {
                points[0] = 2;
                return(false);
            }

            //Knocked out losers automatically end the match
            if (PlayerMan.inst.GetPlObj(loser).isKO)
            {
                if (loser < 4)
                {
                    points[1] = 2;
                }
                else
                {
                    points[0] = 2;
                }

                return(false);
            }

            if (loser < 4)
            {
                points[1]++;
            }
            else if (loser > 4)
            {
                points[0]++;
            }

            if (points[0] >= 2 || points[1] >= 2)
            {
                return(false);
            }

            //Signal that the current round has ended
            Announcer.inst.PlayGong_Eliminated();
            r.SetFree();

            PlayerMan.inst.GetPlObj(loser).isLoseAndStop = false;

            SetLegalMen("blue");
            SetLegalMen("red");

            MatchConfiguration.ShowAnnouncement("Score -\t" + teamNames[0] + ": " + points[0] + "\t\t" + teamNames[1] + ": " + points[1], 300);
            return(true);
        }
Ejemplo n.º 7
0
 public static void AnnounceDoubleElimation()
 {
     MatchConfiguration.ShowAnnouncement("Double Elimination!\t" + MoreMatchTypes_Form.ExEliminationData.TeamNames[0] + ": " + wins[0] + "\t" + MoreMatchTypes_Form.ExEliminationData.TeamNames[1] + ": " + wins[1]);
 }
Ejemplo n.º 8
0
 public static void AnnounceElimination(String eliminatedPlayer, int membersRemaining, String teamName)
 {
     MatchConfiguration.ShowAnnouncement(eliminatedPlayer + " has been eliminated!\t" + teamName + " members remaining: " + membersRemaining, 300);
 }