Skip to content

Commit

Permalink
Remove strengh left overs
Browse files Browse the repository at this point in the history
  • Loading branch information
schliesser committed Jul 17, 2022
1 parent afe2cfe commit bb11c93
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ For Bugreports please use: https://github.com/schliesser/fs-admintoolbox/issues
- Enable/Disable vehicle renting for missions
- Set max parallel missions per farm

## Known Bugs

- Store opening/closing hours not working properly on client in 1.5.0.0

## Ideas / Upcomming features

- General
Expand Down
1 change: 0 additions & 1 deletion scripts/AtbOverrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ end

-- override loan calculation of Farm class
function AtbOverrides:updateMaxLoan()
print('ATB: updateMaxLoan')
local roundedTo5000 = math.floor(Farm.EQUITY_LOAN_RATIO * self:getEquity() / 5000) * 5000
self.loanMax = MathUtil.clamp(roundedTo5000, g_atb.settings:getValue(AtbSettings.SETTING.FARM_LOAN_MIN), g_atb.settings:getValue(AtbSettings.SETTING.FARM_LOAN_MAX))
end
5 changes: 0 additions & 5 deletions scripts/AtbSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local AtbSettings_mt = Class(AtbSettings)
AtbSettings.SETTING = {
AI_WORKER_COUNT = "aiWorkerCount",
GENERAL_SLEEP = "generalSleep",
GENERAL_STRENGH = "generalStrength",
VEHICLE_TABBING = "generalVehicleTabbing",
STORE_ACTIVE = "storeActive",
STORE_OPEN_TIME = "storeOpenTime",
Expand Down Expand Up @@ -37,7 +36,6 @@ function AtbSettings.new(customMt)
-- general
self[AtbSettings.SETTING.AI_WORKER_COUNT] = AtbSettings.WORKERS_DEFAULT
self[AtbSettings.SETTING.GENERAL_SLEEP] = true
self[AtbSettings.SETTING.GENERAL_STRENGH] = false
self[AtbSettings.SETTING.VEHICLE_TABBING] = true

-- store
Expand Down Expand Up @@ -114,8 +112,6 @@ function AtbSettings:loadFromXML(xmlFile)
AtbSettings.WORKERS_MAX), true)
self:setValue(AtbSettings.SETTING.GENERAL_SLEEP, Utils.getNoNil(getXMLBool(xmlFile, key .. ".general.sleep"),
self[AtbSettings.SETTING.GENERAL_SLEEP]), true)
self:setValue(AtbSettings.SETTING.GENERAL_STRENGH, Utils.getNoNil(
getXMLBool(xmlFile, key .. ".general.strengh"), self[AtbSettings.SETTING.GENERAL_STRENGH]), true)
self:setValue(AtbSettings.SETTING.VEHICLE_TABBING, Utils.getNoNil(
getXMLBool(xmlFile, key .. ".general.vehicleTabbing"), self[AtbSettings.SETTING.VEHICLE_TABBING]), true)

Expand Down Expand Up @@ -164,7 +160,6 @@ function AtbSettings:saveToXMLFile()
-- general
setXMLInt(xmlFile, key .. ".ai.workers", self[AtbSettings.SETTING.AI_WORKER_COUNT])
setXMLBool(xmlFile, key .. ".general.sleep", self[AtbSettings.SETTING.GENERAL_SLEEP])
setXMLBool(xmlFile, key .. ".general.strengh", self[AtbSettings.SETTING.GENERAL_STRENGH])
setXMLBool(xmlFile, key .. ".general.vehicleTabbing", self[AtbSettings.SETTING.VEHICLE_TABBING])

-- store
Expand Down
1 change: 0 additions & 1 deletion scripts/events/SaveAtbSettingsEvent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ end
function SaveAtbSettingsEvent:writeStream(streamId, connection)
streamWriteInt32(streamId, g_atb.settings:getValue(AtbSettings.SETTING.AI_WORKER_COUNT))
streamWriteBool(streamId, g_atb.settings:getValue(AtbSettings.SETTING.GENERAL_SLEEP))
streamWriteBool(streamId, g_atb.settings:getValue(AtbSettings.SETTING.GENERAL_STRENGH))
streamWriteBool(streamId, g_atb.settings:getValue(AtbSettings.SETTING.VEHICLE_TABBING))
streamWriteBool(streamId, g_atb.settings:getValue(AtbSettings.SETTING.STORE_ACTIVE))
streamWriteInt32(streamId, g_atb.settings:getValue(AtbSettings.SETTING.STORE_OPEN_TIME))
Expand Down

0 comments on commit bb11c93

Please sign in to comment.