Inverted logic in LUA code controlling toughness regen standing still vs moving

Gleaned from comments on Reddit post and did some digging of my own.

		local base_rate = standing_still and toughness_template.regeneration_speed.moving or toughness_template.regeneration_speed.still
		local weapon_rate_modifier = weapon_toughness_template and (standing_still and weapon_toughness_template.regeneration_speed_modifier.moving or weapon_toughness_template.regeneration_speed_modifier.still) or 1

BUG : Inverted logic in LUA player_unit_toughness_extension ?
See lines 103,104

Are some weapons supposed to give triple regen while MOVING (but is inverted due to bug?)

There are 19 weapons that seem to use the “assault” toughness template which shows a 1:3 still:moving regeneration_speed_modifier , BUT with the inverted logic bug 3:1 still:moving?

Rephrased, it appears that these 19 weapons should give 3x more regen when moving, but is reversed due to bug ?
So different and possibly MORE tougness regeneration while moving is the intended result?

autopistols\autopistol_p1_m1
autopistols\autopistol_p1_m2
autopistols\autopistol_p1_m3
bot_laspistol_killshot
bot_zola_laspistol
combat_knives\combatknife_p1_m1
combat_knives\combatknife_p1_m2
combat_knives\combatknife_p1_m3
lasguns\lasgun_p3_m2
laspistols\laspistol_p1_m1
laspistols\laspistol_p1_m2
laspistols\laspistol_p1_m3
power_mauls\powermaul_p1_m1
power_mauls\powermaul_p1_m2
power_mauls\powermaul_p1_m3
stub_pistols\stubrevolver_p1_m1
stub_pistols\stubrevolver_p1_m2
stub_pistols\stubrevolver_p1_m3
stub_rifles\stubrifle_p1_m1
weapon_toughness_templates.assault = {
	regeneration_delay_modifier = 0.8,
	regeneration_speed_modifier = {
		still = 1,
		moving = 3
	},

P.S the standing still land moving base values both seem to be 5 so that part is moot, but the weapon ones are reversed due to logic bug.

5 Likes

Not fixed in today’s patch?
Got the LUA dump from GitHub - Aussiemon/Darktide-Source-Code: Versions 'External-Test' to 1.0.22 and Associated Bundles and the line seems unchanged.

STILL bugged!?

1 Like

Can assault weapons also force enemies to melee at the same range as melee weapons?