CardBuff,Exhaustible

This commit is contained in:
SoulliesOfficial
2025-11-01 06:13:58 -04:00
parent ee1d3d9c0a
commit abc540809f
30 changed files with 395 additions and 46 deletions

View File

@@ -72,12 +72,24 @@ namespace Continentis.MainGame
current[attributeName] = originalAttribute;
}
}
public void SetAttribute(string attributeName, float value)
{
if (!current.ContainsKey(attributeName))
{
Debug.Log($"{attributeName} is not found in current attributes, use default value");
}
current[attributeName] = value;
}
public void ModifyAttribute(string attributeName,
float numericChange, float percentageChangeOfAccumulation, float percentChangeOfMultiplication)
{
if (!current.ContainsKey(attributeName))
{
Debug.Log($"{attributeName} is not found in current attributes, use default value");
if (attributeName.Contains("Multiplier"))
{
current[attributeName] = 1f;
@@ -86,8 +98,6 @@ namespace Continentis.MainGame
{
current[attributeName] = 0f;
}
Debug.Log($"{attributeName} is not found in current attributes, use default value");
}
current[attributeName] += numericChange;