Compare commits

..

9 commits
main ... main

Author SHA1 Message Date
520c60936d Update README.md 2025-12-19 23:29:53 -05:00
d7be28e94f Improve indent consistency 2025-12-19 23:03:54 -05:00
53184cfbfb Abstract bronze-spring icon and size to variables 2025-12-19 23:01:34 -05:00
675637934d Genericize bronze-spring recipe icon mod check 2025-12-19 22:42:57 -05:00
f42acf7e7e Load bronze-plate item icon from existing gamedata 2025-12-19 22:40:35 -05:00
11104a179b Updated README.md for the mod 2025-12-12 20:45:18 -05:00
msmods
1f4696c44b Fix recipe name for elementium-heat-shielding 2025-12-12 19:45:36 -05:00
msmods
776584841c Enhances icon for bronze-spring recipe
Adds a little bronze plate icon to the top left of the bronze-spring icon.
2025-12-12 02:07:14 -05:00
msmods
2ad5a16998 Fix recipe name for bronze-spring
Fixes the name of the bronze spring recipe, reverting a previous attempt.
2025-12-12 02:06:20 -05:00
3 changed files with 104 additions and 58 deletions

View file

@ -1,16 +1,46 @@
# MetalsForYou ## IntermediatesForYou2
[IntermediatesForYou](https://mods.factorio.com/mod/IntermediatesForYou) by [Timeken](https://mods.factorio.com/user/Timeken) updated for Factorio 2.0
## Version History Things in this mod may change.
See changelog.txt
## Created by This mod is intended to be played with Timeken's other mods, BZ (and the BZ likes), K2, SE, 248k.
If you play with Brass Tacks and If I Had A Nickel it is recommended to enable their Hard mode settings as that is what this mod is balanced for right now.
#### New Intermediates
## Thanks to - Turret base
- Large turret base
- Advanced electronic components
- Satellite body
- Spring
- Shock absorber
- Elementite [SE]
- Slag [K2/AAI]
- Imersite Powder [K2 & 248k]
### Compatibility #### Changes & Compatibility (Likely an incomplete list)
- Added Inserter Parts to stack filter inserter
- [K2] Greenhouse upgrades into Bio Lab
- [SE] Recycling recipe for long handed inserter
- [SE & 248k] Changed SE canister to use 248k fiber glass instead of glass and plastic
- [BZ] BZ Burner Chemical Plant upgrades into Chemical Plant
- Low quality advanced circuit recipe (for when you are low on gold)
- Filter Inserter upgrades into Stack Filter Inserter
### Localization #### Planned Features (Maybe?)
- More late game SE and K2 support
- Customization settings
- Custom textures
#### Created by:
Timeken (https://mods.factorio.com/user/Timeken)
Original Mod: https://mods.factorio.com/mod/IntermediatesForYou
#### Updated By
cackling.fiend (https://mods.factorio.com/user/cackling.fiend)
Hraukr (https://mods.factorio.com/user/Hraukr)
#### Based On
The BZ Mods series from brevven (https://mods.factorio.com/user/brevven)

View file

@ -54,6 +54,7 @@ aluminium-hydroxide-smelting=Aluminium hydroxide smelting
sodium-hydroxide-reaction=Sodium hydroxide reaction sodium-hydroxide-reaction=Sodium hydroxide reaction
silica-extraction=Silica extraction silica-extraction=Silica extraction
sodium-aluminate=Sodium aluminate sodium-aluminate=Sodium aluminate
bronze-spring=Spring (Bronze)
slag=slag slag=slag
iron-extraction=Iron extraction iron-extraction=Iron extraction
@ -61,6 +62,7 @@ trace-rare-ore-extraction=Trace rare ore extraction
elementite=Elementite elementite=Elementite
elementite-dust=Elementite dust elementite-dust=Elementite dust
elementium-plate=Elementium plate elementium-plate=Elementium plate
elementium-heat-shielding=Heat Shielding (Elementium)
[recipe-description] [recipe-description]
low-quality-advanced-circuit=When resources are scarce you use what you got. low-quality-advanced-circuit=When resources are scarce you use what you got.

View file

@ -87,6 +87,9 @@ if data.raw.item["rubber"] then
table.insert(shock_absorber_ingredients, {type="item", name="rubber", amount=1}) table.insert(shock_absorber_ingredients, {type="item", name="rubber", amount=1})
end end
local spring_icon = "__IntermediatesForYou2__/graphics/icons/spring.png"
local spring_icon_size = 64
data:extend({ data:extend({
{ {
type = "item", type = "item",
@ -111,8 +114,8 @@ data:extend({
{ {
type = "item", type = "item",
name = "spring", name = "spring",
icon = "__IntermediatesForYou2__/graphics/icons/spring.png", icon = spring_icon,
icon_size = 64, icon_size = spring_icon_size,
group = "intermediate-product", group = "intermediate-product",
subgroup = "intermediate-product", subgroup = "intermediate-product",
order = "a[spring]", order = "a[spring]",
@ -196,13 +199,24 @@ util.add_unlock("rocket-silo","satellite-body")
util.add_unlock("fast-inserter", "shock-absorber") util.add_unlock("fast-inserter", "shock-absorber")
if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then if mods["bzfoundry2"] and data.raw.item["bronze-plate"] then
local bronze_plate_icon = data.raw.item["bronze-plate"].icon
or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1].icon
local bronze_plate_icon_size = data.raw.item["bronze-plate"].icon_size
or data.raw.item["bronze-plate"].icons and data.raw.item["bronze-plate"].icons[1].icon_size
data:extend({ data:extend({
{ {
type = "recipe", type = "recipe",
name = "bronze-spring", name = "bronze-spring",
localised_name = { "item-name.bronze-spring" },
category = "crafting", category = "crafting",
order = "s2[spring]", order = "s2[spring]",
icons = (data.raw.item["bronze-plate"] and
{
{ icon = spring_icon, icon_size = spring_icon_size },
{ icon = bronze_plate_icon, icon_size = bronze_plate_icon_size, scale = 0.125, shift = { -8, -8 } }
} or {
{ icon = spring_icon, icon_size = spring_icon_size }
}
),
enabled = false, enabled = false,
energy_required = 2, energy_required = 2,
ingredients = {{type="item", name="bronze-plate", amount=1}}, ingredients = {{type="item", name="bronze-plate", amount=1}},