private int EncodeWeapon(SectionWeapon w) { return GetTower().faction.EncodeSectionWeapon(w.wtype); }