mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-06 00:23:49 +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:
parent
4abdfa0ede
commit
656e30617d
@ -56,7 +56,7 @@ mana_max=This is your max mana. You can increase the regen by increasing your ma
|
||||
mining_name=MINING\nSPEED
|
||||
slot_name=SLOT\nBONUS
|
||||
melee_name=MELEE\nDAMAGE
|
||||
one_punch_chance=Life on-hit: __1__\nOne punch chance: __2__ %
|
||||
one_punch_chance=Life on-hit: __1__\nOne punch chance: __2__ % \n+__3__ [img=recipe.defender-capsule]
|
||||
one_punch_disabled=One Punch is disabled.
|
||||
bonus_tooltip=Reach distance bonus: __1__\nBuild distance bonus: __2__\nItem drop distance bonus: __3__\nLoot pickup distance bonus: __4__\nItem pickup distance bonus: __5__\nResource reach distance bonus: __6__\nRepair speed: __7__
|
||||
reach_distance=REACH\nDISTANCE
|
||||
|
@ -56,7 +56,7 @@ mana_max=这是你的最大魔力值。你可以通过增加你的魔法技能
|
||||
mining_name=挖掘\n速度
|
||||
slot_name=背包\n加成
|
||||
melee_name=近战\n伤害
|
||||
one_punch_chance=命中生命: __1__\n暴击几率: __2__ %
|
||||
one_punch_chance=命中生命: __1__\n暴击几率: __2__ %\n +__3__ [img=recipe.defender-capsule]
|
||||
one_punch_disabled=暴击被禁用
|
||||
bonus_tooltip=到达距离加成: __1__\n建筑距离加成: __2__\n物品投掷距离加成: __3__\n拾取战利品距离加成: __4__\n物品拾取距离加成: __5__\n资源到达距离加成: __6__\n修理速度: __7__
|
||||
reach_distance=到达\n距离
|
||||
|
@ -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
|
||||
|
@ -359,7 +359,8 @@ local function draw_main_frame(player, location)
|
||||
melee_damage_tooltip = ({
|
||||
'rpg_gui.one_punch_chance',
|
||||
Functions.get_life_on_hit(player),
|
||||
Functions.get_one_punch_chance(player)
|
||||
Functions.get_one_punch_chance(player),
|
||||
Functions.get_extra_following_robots(player)
|
||||
})
|
||||
else
|
||||
melee_damage_tooltip = ({'rpg_gui.one_punch_disabled'})
|
||||
|
Loading…
Reference in New Issue
Block a user