6 Commits

Author SHA1 Message Date
db66713705 Add speed module recipes and adjust landfill ingredients for balance 2025-12-23 17:29:23 -05:00
0a274afc38 Spreading Managed Democracy 2025-12-23 17:13:45 -05:00
143cb6712b Change speed modules and fix a bugged recipe 2025-12-23 17:10:29 -05:00
12f1304009 increment version 2025-12-22 16:24:11 -05:00
1232714c12 Add death messages and welcome messages 2025-12-22 16:22:57 -05:00
90157c3535 Fixes a bug 2025-12-22 16:08:00 -05:00
3 changed files with 83 additions and 5 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)

View File

@@ -48,7 +48,7 @@ data.raw["recipe"]["solar-panel"].ingredients = {
--i'm not realistic --i'm not realistic
data.raw["recipe"]["small-electric-pole"].ingredients = { data.raw["recipe"]["small-electric-pole"].ingredients = {
{type="item", name="iron-stick", amount=1}, {type="item", name="iron-stick", amount=1},
{type="item", name="copper-wire", amount=3} {type="item", name="copper-cable", amount=3}
} }
--Make assembly machine 1's cheaper for balance --Make assembly machine 1's cheaper for balance
@@ -73,6 +73,26 @@ data.raw["recipe"]["military-science-pack"].ingredients = {
} }
--MUCH cheaper than vanilla, MUCH more expensive than this mod --MUCH cheaper than vanilla, MUCH more expensive than this mod
data.raw["recipe"]["bulk-inserter"].ingredients = { data.raw["recipe"]["bulk-inserter"].ingredients = {
{type="item", name="electronic-circuit", amount=10} {type="item", name="electronic-circuit", amount=10},
{type="item", name="iron-gear-wheel", amount=5}, {type="item", name="iron-gear-wheel", amount=5}
}
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
--balance landfills since Cap2 uses a watery map with lots of water tiles
data.raw["recipe"]["landfill"].ingredients = {
{type="item", name="stone", amount=25}
} }

View File

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