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; } }
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); }