Beispiel #1
0
 public override void SpawnSetup(Map map, bool respawningAfterLoad)
 {
     base.SpawnSetup(map, respawningAfterLoad);
     if (Current.ProgramState == ProgramState.Playing)
     {
         base.Map.listerFilthInHomeArea.Notify_FilthSpawned(this);
     }
     if (!respawningAfterLoad)
     {
         growTick            = Find.TickManager.TicksGame;
         disappearAfterTicks = (int)(def.filth.disappearsInDays.RandomInRange * 60000f);
     }
     if (!FilthMaker.TerrainAcceptsFilth(base.Map.terrainGrid.TerrainAt(base.Position), def))
     {
         Destroy();
     }
 }