more small buildings

master
AiTechEye 2018-09-01 15:32:16 +02:00 committed by GitHub
parent 02b91d008e
commit 1cb609ef15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -419,7 +419,7 @@ end)
aliveai.generate_house=function(self)
aliveai.generate_house=function(self,v)
local gen=true
if self.x and self.y and self.z and not self.aliveai then
gen=false
@ -481,9 +481,9 @@ aliveai.generate_house=function(self)
return
end
--generate
if math.random(1,2)==1 then
if (v and v==1) or math.random(1,5)>1 then
aliveai.generate_house_v1(self,build_able,window,furn_len,door,floor,wall,pos,gen)
else
else --if v and v==2 then
aliveai.generate_house_v2(self,build_able,window,furn_len,door,floor,wall,pos,gen)
end
--check failure 2