1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-25 22:32:18 +02:00

rpg update melee damage gui to show follower modifier

+1 function to get the count
+en and zh-CN locale strings (only two with rpg.cfg)
This commit is contained in:
Jacob
2021-02-11 17:45:21 -05:00
parent 4abdfa0ede
commit 656e30617d
4 changed files with 11 additions and 3 deletions

View File

@@ -479,6 +479,13 @@ function Public.get_one_punch_chance(player)
return chance
end
function Public.get_extra_following_robots(player)
local rpg_t = RPG.get('rpg_t')
local strength = rpg_t[player.index].strength
local count = math.round(strength / 2 * 0.03, 3)
return count
end
function Public.get_magicka(player)
local rpg_t = RPG.get('rpg_t')
return (rpg_t[player.index].magicka - 10) * 0.10