mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -7,15 +7,8 @@ local main = {}
|
|||||||
function main.EEE(source, tier)
|
function main.EEE(source, tier)
|
||||||
local item = table.deepcopy(data.raw[source.type][source.ref_name])
|
local item = table.deepcopy(data.raw[source.type][source.ref_name])
|
||||||
|
|
||||||
if tier > 1 then
|
item.name = source.name .. '-' .. tier
|
||||||
item.name = source.name
|
item.minable.result = source.name .. '-' .. tier
|
||||||
item.minable.result = source.name
|
|
||||||
|
|
||||||
else
|
|
||||||
item.name = source.name .. '-' .. tier
|
|
||||||
item.minable.result = source.name .. '-' .. tier
|
|
||||||
end
|
|
||||||
|
|
||||||
item.max_health = item.max_health * (2 ^ (tier - source.min + 1))
|
item.max_health = item.max_health * (2 ^ (tier - source.min + 1))
|
||||||
|
|
||||||
if item.energy_usage then
|
if item.energy_usage then
|
||||||
|
|||||||
Reference in New Issue
Block a user