17 Commits
0.7.4 ... main

3 changed files with 152 additions and 8 deletions

58
control.lua Normal file
View File

@@ -0,0 +1,58 @@
--Refactored by Gemini (thx i suck at lua)
local welcome_messages = {
"welcome to capitalism 2, you're in for it",
"The factory must grow.",
"Efficiency is key.",
"I subject you to the ultimate torture: no more linked belts",
"If you die on cap 2, I will laugh.",
"Cap 0 never existed and can't hurt you",
"The game is not broken, you are.",
"RATIO FAILED! (To ratio, get more likes than someone)",
"LIVE THE DREAM WITH A TIME MACHINE, YOU'VE BEEN WAITING FOREVER!",
"ALOONE AT THE EDGE OF THE UNIVERSE, HUMMING A TUNE... FOR MEERLY DREAMING WE WERE SNOW",
"here at capitalism game 2 where we pride ourselves on shenanigans",
"we got the entire continent to ourselves",
"we got the entire world to ourselves",
"DIE TERMINID SCUM",
"see exotic new lifeforms"
}
local death_messages = {
"forgot how to factory.",
"was deemed inefficient.",
"has been terminated.",
"didn't check for trains.",
"is sleeping with the biters.",
"encountered a fatal exception.",
"tried reconstructing v2",
"got returned to sender.",
"is now part of the ecosystem.",
"went insane.",
"desynced.. nah just kidding you got pwned",
"died on cap 2, which 9/10 doctors say is a skill issue.",
": The system files are corrupeted. Please refer to the Wii Operations Manual for help troubleshooting.",
"was terminid scum",
"was a socialist automaton",
"was a terrorist illuminate",
"did not hop on helldivers",
"betrayed the cause of Managed Democracy",
"betrayed the cause of capitalism",
"missed the MLG",
"HAD ZERO SWAG",
"thought they were him",
"blamed Microsoft",
"Faced a Hive Lord and lost"
}
--Add random welcome messages! If we're modifying the game we might as well do it in STYLE
script.on_event(defines.events.on_player_joined_game, function(event)
local player = game.players[event.player_index]
if player then
player.print(welcome_messages[math.random(#welcome_messages)])
end
end)
--Courtesy of Gemini
script.on_event(defines.events.on_player_died, function(event)
local player = game.players[event.player_index]
game.print(player.name .. " " .. death_messages[math.random(#death_messages)])
end)

100
data.lua
View File

@@ -4,13 +4,20 @@ data.raw["recipe"]["electric-furnace"].ingredients = {
{type = "item", name = "stone-brick", amount = 10}
}
-- Change Fast Inserter
-- Because we can somehow wrangle one plate into an inserter lol. anyway
-- Change Inserters
data.raw["recipe"]["inserter"].ingredients = {
{type = "item", name = "iron-plate", amount = 1}
}
data.raw["recipe"]["fast-inserter"].ingredients = {
{type = "item", name = "iron-plate", amount = 2}
}
data.raw["recipe"]["inserter"].ingredients = {
{type = "item", name = "iron-plate", amount = 1}
data.raw["recipe"]["long-handed-inserter"].ingredients = {
{type = "item", name = "iron-plate", amount = 2},
{type = "item", name = "electronic-circuit", amount = 2}
}
data.raw["recipe"]["fast-long-handed-inserter"].ingredients = {
{type = "item", name = "iron-plate", amount = 4},
{type = "item", name = "electronic-circuit", amount = 4}
}
-- Change Advanced Circuit
@@ -42,25 +49,104 @@ data.raw["recipe"]["fast-transport-belt"].ingredients = {
data.raw["recipe"]["solar-panel"].ingredients = {
{type="item", name="iron-gear-wheel", amount=5}
}
data.raw["recipe"]["solar-panel-equipment"].ingredients = {
{type="item", name="iron-gear-wheel", amount=5}
}
--Change electric poles
--realistically this would short circut
--i'm not realistic
data.raw["recipe"]["small-electric-pole"].ingredients = {
{type="item", name="iron-stick", amount=1},
{type="item", name="copper-wire", amount=3}
{type="item", name="copper-cable", amount=3}
}
--Make assembly machine 2's cheaper
--Make assembly machine 1's cheaper for balance
--THE FACTORY MUST GROW
data.raw["recipe"]["assembling-machine-2"].ingredients = {
{type="item", name="iron-gear-wheel", amount=3},
{type="item", name="iron-plate", amount=5},
{type="item", name="electronic-circuit", amount=1}
}
--Make assembly machine 2's cheaper
--THE FACTORY MUST GROW
data.raw["recipe"]["assembling-machine-1"].ingredients = {
{type="item", name="iron-gear-wheel", amount=5},
{type="item", name="iron-plate", amount=5},
{type="item", name="electronic-circuit", amount=3}
}
--better defence early game is always a plus on easy mode
data.raw["recipe"]["military-science-pack"].ingredients = {
{type="item", name="grenade", amount=1},
{type="item", name="firearm-magazine", amount=2},
{type="item", name="stone-wall", amount=2}
}
--MUCH cheaper than vanilla, MUCH more expensive than this mod
data.raw["recipe"]["bulk-inserter"].ingredients = {
{type = "item", name = "iron-plate", amount = 4}
}
data.raw["recipe"]["speed-module"].ingredients = {
{type="item", name="electronic-circuit", amount=10},
}
data.raw["module"]["speed-module"].stack_size = 5
data.raw["recipe"]["speed-module-2"].ingredients = {
{type="item", name="electronic-circuit", amount=20},
}
data.raw["module"]["speed-module-2"].stack_size = 5
data.raw["recipe"]["speed-module-3"].ingredients = {
{type="item", name="electronic-circuit", amount=40},
}
data.raw["module"]["speed-module-3"].stack_size = 5
data.raw["recipe"]["effectivity-module"].ingredients = {
{type="item", name="advanced-circuit", amount=10},
}
data.raw["module"]["effectivity-module"].stack_size = 5
data.raw["recipe"]["effectivity-module-2"].ingredients = {
{type="item", name="advanced-circuit", amount=20},
}
data.raw["module"]["effectivity-module-2"].stack_size = 5
data.raw["recipe"]["effectivity-module-3"].ingredients = {
{type="item", name="advanced-circuit", amount=40},
}
data.raw["module"]["effectivity-module-3"].stack_size = 5
data.raw["recipe"]["productivity-module"].ingredients = {
{type="item", name="processing-unit", amount=10},
}
data.raw["module"]["productivity-module"].stack_size = 5
data.raw["recipe"]["productivity-module-2"].ingredients = {
{type="item", name="processing-unit", amount=20},
}
data.raw["module"]["productivity-module-2"].stack_size = 5
data.raw["recipe"]["productivity-module-3"].ingredients = {
{type="item", name="processing-unit", amount=40},
}
data.raw["module"]["productivity-module-3"].stack_size = 5
--balance landfills since Cap2 uses a watery map with lots of water tiles
data.raw["recipe"]["landfill"].ingredients = {
{type="item", name="stone", amount=25}
}
--make personal roboport cheaper
data.raw["recipe"]["personal-roboport-equipment"].ingredients = {
{type="item", name="advanced-circuit", amount=5},
{type="item", name="battery", amount=20},
{type="item", name="iron-gear-wheel", amount=20}
}
--mk.2
data.raw["recipe"]["personal-mk2-equipment"].ingredients = {
{type="item", name="advanced-circuit", amount=10},
{type="item", name="battery", amount=40},
{type="item", name="iron-gear-wheel", amount=40}
}
data.raw["recipe"]["battery-equipment"].ingredients = {
{type = "item", name = "iron-plate", amount = 10}
}

View File

@@ -1,6 +1,6 @@
{
"name": "cap2-easymod",
"version": "0.7.2",
"version": "0.8.1",
"title": "Capitalism Game 2 Recipes",
"author": "unfunny",
"factorio_version": "2.0",