update design

This commit is contained in:
2026-04-30 10:36:25 +08:00
parent 55506eff9a
commit a38a8d4b39
25 changed files with 999 additions and 113 deletions
@@ -24,8 +24,8 @@ namespace GeometryTD.Definition
int normalizedBase = (int)NormalizeComponentRarity(baseRarity);
float average = (normalizedMuzzle + normalizedBearing + normalizedBase) / 3f;
int rounded = Mathf.RoundToInt(average);
int clamped = Mathf.Clamp(rounded, (int)RarityType.White, (int)RarityType.Red);
int floored = Mathf.FloorToInt(average);
int clamped = Mathf.Clamp(floored, (int)RarityType.White, (int)RarityType.Red);
return (RarityType)clamped;
}
}