-
Notifications
You must be signed in to change notification settings - Fork 24
2.0 logic changes #350
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
base: dev
Are you sure you want to change the base?
2.0 logic changes #350
Changes from 116 commits
c406eb2
f5230d6
02dc91d
71f12c4
8469418
df2f5d3
56e63b3
5876ae1
688570e
0d36b27
5cb7e0e
5a0e33a
ca7de07
c3458dd
1202908
543934f
31dc169
899b2bf
581f59e
6a01ce4
5d81e2f
8ac04f9
6004124
f7c0704
7112f64
0a42856
1882e24
6399a13
5f79738
999cc4d
f873cec
383c460
cf63cf3
5449d50
cda7f98
6eeae2d
ba79cd4
333221b
1ef5a59
4876734
f816532
6dd96c1
3610ba8
aecc5cc
653ab1a
a919b1d
da44467
f536ede
e9039d4
4d83812
fa11827
7ef5b47
33fd45b
a66dc46
61e6110
6fc935d
c23dabd
6b95144
b562fca
c5273e8
267a833
fab6cc9
f4313a9
d12175f
2d7d921
f62bb2f
24387a6
17bfedb
9aa6dbb
ccf37ec
23d1476
28d2b04
2452ad3
279a3a1
38818ab
bb33d52
c6f0dad
618d0ee
ca7e2ea
db15f0b
53d43b2
98ccd10
ef144b3
2ee24dc
feea5b5
8125a2e
089ce5d
17064fb
157c6be
ca80772
9efb230
d1c8ae5
3debeac
9eddf5d
c3ff2f9
79ccf01
c37bf4d
8a70f34
bec08a0
751bee6
ce0f8ab
1237978
d271d84
38727ce
b65a13d
0ec1891
0beff84
48a029a
feb4488
549ef21
dce3fe7
6abcbb0
1cb1ee1
0fe0a8b
1917641
2d4a67d
31e131f
34abbe9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,18 +17,15 @@ for _, v in pairs(reactors) do | |
| end | ||
| end | ||
|
|
||
| -- Refresh circuit board icon as it may have been overwritten | ||
| if data.raw.tool["sb-basic-circuit-board-tool"] and data.raw.item["basic-circuit-board"] then | ||
| seablock.lib.copy_icon(data.raw.tool["sb-basic-circuit-board-tool"], data.raw.item["basic-circuit-board"]) | ||
| end | ||
|
|
||
| require("data-final-fixes/logistics") | ||
| require("data-final-fixes/icons") | ||
| require("data-final-fixes/recipe") | ||
| require("data-final-fixes/tech-tree") | ||
| require("data-final-fixes/unobtainable_items") | ||
| require("data-final-fixes/mapgen") | ||
| require("data-final-fixes/SpaceMod") | ||
| require("data-final-fixes/entities") | ||
|
|
||
|
|
||
| data.raw.recipe["copper-cable"].allow_decomposition = true | ||
| data.raw.recipe["angels-solid-paper"].allow_decomposition = true | ||
|
|
@@ -38,3 +35,58 @@ for _, v in pairs(data.raw.character) do | |
| table.insert(v.crafting_categories, "sb-crafting-handonly") | ||
| end | ||
| end | ||
|
|
||
| -- Adds handcrafting recipes because crafting category "electronics" is no longer craftable by hand | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this should rather be handled by the respective mods individually but I'm unsure so I left it in for now.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you believe this is necessary?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added all this because otherwise it wouldn't be craftable by hand. I didn't want to change "electronics" to be handcraftable because that would change certain items as well which weren't handcraftable in 1.1.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think any of this is required. These recipes can be crafted by hand. Their crafting category should be |
||
| local handcrafting_recipes = { | ||
| "electronic-circuit", | ||
| "copper-cable", | ||
| "advanced-circuit", | ||
| "bob-tinned-copper-cable", | ||
| "bob-insulated-cable", | ||
| "bob-gilded-copper-cable", | ||
| "bob-wooden-board", | ||
| "bob-basic-circuit-board", | ||
| "bob-robot-brain", | ||
| "bob-robot-brain-2", | ||
| "bob-robot-brain-3", | ||
| "bob-robot-brain-4", | ||
| "angels-wire-gold", | ||
| "angels-wire-platinum", | ||
| "angels-wire-silver", | ||
| "angels-wire-tin" | ||
| } | ||
|
|
||
| if mods["bobmodules"] then | ||
| table.insert(handcrafting_recipes, "bob-module-case") | ||
| table.insert(handcrafting_recipes, "bob-module-contact") | ||
| table.insert(handcrafting_recipes, "bob-speed-processor") | ||
| table.insert(handcrafting_recipes, "bob-efficiency-processor") | ||
| table.insert(handcrafting_recipes, "bob-productivity-processor") | ||
| end | ||
|
|
||
| if mods["CircuitProcessing"] then | ||
| table.insert(handcrafting_recipes, "cp-electronic-circuit-board") | ||
| table.insert(handcrafting_recipes, "cp-advanced-circuit-board") | ||
| end | ||
|
|
||
| for _, name in pairs(handcrafting_recipes) do | ||
| seablock.lib.add_recipe_category(name, "crafting") | ||
| end | ||
|
|
||
| if mods["bobelectronics"] and mods["bobassembly"] then | ||
| -- Recipe was craftable with assembling-machine-1 even though it required a fluid | ||
| data.raw.recipe["bob-phenolic-board"].category = "electronics-with-fluid" | ||
| data.raw.recipe["bob-phenolic-board"].additional_categories = nil | ||
| end | ||
|
|
||
|
|
||
| --- TODO | ||
| --- This fix is only temporary | ||
| --- Needed because angelspetrochem moved the global_replace_item function to | ||
| --- data-updates stage (was in data-final-fixes stage) | ||
| if mods["bobplates"] and mods["angelspetrochem"] then | ||
| local OV = angelsmods.functions.OV | ||
|
|
||
| OV.global_replace_item("bob-carbon", "angels-solid-carbon") | ||
| OV.execute() | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| -- crafting category "electronics" got removed from assembling machines since it is now part of Fulgora | ||
| if mods["bobassembly"] then | ||
| seablock.lib.add_category("assembling-machine", "assembling-machine-1", "electronics") | ||
|
|
||
| seablock.lib.add_category("assembling-machine", "assembling-machine-2", "electronics") | ||
| seablock.lib.add_category("assembling-machine", "assembling-machine-2", "electronics-with-fluid") | ||
|
|
||
| seablock.lib.add_category("assembling-machine", "assembling-machine-3", "electronics") | ||
| seablock.lib.add_category("assembling-machine", "assembling-machine-3", "electronics-with-fluid") | ||
|
|
||
| seablock.lib.add_category("assembling-machine", "bob-assembling-machine-4", "electronics") | ||
| seablock.lib.add_category("assembling-machine", "bob-assembling-machine-4", "electronics-with-fluid") | ||
|
|
||
| seablock.lib.add_category("assembling-machine", "bob-assembling-machine-5", "electronics") | ||
| seablock.lib.add_category("assembling-machine", "bob-assembling-machine-5", "electronics-with-fluid") | ||
|
|
||
| seablock.lib.add_category("assembling-machine", "bob-assembling-machine-6", "electronics") | ||
| seablock.lib.add_category("assembling-machine", "bob-assembling-machine-6", "electronics-with-fluid") | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,9 @@ set_speed("transport-belt", "bob-ultimate-transport-belt", 75) | |
| set_speed("underground-belt", "bob-ultimate-underground-belt", 75) | ||
| set_speed("splitter", "bob-ultimate-splitter", 75) | ||
|
|
||
| -- Change base game beacon | ||
| data.raw.beacon["beacon"].distribution_effectivity = 1 | ||
|
|
||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This better fits the 1.1 feel. I'm unsure about this though. It matches the |
||
| -- Increase energy consumption of bob's extra beacons | ||
| -- Also reduce module slots and effectivity | ||
| if data.raw.beacon["bob-beacon-2"] then | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was all duplicate code.