Beispiel #1
0
    private void KaijuLostEncounter(Kaiju kaiju, global::Empire stunner, bool setKaijuFree)
    {
        bool flag     = Amplitude.Unity.Runtime.Runtime.Registry.GetValue <bool>("Gameplay/Kaiju/KaijuAutoTameBeforeLoseEncounter", true);
        bool relocate = false;

        if (setKaijuFree)
        {
            flag     = false;
            relocate = true;
        }
        global::PlayerController server = this.KaijuEmpire.PlayerControllers.Server;

        if (kaiju.IsTamed())
        {
            MajorEmpire majorEmpire = kaiju.MajorEmpire;
            if (server != null)
            {
                OrderUntameKaiju order = new OrderUntameKaiju(kaiju, relocate, stunner.Index, flag);
                server.PostOrder(order);
            }
        }
        else if (flag)
        {
            if (server != null)
            {
                OrderTameKaiju order2 = new OrderTameKaiju(stunner.Index, kaiju, null);
                server.PostOrder(order2);
            }
        }
        else
        {
            this.Kaiju.ChangeToStunState(stunner);
            this.ResetRelocationETA();
        }
    }
Beispiel #2
0
	public void ServerUntameAllKaijus()
	{
		global::PlayerController server = base.PlayerControllers.Server;
		if (server == null)
		{
			return;
		}
		for (int i = this.TamedKaijus.Count - 1; i >= 0; i--)
		{
			OrderUntameKaiju order = new OrderUntameKaiju(this.TamedKaijus[i], true);
			server.PostOrder(order);
		}
	}