You've already forked ComfyFactorio
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user