Skip to content

Commit

Permalink
Run stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
ahicks92 committed May 5, 2024
1 parent be807e9 commit 28d1283
Show file tree
Hide file tree
Showing 40 changed files with 15,681 additions and 10,878 deletions.
5,995 changes: 3,088 additions & 2,907 deletions control.lua

Large diffs are not rendered by default.

108 changes: 52 additions & 56 deletions data-updates.lua
Original file line number Diff line number Diff line change
@@ -1,75 +1,71 @@



for name, proto in pairs(data.raw.container) do
proto.open_sound = proto.open_sound or { filename = "__base__/sound/metallic-chest-open.ogg" , volume = 0.43 }
proto.open_sound = proto.open_sound or { filename = "__base__/sound/metallic-chest-open.ogg", volume = 0.43 }
proto.close_sound = proto.close_sound or { filename = "__base__/sound/metallic-chest-close.ogg", volume = 0.43 }
end

data.raw.character.character.has_belt_immunity = true

for _,item in pairs(vanilla_tip_and_tricks_item_table) do
remove_tip_and_tricks_item(item);
for _, item in pairs(vanilla_tip_and_tricks_item_table) do
remove_tip_and_tricks_item(item)
end

--Modifications to Kruise Kontrol inputs
local alt_input =
{
name = "klient-alt-move-to",
type = "custom-input",
key_sequence = "CONTROL + ALT + RIGHTBRACKET",
consuming = "game-only"
--Modifications to Kruise Kontrol inputs
local alt_input = {
name = "klient-alt-move-to",
type = "custom-input",
key_sequence = "CONTROL + ALT + RIGHTBRACKET",
consuming = "game-only",
}
local cancel_enter =
{
name = "klient-cancel-enter",
type = "custom-input",
linked_game_control = "toggle-driving",
consuming = "none",
key_sequence = ""
local cancel_enter = {
name = "klient-cancel-enter",
type = "custom-input",
linked_game_control = "toggle-driving",
consuming = "none",
key_sequence = "",
}
data:extend{alt_input, cancel_enter}
data:extend({ alt_input, cancel_enter })

--Modifications to Pavement Driving Assist Continued inputs
data:extend({
{
type = "custom-input",
name = "toggle_drive_assistant",
key_sequence = "L",
consuming = "game-only"
},
{
type = "custom-input",
name = "toggle_cruise_control",
key_sequence = "O",
consuming = "game-only"
},
{
type = "custom-input",
name = "set_cruise_control_limit",
key_sequence = "CONTROL + O",
consuming = "game-only"
},
{
type = "custom-input",
name = "confirm_set_cruise_control_limit",
key_sequence = "",
linked_game_control = "confirm-gui"
},
{
type = "custom-input",
name = "toggle_drive_assistant",
key_sequence = "L",
consuming = "game-only",
},
{
type = "custom-input",
name = "toggle_cruise_control",
key_sequence = "O",
consuming = "game-only",
},
{
type = "custom-input",
name = "set_cruise_control_limit",
key_sequence = "CONTROL + O",
consuming = "game-only",
},
{
type = "custom-input",
name = "confirm_set_cruise_control_limit",
key_sequence = "",
linked_game_control = "confirm-gui",
},
})

--Modify base prototypes to remove their default descriptions
for name, pack in pairs(data.raw.tool) do
if pack.localised_description and pack.localised_description[1] == "item-description.science-pack" then
pack.localised_description = nil
--Modify base prototypes to remove their default descriptions
for name, pack in pairs(data.raw.tool) do
if pack.localised_description and pack.localised_description[1] == "item-description.science-pack" then
pack.localised_description = nil
end
end

for name, mod in pairs(data.raw.module) do
if mod.localised_description and mod.localised_description[1] == "item-description.effectivity-module"
or mod.localised_description and mod.localised_description[1] == "item-description.productivity-module"
or mod.localised_description and mod.localised_description[1] == "item-description.speed-module" then
mod.localised_description = nil
for name, mod in pairs(data.raw.module) do
if
mod.localised_description and mod.localised_description[1] == "item-description.effectivity-module"
or mod.localised_description and mod.localised_description[1] == "item-description.productivity-module"
or mod.localised_description and mod.localised_description[1] == "item-description.speed-module"
then
mod.localised_description = nil
end
end

end
Loading

0 comments on commit 28d1283

Please sign in to comment.