[boskid][2.0.41] Follower Robot Lifetime Research Effect
Posted: Sun Mar 16, 2025 11:21 pm
Same issue as this post in modding help : 105419
There is a Technology "Effect" called "follower-robot-lifetime" listed at: [https://lua-api.factorio.com/latest/con ... gyModifier]
A mod introducing a Technology that uses this Effect can be defined as:
This works as expected with a modifier of 1 (or any larger integer.) Capsule items in inventory show the expected bonus, and spawned robots have the expected lifetime:
(note 45+45 lifetime) (note 90 lifetime) When using a modifier such as 0.2, the capsule's lifetime showed as expected, but the spawned robot does not:
(note 45+9 lifetime) (note 45 lifetime) The modifier is displayed correctly in the bonuses tab :
Log file: Simple mod with follower lifetime research:
There is a Technology "Effect" called "follower-robot-lifetime" listed at: [https://lua-api.factorio.com/latest/con ... gyModifier]
A mod introducing a Technology that uses this Effect can be defined as:
Code: Select all
{
type = "technology",
effects =
{
{
type = "follower-robot-lifetime",
modifier = 1
}
},
...
},
(note 45+45 lifetime) (note 90 lifetime) When using a modifier such as 0.2, the capsule's lifetime showed as expected, but the spawned robot does not:
(note 45+9 lifetime) (note 45 lifetime) The modifier is displayed correctly in the bonuses tab :
Log file: Simple mod with follower lifetime research: