1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

removed bounding box check for building bases

This commit is contained in:
Aaron Veden 2021-11-24 21:22:11 -08:00
parent 7895191e9e
commit 03bf8ee821
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 12 deletions

View File

@ -1,6 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 1.1.5
Date: 23. 11. 2021
Improvements:
- Removed bounding box check when placing enemy buildings or upgrading buildings inplace
Tweaks:
- Doubled the processing rate of regional faction bases with new enemies
- Added a small chance (0.5%) that Hives can spawn outside resource patches (Thank you Dimm2101)

View File

@ -283,18 +283,6 @@ function baseUtils.upgradeEntity(entity, baseAlignment, map, disPos, evolve)
local query = universe.upgradeEntityQuery
query.name = name
query.position = disPos or position
if not surface.can_place_entity(query) then
local newPosition = surface.find_non_colliding_position(
name,
disPos or position,
CHUNK_SIZE,
1,
true
)
query.position = newPosition or disPos or position
end
query.name = spawnerName
if remote.interfaces["kr-creep"] then
remote.call("kr-creep", "spawn_creep_at_position", surface, query.position)