From 4b44e1a07078df36d33ea0ac4a159bed664b78af Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 22 四月 2019 19:27:00 +0800
Subject: [PATCH] 3335 炼丹红点
---
System/Alchemy/AlchemyModel.cs | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/System/Alchemy/AlchemyModel.cs b/System/Alchemy/AlchemyModel.cs
index 3b72641..c0f7be9 100644
--- a/System/Alchemy/AlchemyModel.cs
+++ b/System/Alchemy/AlchemyModel.cs
@@ -18,6 +18,7 @@
public readonly Redpoint redpoint = new Redpoint(MainRedDot.RedPoint_key, 110);
public readonly Redpoint alchemyDrugRedpoint1 = new Redpoint(110, 11001);
public readonly Redpoint alchemyDrugRedpoint2 = new Redpoint(110, 11002);
+ public readonly Redpoint alchemyDrugREdpoint3 = new Redpoint(110, 11003);
Dictionary<int, Dictionary<int, Redpoint>> alchemyQualityRedpoints = new Dictionary<int, Dictionary<int, Redpoint>>();
Dictionary<int, AlchemyRedpoint> alchemyRedpoints = new Dictionary<int, AlchemyRedpoint>();
@@ -114,6 +115,11 @@
{
CheckRedpoint();
}
+
+ if (m_AlchemyDrugs.Contains(itemId))
+ {
+ RefreshUseDrugRedpoint();
+ }
}
private void PlayerDataRefreshEvent(PlayerDataType dataType)
@@ -129,6 +135,7 @@
if (id == (int)FuncOpenEnum.BlastFurnace)
{
CheckRedpoint();
+ RefreshUseDrugRedpoint();
}
}
@@ -628,6 +635,23 @@
}
}
}
+
+ void RefreshUseDrugRedpoint()
+ {
+ var useable = false;
+ if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.BlastFurnace))
+ {
+ foreach (var itemId in m_AlchemyDrugs)
+ {
+ if (GetAlchemyDrugState(itemId) == 0)
+ {
+ useable = true;
+ break;
+ }
+ }
+ }
+ alchemyDrugREdpoint3.state = useable ? RedPointState.Simple : RedPointState.None;
+ }
}
public enum AlchemyType
--
Gitblit v1.8.0