fix some proto

This commit is contained in:
Somebody
2024-04-27 15:55:35 +08:00
parent 868e988318
commit 9a416c958e
225 changed files with 6054 additions and 4660 deletions

View File

@@ -101,7 +101,7 @@ namespace EggLink.DanhengServer.Data.Config
public class LifeTimeInfo
{
public bool IsDynamic { get; set; } = false;
public FixedValueInfo<float> FixedValue { get; set; } = new();
public FixedValueInfo<double> FixedValue { get; set; } = new();
public int GetLifeTime()
{
@@ -109,7 +109,7 @@ namespace EggLink.DanhengServer.Data.Config
{
return 20; // find a better way to get the value
}
if (FixedValue.Value < 0)
if (FixedValue.Value <= 0)
{
return -1; // infinite
}