You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
647 B
SQL
22 lines
647 B
SQL
-- 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;
|