mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
+2
-4
@@ -1,8 +1,6 @@
|
||||
|
||||
if settings.startup['PHI-SA'].value or settings.startup['PHI-GM'].value ~= '' then
|
||||
if not mods['space-age'] then
|
||||
error('Mod not found\nSpace Age is not enabled\n太空時代尚未啟用\nSpace Age が有効になっていません')
|
||||
end
|
||||
if (settings.startup['PHI-SA'].value or settings.startup['PHI-GM'].value ~= '') and (not mods['space-age']) then
|
||||
error('Mod not found\nSpace Age is not enabled\n太空時代尚未啟用\nSpace Age が有効になっていません')
|
||||
end
|
||||
|
||||
require('data.b.ct')
|
||||
|
||||
@@ -13,7 +13,7 @@ if not settings.startup['PHI-MB'].value then
|
||||
return
|
||||
end
|
||||
|
||||
if not settings.startup['PHI-MB-ENERGY'].value or settings.startup['PHI-MB-ENERGY'].value <= 1 then
|
||||
if settings.startup['PHI-MB-ENERGY'].value <= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ if not settings.startup['PHI-MB'].value then
|
||||
return
|
||||
end
|
||||
|
||||
if not settings.startup['PHI-MB-MACHINE'].value or settings.startup['PHI-MB-MACHINE'].value <= 1 then
|
||||
if settings.startup['PHI-MB-MACHINE'].value <= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ if not settings.startup['PHI-MB'].value then
|
||||
return
|
||||
end
|
||||
|
||||
if not settings.startup['PHI-MB-EQUIPMENT'].value or settings.startup['PHI-MB-EQUIPMENT'].value <= 1 then
|
||||
if settings.startup['PHI-MB-EQUIPMENT'].value <= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ local mod_tint = {
|
||||
[8] = {r=233, g=63, b=233}
|
||||
}
|
||||
|
||||
if not (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or not (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
|
||||
if not (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) and not (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
if not settings.startup['PHI-SA'].value or settings.startup['PHI-GM'].value == '' then
|
||||
if not settings.startup['PHI-SA'].value and settings.startup['PHI-GM'].value == '' then
|
||||
return
|
||||
end
|
||||
|
||||
@@ -114,10 +114,6 @@ if (settings.startup['PHI-SA'].value and (not settings.startup['PHI-SA-SPOIL'].v
|
||||
end
|
||||
end
|
||||
|
||||
if not settings.startup['PHI-SA'].value then
|
||||
return
|
||||
end
|
||||
|
||||
-- SA C 1 SPACE_AGE CONSTANT
|
||||
data.raw['utility-constants'].default.rocket_lift_weight = settings.startup['PHI-SA-ROCKET-CAPACITY'].value * 1000000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user