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:
parent
7895191e9e
commit
03bf8ee821
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user