-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add basic loaders (using steam) - Force disable AAI's lubricant recipe setting (Bob's Logistics already makes Lubricant available at Green Science) - Set custom recipes for loaders, respecting which of Bob's mods and settings are enabled - Set tech prerequisites
- Loading branch information
Showing
3 changed files
with
217 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
function overwrite_setting(setting_type, setting_name, value) | ||
-- setting_type: [bool-setting | int-setting | double-setting | string-setting] | ||
if data.raw[setting_type] then | ||
local s = data.raw[setting_type][setting_name] | ||
if s then | ||
if setting_type == "bool-setting" then | ||
s.forced_value = value | ||
else | ||
s.default_value = value | ||
s.allowed_values = { value } | ||
end | ||
s.hidden = true | ||
else | ||
log("Error: missing setting " .. setting_name) | ||
end | ||
else | ||
log("Error: missing setting type " .. setting_type) | ||
end | ||
end | ||
|
||
if mods["aai-loaders"] then | ||
overwrite_setting("string-setting", "aai-loaders-lubricant-recipe", "disabled") | ||
end |