Add Shop system with ShopManager, ShopUI, and ShopSlotUI; implement item purchasing and shop UI functionality

This commit is contained in:
2025-07-12 02:07:43 +02:00
parent 8f3a913b7e
commit ad02e07a87
15 changed files with 753 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ namespace Modifiers
public Stat stat;
public float percent;
public string Description => $"{stat} +{percent * 100}%";
public string Description => GetDescription();
public void Apply(CharacterAttributes attributes)
{
@@ -55,5 +55,11 @@ namespace Modifiers
_ => throw new System.ArgumentOutOfRangeException()
};
}
private string GetDescription()
{
var sign = percent >= 0 ? "+" : "";
return $"{stat} {sign}{percent * 100}%";
}
}
}