- Added one additional respawn condition check
- Lowered the entity exclude radius - Increased # of threads for hooking
This commit is contained in:
parent
096e8f929f
commit
90b2ead675
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 secXsQuared
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
@ -1,5 +1,5 @@
|
|||||||
name = "World Regrowth++"
|
name = "World Regrowth++"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
description = "Version "..version.."\n\nAdvanced world regrowth including caves! See the Steam Workshop page for more information.\n\nHappy hunting and do starve!"
|
description = "Version "..version.."\n\nAdvanced world regrowth including caves! See the Steam Workshop page for more information.\n\nHappy hunting and do starve!"
|
||||||
author = "lolo"
|
author = "lolo"
|
||||||
|
|
||||||
|
@ -20,12 +20,12 @@ return Class(function(self, inst)
|
|||||||
|
|
||||||
local UPDATE_PERIOD = 9
|
local UPDATE_PERIOD = 9
|
||||||
local BASE_RADIUS = 20
|
local BASE_RADIUS = 20
|
||||||
local EXCLUDE_RADIUS = 3
|
local EXCLUDE_RADIUS = 2
|
||||||
local JITTER_RADIUS = 6
|
local JITTER_RADIUS = 6
|
||||||
local TOTAL_RADIUS = 1000
|
local TOTAL_RADIUS = 1000
|
||||||
local MIN_PLAYER_DISTANCE = 40
|
local MIN_PLAYER_DISTANCE = 40
|
||||||
local THREADS_PER_BATCH = 3
|
local THREADS_PER_BATCH = 3
|
||||||
local THREADS_PER_BATCH_HOOK = 2
|
local THREADS_PER_BATCH_HOOK = 5
|
||||||
local REGROW_STATUS = {
|
local REGROW_STATUS = {
|
||||||
SUCCESS = 0,
|
SUCCESS = 0,
|
||||||
FAILED = 1,
|
FAILED = 1,
|
||||||
@ -80,6 +80,10 @@ return Class(function(self, inst)
|
|||||||
return REGROW_STATUS.CACHE
|
return REGROW_STATUS.CACHE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not (inst.Map:CanPlantAtPoint(x, y, z)) then
|
||||||
|
return REGROW_STATUS.CACHE
|
||||||
|
end
|
||||||
|
|
||||||
if inst.Map:GetTileAtPoint(x, y, z) ~= tile then
|
if inst.Map:GetTileAtPoint(x, y, z) ~= tile then
|
||||||
-- keep things in their biome (more or less)
|
-- keep things in their biome (more or less)
|
||||||
return REGROW_STATUS.CACHE
|
return REGROW_STATUS.CACHE
|
||||||
|
@ -19,7 +19,7 @@ return Class(function(self, inst)
|
|||||||
local DEBUG_TELE = false
|
local DEBUG_TELE = false
|
||||||
local UPDATE_PERIOD = 11
|
local UPDATE_PERIOD = 11
|
||||||
local BASE_RADIUS = 20
|
local BASE_RADIUS = 20
|
||||||
local EXCLUDE_RADIUS = 3
|
local EXCLUDE_RADIUS = 2
|
||||||
local MIN_PLAYER_DISTANCE = 40
|
local MIN_PLAYER_DISTANCE = 40
|
||||||
local THREADS_PER_BATCH = 3
|
local THREADS_PER_BATCH = 3
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user