Example #1
0
 public static void MakeShrapnel(IntVec3 center, Map map, float angle, float distanceFactor, int metalShrapnelCount, int rubbleShrapnelCount, bool spawnMotes)
 {
     angle = (float)(angle - 90.0);
     SkyfallerShrapnelUtility.SpawnShrapnel(ThingDefOf.ChunkSlagSteel, metalShrapnelCount, center, map, angle, distanceFactor);
     SkyfallerShrapnelUtility.SpawnShrapnel(ThingDefOf.SlagRubble, rubbleShrapnelCount, center, map, angle, distanceFactor);
     if (spawnMotes)
     {
         SkyfallerShrapnelUtility.ThrowShrapnelMotes((metalShrapnelCount + rubbleShrapnelCount) * 2, center, map, angle, distanceFactor);
     }
 }