示例#1
0
        private ThroneRoom FindTargetTreasury()
        {
            ThroneRoom best = null;

            if (Player.inst.DoesAnyBuildingHaveUniqueNameOnLandMass("throneroom", Host.landMass))
            {
                ArrayExt <Building> throneRooms = Player.inst.GetBuildingListForLandMass(Host.landMass, "throneroom".GetHashCode());

                best = throneRooms.RandomElement().GetComponent <ThroneRoom>();
            }
            return(best);
        }