| | |
| | | && level != requireLevel)
|
| | | {
|
| | | var _stage = 0;
|
| | | if (godWeaponModel.TryGetGodWeaponStage(type, requireLevel, out _stage))
|
| | | if (godWeaponModel.TryGetGodWeaponStage(type, level, out _stage))
|
| | | {
|
| | | var index = GetGodWeaponEquipShowIndex(type, _stage);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, false);
|
| | |
| | | value = (uint)MathUtility.SetBitValue((int)value, index, isOn);
|
| | | }
|
| | |
|
| | | SendPackage(value);
|
| | | if (value != PlayerDatas.Instance.baseData.equipShowSwitch)
|
| | | {
|
| | | SendPackage(value);
|
| | | }
|
| | | }
|
| | |
|
| | | public static void SendPackage(uint value)
|
| | |
| | | if (stage != 0 && stage <= 3)
|
| | | {
|
| | | var index = EquipShowSwitch.GetGodWeaponEquipShowIndex(type, stage);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, false);
|
| | | value = (uint)MathUtility.SetBitValue((int)value, index, true);
|
| | | }
|
| | | }
|
| | | }
|