Exemplo n.º 1
0
        public override void Initialize(WorldObjectCompProperties props)
        {
            base.Initialize(props);

            settlement = (FriendlySettlement)parent;
            Enable     = true;
        }
Exemplo n.º 2
0
        public override void Initialize(WorldObjectCompProperties props)
        {
            base.Initialize(props);

            timer               = ticksBetweenUpdate;
            raidTimer           = ticksBetweenRaids;
            mortalShellingTimer = ticksBetweenMortalShelling;

            int count = 1;

            foreach (var pawnData in baseBlueprint.pawnLegend.Values)
            {
                if (pawnData.Count.max > 1)
                {
                    count = pawnData.Count.min;
                }
                else
                {
                    count = 1;
                }

                totalThreat += pawnData.Kind.combatPower * count;
            }

            totalThreat *= 0.7f;

            camp = (SiegeCampSite)parent;

            enable = true;
        }
Exemplo n.º 3
0
        public override void Initialize(WorldObjectCompProperties props)
        {
            base.Initialize(props);
            lifeTime    = Rand.Range(10, 40) * 60000;
            useLifeTime = true;

            site = (ShipSite)parent;
        }
Exemplo n.º 4
0
 public override void Initialize(WorldObjectCompProperties props)
 {
     Find.World.GetComponent <WorldArtilleryTracker>().RegisterWorldObject(parent);
     base.Initialize(props);
 }
Exemplo n.º 5
0
 public virtual void Initialize(WorldObjectCompProperties props)
 {
     this.props = props;
 }
Exemplo n.º 6
0
 public override void Initialize(WorldObjectCompProperties props)
 {
     base.Initialize(props);
 }
Exemplo n.º 7
0
 public override void Initialize(WorldObjectCompProperties props)
 {
     base.Initialize(props);
     this.settlementsInRange = new List <RimWorld.Planet.Settlement>();
     this.settlementsInRange.Clear();
 }