Exemplo n.º 1
0
 public override void SpawnSetup(Map map, bool respawningAfterLoad)
 {
     base.SpawnSetup(map, respawningAfterLoad);
     powerComp       = GetComp <CompPowerTrader>();
     compBattleTable = GetComp <CompBattleTable>();
     if (curBattleSetDef is null)
     {
         curBattleSetDef = RE_DefOf.RE_FirstContactWarBattleSet;
     }
 }
Exemplo n.º 2
0
        public IntVec3 GetSecondSpot()
        {
            if (compBattleTable is null)
            {
                compBattleTable = GetComp <CompBattleTable>();
            }
            var     offset = compBattleTable.Props.interactionCellOffsets[1];
            IntVec3 b      = offset.RotatedBy(this.Rotation);

            return(this.Position + b);
        }