k2 ammo
This commit is contained in:
parent
7ff360a2f4
commit
da8b938503
4 changed files with 117 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.6.5
|
||||||
|
Date: 2022-01-10
|
||||||
|
Fixes:
|
||||||
|
- Fix ammuntion options for K2
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.6.4
|
Version: 0.6.4
|
||||||
Date: 2022-01-06
|
Date: 2022-01-06
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzlead",
|
"name": "bzlead",
|
||||||
"version": "0.6.4",
|
"version": "0.6.5",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Lead",
|
"title": "Lead",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,11 @@ if util.me.more_ammo() then
|
||||||
util.add_effect("military", {type = "unlock-recipe", recipe = "firearm-magazine-iron-lead"})
|
util.add_effect("military", {type = "unlock-recipe", recipe = "firearm-magazine-iron-lead"})
|
||||||
util.add_effect("military", {type = "unlock-recipe", recipe = "firearm-magazine-iron-only"})
|
util.add_effect("military", {type = "unlock-recipe", recipe = "firearm-magazine-iron-only"})
|
||||||
util.add_effect("military", {type = "unlock-recipe", recipe = "firearm-magazine-copper-lead"})
|
util.add_effect("military", {type = "unlock-recipe", recipe = "firearm-magazine-copper-lead"})
|
||||||
|
if mods.Krastorio2 and util.me.get_setting("kr-more-realistic-weapon") then
|
||||||
|
util.add_effect("military", {type = "unlock-recipe", recipe = "rifle-magazine-iron-lead"})
|
||||||
|
util.add_effect("military", {type = "unlock-recipe", recipe = "rifle-magazine-iron"})
|
||||||
|
util.add_effect("military", {type = "unlock-recipe", recipe = "rifle-magazine-copper-lead"})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Krastorio 2 changes
|
-- Krastorio 2 changes
|
||||||
|
|
|
||||||
106
lead-recipe.lua
106
lead-recipe.lua
|
|
@ -137,6 +137,111 @@ data:extend({
|
||||||
end
|
end
|
||||||
|
|
||||||
if util.me.more_ammo() then
|
if util.me.more_ammo() then
|
||||||
|
if mods.Krastorio2 and util.me.get_setting("kr-more-realistic-weapon") then
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "firearm-magazine-iron-lead",
|
||||||
|
category = "crafting",
|
||||||
|
order = "a[basic-clips]-a01[pistol-magazine]-i",
|
||||||
|
energy_required = 1,
|
||||||
|
ingredients = {{"lead-plate", 2}, {"iron-plate", 3}},
|
||||||
|
result = "firearm-magazine",
|
||||||
|
result_count = 2,
|
||||||
|
enabled = false,
|
||||||
|
icons = {
|
||||||
|
{ icon = util.k2assets().."/icons/items-with-variations/ammo/pistol-ammo-1.png", icon_size = 64},
|
||||||
|
{ icon = "__base__/graphics/icons/iron-plate.png", icon_size = 64,
|
||||||
|
scale=0.25, shift= {8, -6}},
|
||||||
|
{ icon = "__bzlead__/graphics/icons/lead-plate.png",
|
||||||
|
icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -6}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "firearm-magazine-iron-only",
|
||||||
|
category = "crafting",
|
||||||
|
order = "a[basic-clips]-a01[pistol-magazine]-io",
|
||||||
|
energy_required = 0.5,
|
||||||
|
ingredients = {{"iron-plate", 3}},
|
||||||
|
result = "firearm-magazine",
|
||||||
|
enabled = false,
|
||||||
|
icons = {
|
||||||
|
{ icon = util.k2assets().."/icons/items-with-variations/ammo/pistol-ammo-1.png", icon_size = 64},
|
||||||
|
{ icon = "__base__/graphics/icons/iron-plate.png", icon_size = 64,
|
||||||
|
scale=0.25, shift= {8, -6}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "firearm-magazine-copper-lead",
|
||||||
|
category = "crafting",
|
||||||
|
order = "a[basic-clips]-a01[pistol-magazine]-lc",
|
||||||
|
energy_required = 0.5,
|
||||||
|
ingredients = {{"lead-plate", 1}, {"copper-plate", 1}},
|
||||||
|
result = "firearm-magazine",
|
||||||
|
enabled = false,
|
||||||
|
icons = {
|
||||||
|
{ icon = util.k2assets().."/icons/items-with-variations/ammo/pistol-ammo-1.png", icon_size = 64},
|
||||||
|
{ icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64,
|
||||||
|
scale=0.25, shift= {8, -6}},
|
||||||
|
{ icon = "__bzlead__/graphics/icons/lead-plate.png",
|
||||||
|
icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -6}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "rifle-magazine-iron-lead",
|
||||||
|
category = "crafting",
|
||||||
|
order = "a[basic-clips]-a03[rifle-magazine]-i",
|
||||||
|
energy_required = 2,
|
||||||
|
ingredients = {{"lead-plate", 2}, {"iron-plate", 3}, {"copper-plate", 2}},
|
||||||
|
result = "rifle-magazine",
|
||||||
|
result_count = 2,
|
||||||
|
enabled = false,
|
||||||
|
icons = {
|
||||||
|
{ icon = util.k2assets().."/icons/items-with-variations/ammo/rifle-ammo-1.png", icon_size = 64},
|
||||||
|
{ icon = "__base__/graphics/icons/iron-plate.png", icon_size = 64,
|
||||||
|
scale=0.25, shift= {8, -6}},
|
||||||
|
{ icon = "__bzlead__/graphics/icons/lead-plate.png",
|
||||||
|
icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -6}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "rifle-magazine-iron",
|
||||||
|
category = "crafting",
|
||||||
|
order = "a[basic-clips]-a03[rifle-magazine]-io",
|
||||||
|
energy_required = 1,
|
||||||
|
ingredients = {{"iron-plate", 4}, {"copper-plate", 1}},
|
||||||
|
result = "rifle-magazine",
|
||||||
|
enabled = false,
|
||||||
|
icons = {
|
||||||
|
{ icon = util.k2assets().."/icons/items-with-variations/ammo/rifle-ammo-1.png", icon_size = 64},
|
||||||
|
{ icon = "__base__/graphics/icons/iron-plate.png", icon_size = 64,
|
||||||
|
scale=0.25, shift= {8, -6}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "rifle-magazine-copper-lead",
|
||||||
|
category = "crafting",
|
||||||
|
order = "a[basic-clips]-a03[rifle-magazine]-lc",
|
||||||
|
energy_required = 1,
|
||||||
|
ingredients = {{"lead-plate", 3}, {"copper-plate", 1}},
|
||||||
|
result = "rifle-magazine",
|
||||||
|
enabled = false,
|
||||||
|
icons = {
|
||||||
|
{ icon = util.k2assets().."/icons/items-with-variations/ammo/rifle-ammo-1.png", icon_size = 64},
|
||||||
|
{ icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64,
|
||||||
|
scale=0.25, shift= {8, -6}},
|
||||||
|
{ icon = "__bzlead__/graphics/icons/lead-plate.png",
|
||||||
|
icon_size = 64, icon_mipmaps = 3, scale=0.25, shift= {-8, -6}},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
else
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
|
|
@ -190,3 +295,4 @@ data:extend({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue