继续
This commit is contained in:
@@ -38,12 +38,12 @@ namespace Continentis.MainGame
|
||||
/// <param name="willLocalizeFuncText">是否本地化功能描述文本,默认为true,设为false说明此Buff具有不止一条本地化文本,需要切换。</param>
|
||||
public ContentSubmodule(BuffBase<T> buff, bool willLocalizeFuncText = true) : base(buff)
|
||||
{
|
||||
string className = buff.GetType().Name;
|
||||
this.displayName = ("Buff_" + className + "_DisplayName").Localize();
|
||||
string modClassName = ModManager.GetModClassName(buff.GetType());
|
||||
this.displayName = ("Buff_" + modClassName + "_DisplayName").Localize();
|
||||
|
||||
if (willLocalizeFuncText)
|
||||
{
|
||||
this.originalFunctionText = ("Buff_" + className + "_FunctionText").Localize();
|
||||
this.originalFunctionText = ("Buff_" + modClassName + "_FunctionText").Localize();
|
||||
this.interpretedFunctionText = this.originalFunctionText;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Continentis.MainGame
|
||||
{
|
||||
if (string.IsNullOrEmpty(iconID))
|
||||
{
|
||||
this.iconID = "BuffIcon_" + buff.GetType().Name;
|
||||
this.iconID = "BuffIcon_" + ModManager.GetModClassName(buff.GetType());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -294,7 +294,6 @@ namespace Continentis.MainGame
|
||||
stackAmount = Mathf.Min(stackAmount, stackUpperLimit);
|
||||
}
|
||||
}
|
||||
|
||||
public void AddStack(int amount) => ModifyStack(amount);
|
||||
public void ReduceStack(int amount) => ModifyStack(-amount);
|
||||
public void ModifyStack(int amount)
|
||||
|
||||
Reference in New Issue
Block a user