-- Per weapon *class*, use one speed/crit profile so rarity power is primary stat + M(rarity) only -- (aligns with ยง6.4 and gear-check: +40% Legendary vs Common on primary, not hidden crit/speed tiers). UPDATE public.weapons SET speed = CASE type WHEN 'daggers' THEN 1.3 WHEN 'sword' THEN 1.0 WHEN 'axe' THEN 0.7 END, crit_chance = CASE type WHEN 'daggers' THEN 0.05 WHEN 'sword' THEN 0.03 WHEN 'axe' THEN 0.02 END; UPDATE public.gear AS g SET speed_modifier = w.speed, crit_chance = w.crit_chance FROM public.weapons AS w WHERE g.slot = 'main_hand' AND g.name = w.name;