FAForever / fa

Lua code for FAF
221 stars 228 forks source link

[Bug]: UnitViewDetail shows wrong firing pattern for Cybran Static Flak (Burst Master) #6262

Open lL1l1 opened 2 weeks ago

lL1l1 commented 2 weeks ago

Describe the Bug

It shows the firing pattern as 38x4 damage with 1 second reload, but it really fires 38x2 damage with 0.5 reload. The weapon blueprint has 2 racks with 2 muzzles each, and a fire rate of 2 with RackFireTogether = false. The UI script is incapable of understanding that this setup creates a firing cycle of 2 shots every 0.5 seconds.

Reproduce the bug

Disable UI mods that modify UnitViewDetail, enable the "Show Armament Details in Build Menu" setting, and mouse over the unit in the construction bar.

Screenshots

image

Additional context

Make sure the Bouncer's unique and complex firing cycle is not misinterpreted with the fix. The UEF strategic submarine (Ace) and the Mantis have a similar firing cycle, but with only 1 muzzle per rack.