Esempio n. 1
0
        //public override bool ShouldFail { get { return false; } }

        public override void Arrived(Caravan caravan)
        {
            if (mode == "exchangeOfGoods")
            {
                exchangeOfGoods(caravan);
            }
            else if (mode == "attack")
            {
                if (GameAttacker.Create())
                {
                    GameAttacker.Get.Start(caravan, (BaseOnline)сaravanOnline);
                }
            }
        }
Esempio n. 2
0
        private void attack(Caravan caravan)
        {
            Find.TickManager.Pause();
            Action <bool> att = (testMode) =>
            {
                if (GameAttacker.Create())
                {
                    GameAttacker.Get.Start(caravan, (BaseOnline)сaravanOnline, testMode);
                }
            };

            GameUtils.ShowDialodOKCancel("OCity_Caravan_Go_Attack_Target".Translate() + " " + сaravanOnline.Label
                                         , "OCity_Caravan_Confirm_Attack_TestBattle_Possible".Translate()
                                         , () => att(false)
                                         , () => { }
                                         , null
                                         , "OCity_Caravan_Practive".Translate()
                                         , () => att(true)
                                         );
        }