VLDLX36VVSDC6EBOX4N2W3UI6YZIG47OLUF3DT4KLZH43MPC35IQC int want_shield = you.skills[SK_SHIELDS] + 10;int dont_shield = you.experience_level - want_shield + 20;if (dont_shield < 5)dont_shield = 5;// At XL 10, weapons of the handedness you want get weight *2, those of// opposite handedness 1/2, assuming your shields skill is respectively// 0 or equal to the experience level. At XL 25 that's *3.5 .