Commit 4c4fe20f authored by SherryChaos's avatar SherryChaos

Fix the issue of color overexposure on normal rarity cards

parent 568f79c7
...@@ -8,12 +8,12 @@ namespace MDPro3 ...@@ -8,12 +8,12 @@ namespace MDPro3
{ {
public class DeckShareURL public class DeckShareURL
{ {
static string URL_SCHEME_HTTP = "http"; static readonly string URL_SCHEME_HTTP = "http";
static string URL_HOST_DECK = "deck.ourygo.top"; static readonly string URL_HOST_DECK = "deck.ourygo.top";
static string ARG_DECK = "deck"; static readonly string ARG_DECK = "deck";
static string QUERY_VERSION = "v"; static readonly string QUERY_VERSION = "v";
static string QUERY_YGO_TYPE = "ygotype"; static readonly string QUERY_YGO_TYPE = "ygotype";
static string QUERY_DECK = "d"; static readonly string QUERY_DECK = "d";
public static Uri DeckToUri(List<int>main, List<int>extra, List<int>side, Dictionary<string, string> parameters = null) public static Uri DeckToUri(List<int>main, List<int>extra, List<int>side, Dictionary<string, string> parameters = null)
{ {
......
...@@ -82,6 +82,7 @@ namespace MDPro3 ...@@ -82,6 +82,7 @@ namespace MDPro3
cardMatRoyal = Instantiate(manager.GetElement<Renderer>("DummyCardModel_front").material); cardMatRoyal = Instantiate(manager.GetElement<Renderer>("DummyCardModel_front").material);
cardMatNormal.SetFloat("_FakeBlend", 1); cardMatNormal.SetFloat("_FakeBlend", 1);
cardMatNormal.SetColor("_AmbientColor", new Color(0.0588f, 0.0588f, 0.0588f, 1f));
cardMatShine.SetFloat("_FakeBlend", 1); cardMatShine.SetFloat("_FakeBlend", 1);
cardMatRoyal.SetFloat("_FakeBlend", 1); cardMatRoyal.SetFloat("_FakeBlend", 1);
......
...@@ -1095,7 +1095,6 @@ namespace MDPro3 ...@@ -1095,7 +1095,6 @@ namespace MDPro3
SaveDeckFile(deck, input.text); SaveDeckFile(deck, input.text);
if (input.text != deckName) if (input.text != deckName)
File.Delete("Deck/" + deckName + ".ydk"); File.Delete("Deck/" + deckName + ".ydk");
Config.Set("DeckInUse", input.text);
deckName = input.text; deckName = input.text;
MessageManager.Cast(InterString.Get("卡组「[?]」已保存。", input.text)); MessageManager.Cast(InterString.Get("卡组「[?]」已保存。", input.text));
dirty = false; dirty = false;
...@@ -1133,7 +1132,6 @@ namespace MDPro3 ...@@ -1133,7 +1132,6 @@ namespace MDPro3
{ {
File.WriteAllText("Deck/" + deckName + ".ydk", value, Encoding.UTF8); File.WriteAllText("Deck/" + deckName + ".ydk", value, Encoding.UTF8);
Config.Set("DeckInUse", deckName); Config.Set("DeckInUse", deckName);
MessageManager.Cast(InterString.Get("卡组「[?]」已保存。", deckName));
} }
catch catch
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment