1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Fix bugs #91,#79,#38,#72 (#216)

* Update metrostroi.lua

Исправил ошибку #91

* Фикс #79

* #38

* #72 Пока-что временное решение

* Update metrostroi.lua

* Перенёс SquealType на сам номер в TrainSpawnerUpdate

* Update cl_init.lua
This commit is contained in:
Ilya Krasnow
2021-07-27 13:16:03 +03:00
committed by GitHub
parent 4949d9fc6f
commit 2545b66b0a
5 changed files with 17 additions and 5 deletions

View File

@@ -148,9 +148,9 @@ function ENT:Initialize()
self.Lamps = {
broken = {},
}
local rand = math.random() > 0.8 and 1 or math.random(0.95,0.99)
local rand = math.random() > 0.95 and 1 or math.random(0.95,0.99)
for i = 1,23 do
if math.random() > rand then self.Lamps.broken[i] = math.random() > 0.5 end
if math.random() > rand then self.Lamps.broken[i] = math.random() > 0.7 end
end
self:TrainSpawnerUpdate()