陈嘉乐
2020-12-23 0aeffdc509f6c25998bf7c54c64118ea62608d9d
HDL_ON/Entity/Function/Curtain.cs
@@ -40,9 +40,16 @@
                                value = new List<string> { "up", "down" },
                                max = 100,
                                min = 0,
                                curValue = 0
                            };
                        }
                        trait_percent.curValue = trait_percent.min;
                        if (trait_percent.curValue.ToString() == "{}")
                            trait_percent.curValue = 0;
                    }
                    string textValue = trait_percent.curValue.ToString();
                    if (textValue == string.Empty)
                    {
                        trait_percent.curValue = 0;
                    }
                    return Convert.ToInt32( trait_percent.curValue);
                }