HeroTurrets


Turrets are built using salvaged self-learning AI tech from your ship allowing them to get deadlier with practice. Extends turrets via ranking system based on kills. Turrets generated so not limited to vanilla, identifiable by overlaid rank insignia. Rank buffs individual turrets.

Content
7 months ago
1.0 - 1.1
47.2K
Combat

b Damage and range not increase in Krastorio 2

2 years ago

I just noticed that damage does not increase with levels in Krastorio 2. Ammo ranges doesn't increase too.

Turret range on map is working fine, but actual range of fired ammo is lower. What is working is increased speed. I used floating dmg text mod to check the actual damage done.

I looked into the mod in hope of fixing it, but I got lost in the code. I have no modding experience so that is maybe why. I think it is in the file types.lua, but it all looks really complicated.

2 years ago
(updated 2 years ago)

I managed to fix the damage, but only for research upgrades, not for base damage. Still, it is better then nothing.

Here is the whole mod with my changes: https://jmp.sh/XliCGHV

Changes in types.lua:
on line 190 changed to this:
local update_ammo_turret_tech = function(entity, name, rank)
on line 204 changed to this:
table.insert(tech.effects, {type="turret-attack", turret_id = name, modifier = effect.modifier*(1+(0.25*rank))})

2 years ago

Thanks, I will possibly get on the pc later and check it out

2 years ago

Loading changes now

This thread has been locked.