Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flood rate calculation on 1.1.0 #8

Open
wants to merge 2 commits into
base: 1.1.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ local function onUpdate(dt)
end

setWaterLevel(newLevel)
serverWaterLevel = serverWaterLevel + ((decreasing and -1 or 1) * floodSpeed * 1000) * dt
serverWaterLevel = serverWaterLevel + ((decreasing and -1 or 1) * floodSpeed) * dt
end

local function onClientEndMission()
Expand Down
2 changes: 1 addition & 1 deletion Resources/Server/Flood/flood.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function T_Update()
if not M.isOceanValid or not M.options.enabled then return end

local level = M.options.oceanLevel
local changeAmount = UPDATE_TIME * M.options.floodSpeed
local changeAmount = M.options.floodSpeed
local limit = M.options.limit
local decrease = M.options.decrease
local resetAt = M.options.resetAt
Expand Down
2 changes: 1 addition & 1 deletion automod.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (!(Test-Path $BeamMPResourcePath)) {

# Watcher stuff
$Watcher = New-Object System.IO.FileSystemWatcher
$Watcher.Path = $ModPath
$Watcher.Path = Resolve-Path -Path $ModPath
$Watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite, [System.IO.NotifyFilters]::FileName, [System.IO.NotifyFilters]::DirectoryName
$Watcher.Filter = "*.*"
$Watcher.IncludeSubdirectories = $true
Expand Down