Why this exists
"AK-47s (tesla tech) for everyone!"
After finishing PersonalTeslaDefenseEquipment I wanted to see how to add a custom weapon type to a follower robot.
What it does
-
This mod adds a copy of the destroyer robot that shoots the chaining tesla beam.
-
The recipe for the equipment is set based on what technology requirement you select in settings. "none" will make the recipe available right away and simply takes steel[steel-plate] and copper[copper-plate].
Configurables
The following settings are exposed through the Mod Settings interface in-game. All settings are "start-up" settings unless otherwise noted.
Tech Requirement
Which technology will unlock the Tesla Destroyer Robot
- none
- destroyer
- tesla-weapons (default)
Range
Set the effective range for the Tesla Destroyer Robots attack
- any integer value (default=30)
Damage Modifier
Set the damage modifier for the Tesla Destroyer Robot
- any double value >= 0.1 (default=2.0)
Shot Cooldown
The number of ticks before the robot will shoot again
- any integer >= 20 (default 90)
Beam max jumps
Maximum number of jumps for the robots beam
- any integer >= 1 and <= 100 (default 12)
Beam jump range
Jump range for the robots beam
- any integer >= 1 and <= 50 (default 12)
Beam fork chance
The chance the robots beam will fork
- any double >= 0.01 and <= 1.0 (default 0.3)
Beam fork chance per quality
The robots beam fork chance increase per quality tier
- any double >= 0.01 and <= 0.5 (default 0.05)
NOTE: the combination of this setting and the above fork chance can cause the chance to rise above 100% (1.0). This outcome has not been thoroughly tested.
Beam duration
The number of ticks for which the robots beam fires
- any integer >= 1 (default 30)
Beam base damage
The base damage dealt by the robots beam
- any integer >= 1 (default 30)
Beam fork base damage
The base damage dealt by forks of the robots beam
- any integer >= 1 (default 30)
Notes
-
All of the defaults for the beam settings are pulled from the tesla-gun beam.
-
If you choose to set the technology requirement to "none" and use the new robot before researching any maximum following robot count tech, 4 of the 5 robots spawned by the capsule will die immediately.
Conflicts / Bugs
I took care to not replace or update anything existing, only adding components. Should not conflict with anything.
Future Plans
-
Translations.
-
Open to suggestions.