Beacon Rebalance


Beacon rebalance mod that emulates the balance of Space Exploration's beacons, including the overload mechanic. (Now with Krastorio 2 and Bob's/SeaBlock compatibility!)

Tweaks
1 year, 3 months ago
1.1
16.6K

g Vanilla sprite ?

2 years ago

Hello,

I very much like SE beacon balance and like the idea of your mod to propose it for vanilla. However I like the vanilla beacon apparence, I have no problem for MK2 & MK3 using the old beacon sprite introduced in the mod.

Would it be possible add an option to keep the Beacon MK1 as the vanilla sprite instead of the same as MK2 & MK3 ?

2 years ago
(updated 2 years ago)

I manage to make the change, here's the git patch :

Date: Fri, 29 Apr 2022 21:14:39 +0200
Subject: [PATCH] add keep vanilla beacon mk1 setting


wret-beacon-rebalance-mod_1.0.0/locale/en/locale.cfg | 1 +
.../prototypes/classic_beacon.lua | 14 ++++++++------
wret-beacon-rebalance-mod_1.0.0/settings.lua | 7 +++++++
3 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/wret-beacon-rebalance-mod_1.0.0/locale/en/locale.cfg b/wret-beacon-rebalance-mod_1.0.0/locale/en/locale.cfg
index 35b8818..df21274 100644
--- a/wret-beacon-rebalance-mod_1.0.0/locale/en/locale.cfg
+++ b/wret-beacon-rebalance-mod_1.0.0/locale/en/locale.cfg
@@ -31,6 +31,7 @@ wret-block-FE-beacons=Remove FE+ beacons
wret-FE-beacons-modification=Rebalance FE+ beacons
wret-block-bob=Disable Bob's Modules beacons
wret-change-bob=Rebalance Bob's Modules beacons
+wret-overload-keep-vanilla-sprite-mk1=Keep Vanilla Sprite for Beacon MK1

[mod-setting-description]
wret-overload-enable-beaconmk2=Unchecking this box will remove the Beacon Mk2 (it will do nothing if Beacon Mk3 is enabled)
diff --git a/wret-beacon-rebalance-mod_1.0.0/prototypes/classic_beacon.lua b/wret-beacon-rebalance-mod_1.0.0/prototypes/classic_beacon.lua
index f6702df..1c37fa3 100644
--- a/wret-beacon-rebalance-mod_1.0.0/prototypes/classic_beacon.lua
+++ b/wret-beacon-rebalance-mod_1.0.0/prototypes/classic_beacon.lua
@@ -357,9 +357,11 @@ beacon_fake.water_reflection = {
}
} -- end vanilla art style
}
-
- if not mods["bobmodules"] and not mods["reskins-bobs"] then
- data.raw["beacon"]["beacon"] = beacon_fake
- data.raw["item"]["beacon"] = beacon_item
- data.raw["technology"]["effect-transmission"] = beacon_technology
- end
+
+ if not settings.startup["wret-overload-keep-vanilla-sprite-mk1"].value == true then
+ if not mods["bobmodules"] and not mods["reskins-bobs"] then
+ data.raw["beacon"]["beacon"] = beacon_fake
+ data.raw["item"]["beacon"] = beacon_item
+ data.raw["technology"]["effect-transmission"] = beacon_technology
+ end
+ end
\ No newline at end of file
diff --git a/wret-beacon-rebalance-mod_1.0.0/settings.lua b/wret-beacon-rebalance-mod_1.0.0/settings.lua
index 2a6c088..cac529a 100644
--- a/wret-beacon-rebalance-mod_1.0.0/settings.lua
+++ b/wret-beacon-rebalance-mod_1.0.0/settings.lua
@@ -1,4 +1,11 @@
data:extend({
+ {
+ type = "bool-setting",
+ name = "wret-overload-keep-vanilla-sprite-mk1",
+ setting_type = "startup",
+ default_value = false,
+ order = "a0",
+ },
{
type = "bool-setting",
name = "wret-overload-enable-beaconmk2",

2 years ago

Implemented in 1.0.13.

2 years ago

Thanks !

New response