mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2025-02-07 13:07:58 +02:00
Removing migrations and bump to new major version.
This commit is contained in:
parent
6e5788b29a
commit
19fa4654f9
@ -1,4 +1,9 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 2.1.0
|
||||||
|
Date: ????
|
||||||
|
Major Features:
|
||||||
|
- Support for Factorio 2.0 and Space Age DLC!
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.4
|
Version: 2.0.4
|
||||||
Date: 2024-10-19
|
Date: 2024-10-19
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "oarc-mod",
|
"name": "oarc-mod",
|
||||||
"version": "2.0.4",
|
"version": "2.1.0",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "2.0",
|
||||||
"title": "Oarc Multiplayer Spawn",
|
"title": "Oarc Multiplayer Spawn",
|
||||||
"author": "Oarcinae",
|
"author": "Oarcinae",
|
||||||
"contact": "Mod Discussion Page, oarcinae@gmail.com, Discord:oarc",
|
"contact": "Mod Discussion Page, oarcinae@gmail.com, Discord:oarc",
|
||||||
"homepage": "https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn",
|
"homepage": "https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn",
|
||||||
"description": "[[Description is in locale file!]]",
|
"description": "[[Description is in locale file!]]",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"base >= 1.1.0",
|
"base >= 2.0.0",
|
||||||
"(?) dangOreus" ,
|
"(?) dangOreus" ,
|
||||||
"(?) Milestones",
|
"(?) Milestones",
|
||||||
"(?) space-exploration",
|
"(?) space-exploration",
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
-- Migrate safe_radius, warn_radius and danger_radius to be chunks instead of tiles.
|
|
||||||
for surface_name, surface_config in pairs(global.ocfg.surfaces_config) do
|
|
||||||
|
|
||||||
-- If the safe_area is greater than 3 chunks, then it's likely in chunks...
|
|
||||||
if surface_config.spawn_config.safe_area.safe_radius >= (3 * 32) then
|
|
||||||
log("Oarc-mod: Migrating safe_radius, warn_radius and danger_radius to be chunks instead of tiles.")
|
|
||||||
local safe_radius = surface_config.spawn_config.safe_area.safe_radius
|
|
||||||
global.ocfg.surfaces_config[surface_name].spawn_config.safe_area.safe_radius = math.ceil(safe_radius / 32)
|
|
||||||
|
|
||||||
local warn_radius = surface_config.spawn_config.safe_area.warn_radius
|
|
||||||
global.ocfg.surfaces_config[surface_name].spawn_config.safe_area.warn_radius = math.ceil(warn_radius / 32)
|
|
||||||
|
|
||||||
local danger_radius = surface_config.spawn_config.safe_area.danger_radius
|
|
||||||
global.ocfg.surfaces_config[surface_name].spawn_config.safe_area.danger_radius = math.ceil(danger_radius / 32)
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,15 +0,0 @@
|
|||||||
-- Add new coin shop settings and config.
|
|
||||||
|
|
||||||
if global.ocfg.gameplay.enable_coin_shop == nil then
|
|
||||||
global.ocfg.gameplay.enable_coin_shop = false -- Default to off
|
|
||||||
end
|
|
||||||
|
|
||||||
if global.ocfg.shop_items == nil then
|
|
||||||
global.ocfg.shop_items = table.deepcopy(OARC_SHOP_ITEMS)
|
|
||||||
end
|
|
||||||
|
|
||||||
if global.ocfg.coin_generation == nil then
|
|
||||||
global.ocfg.coin_generation = table.deepcopy(OCFG.coin_generation)
|
|
||||||
end
|
|
||||||
|
|
||||||
SetupOCFGModKeys()
|
|
@ -1,7 +0,0 @@
|
|||||||
-- If "enemy-easy" and "enemy-medium" forces still exist, merge them into "enemy" force.
|
|
||||||
if game.forces["enemy-easy"] then
|
|
||||||
game.merge_forces("enemy-easy", "enemy")
|
|
||||||
end
|
|
||||||
if game.forces["enemy-medium"] then
|
|
||||||
game.merge_forces("enemy-medium", "enemy")
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user