diff --git a/locale/en/rpg.cfg b/locale/en/rpg.cfg index 394424ea..828273eb 100644 --- a/locale/en/rpg.cfg +++ b/locale/en/rpg.cfg @@ -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 diff --git a/locale/zh-CN/rpg.cfg b/locale/zh-CN/rpg.cfg index 9badedf5..babbf0cd 100644 --- a/locale/zh-CN/rpg.cfg +++ b/locale/zh-CN/rpg.cfg @@ -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距离 diff --git a/modules/rpg/functions.lua b/modules/rpg/functions.lua index 179de79f..81429f00 100644 --- a/modules/rpg/functions.lua +++ b/modules/rpg/functions.lua @@ -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 diff --git a/modules/rpg/gui.lua b/modules/rpg/gui.lua index 129f3f40..251d15d9 100644 --- a/modules/rpg/gui.lua +++ b/modules/rpg/gui.lua @@ -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'})