Jump to content

Graendal

Members
  • Posts

    1
  • Joined

  • Last visited

Graendal's Achievements

0

Reputation

  1. From the scripts/sector/background/respawnresourceasteroids.lua: function RespawnResourceAsteroids.respawnRichAsteroids() local sector = Sector() local richAsteroids = sector:getNumEntitiesByComponent(ComponentType.MineableMaterial) local numAsteroids = sector:getNumEntitiesByType(EntityType.Asteroid) if numAsteroids == 0 then return end if richAsteroids / numAsteroids > self.respawningThreshold then return end ... end Correct me if I'm wrong, but it looks like the line local richAsteroids = sector:getNumEntitiesByComponent(ComponentType.MineableMaterial) includes wreckages in the total number of rich asteroids because wreckages also have the component type of 'MineableMaterial'. I'm thinking the fix is as easy as: local richAsteroids = sector:getNumEntitiesByComponent(ComponentType.MineableMaterial) - sector:getNumEntitiesByType(EntityType.Wreckage)
×
×
  • Create New...