mirror of
https://github.com/veden/Rampant.git
synced 2025-03-19 21:07:56 +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
|
Version: 1.1.5
|
||||||
Date: 23. 11. 2021
|
Date: 23. 11. 2021
|
||||||
|
Improvements:
|
||||||
|
- Removed bounding box check when placing enemy buildings or upgrading buildings inplace
|
||||||
Tweaks:
|
Tweaks:
|
||||||
- Doubled the processing rate of regional faction bases with new enemies
|
- 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)
|
- 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
|
local query = universe.upgradeEntityQuery
|
||||||
query.name = name
|
query.name = name
|
||||||
query.position = disPos or position
|
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
|
query.name = spawnerName
|
||||||
if remote.interfaces["kr-creep"] then
|
if remote.interfaces["kr-creep"] then
|
||||||
remote.call("kr-creep", "spawn_creep_at_position", surface, query.position)
|
remote.call("kr-creep", "spawn_creep_at_position", surface, query.position)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user