Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | |
|
| | | private void AlchemyStateRefresh()
|
| | | {
|
| | | DisplayAlchmey();
|
| | |
|
| | | var lastGrasp = !m_AlchemyStudy.gameObject.activeSelf;
|
| | |
|
| | | if (model.isServerPrepare && !lastGrasp && model.IsGraspRecipe(model.selectAlchemy))
|
| | | {
|
| | | m_StudySuccEffect.Play();
|
| | | }
|
| | |
|
| | | DisplayAlchmey();
|
| | |
|
| | | }
|
| | |
|
| | | void DisplayAlchmey()
|
| | |
| | | WindowCenter.Instance.Close<EquipFrameWin>(); |
| | | } |
| | | |
| | | public static int GetRedpointFunction()
|
| | | {
|
| | | if (ModelCenter.Instance.GetModel<EquipStrengthModel>().redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | return 0;
|
| | | }
|
| | | if (ModelCenter.Instance.GetModel<EquipGemModel>().redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | return 1;
|
| | | }
|
| | | if (RedpointCenter.Instance.GetRedpointState(910000) == RedPointState.Simple)
|
| | | {
|
| | | return 2;
|
| | | }
|
| | | if (RedpointCenter.Instance.GetRedpointState(1720000) == RedPointState.Simple)
|
| | | {
|
| | | return 3;
|
| | | }
|
| | | return 0;
|
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | public bool IsGemHoleOpen(int hole, int starLevel)
|
| | | {
|
| | | GemHoleCondition condition;
|
| | | if (TryGetGemHoleCondition(hole, out condition))
|
| | | {
|
| | | if (starLevel < condition.equipStar)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | public bool IsEquipGemHoleOpen(int packIndex, int hole)
|
| | | {
|
| | | var config = EquipPlaceMapConfig.Get(packIndex);
|
| | |
| | | {
|
| | | return false;
|
| | | }
|
| | | if (IsEquipGemMaxLevel(equipGem))
|
| | | {
|
| | | return false;
|
| | | }
|
| | | var config = ItemConfig.Get(equipGem);
|
| | | var type = config.EffectValueA1;
|
| | | var emptyHoleCount = GetSameTypeEmptyUnlockHole(cacheEquipSets, type);
|
| | |
| | | Dictionary<int, EquipSetStar> equipStars = new Dictionary<int, EquipSetStar>(); |
| | | |
| | | |
| | | Redpoint redpoint = new Redpoint(1720000); |
| | | Redpoint redpoint = new Redpoint(106, 1720000); |
| | | bool redpointDirty = false; |
| | | LogicUpdate logicUpdate = new LogicUpdate(1); |
| | | |
| | |
| | | static Dictionary<int, int> trainTypes = new Dictionary<int, int>(); |
| | | Dictionary<int, EquipTrainSet> equipTrains = new Dictionary<int, EquipTrainSet>(); |
| | | |
| | | Redpoint redpoint = new Redpoint(910000); |
| | | Redpoint redpoint = new Redpoint(106,910000); |
| | | bool redpointDirty = false; |
| | | LogicUpdate logicUpdate = new LogicUpdate(1); |
| | | |
| | |
| | | void Strengthen1Button()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<EquipFrameWin>(false, 0);
|
| | | WindowCenter.Instance.Open<EquipFrameWin>(false, EquipFrameWin.GetRedpointFunction());
|
| | | }
|
| | |
|
| | | void OpenEquip()
|