Exemple #1
0
        protected override string DescIntern(BaseReqArgument bra)
        {
            string mess;

            switch (bra.sett)
            {
            case "own":
                mess = "The unit muss be your own unit.";
                break;

            case "enemy":
                mess = "The unit muss not be your own unit.";
                break;

            default:
                mess = bra.sett + " is unknown.";
                break;
            }

            if (bra.NeedMap())
            {
                if (bra.onMap == null)
                {
                    bra.onMap = S.Unit().At(bra.pos);
                }

                if (bra.onMap == null)
                {
                    mess += $" Here is no unit.";
                }
                else
                {
                    mess += $" {bra.onMap.name} is " + (bra.player == bra.onMap.Player() ? "" : "not") +
                            " your own unit";
                }
            }

            return(mess);
        }
Exemple #2
0
        protected override string DescIntern(BaseReqArgument bra)
        {
            string mess = S.T("frontier" + TextHelper.Cap(bra.sett));

            if (bra.NeedMap())
            {
                var p = S.Players().OverlayHighest("frontier", bra.pos);
                if (p == bra.player)
                {
                    mess = S.T("frontierOwnHere", mess);
                }
                else if (p != null && p != bra.player)
                {
                    mess = S.T("frontierEnemyHere", mess);
                }
                else if (p == null)
                {
                    mess = S.T("frontierNoneHere", mess);
                }
            }

            return(mess);
        }