意图初步
This commit is contained in:
@@ -9,6 +9,11 @@ namespace Continentis.Mods.Basic.Rules
|
||||
{
|
||||
public override void ApplyRules_ConvertCoreIntoGeneral(Dictionary<string, float> core, Dictionary<string, float> general)
|
||||
{
|
||||
if (core.TryGetValue("DisableConversion", out float value) && value > 0) //如果禁用属性转换,则直接返回
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
float level = core["Level"];
|
||||
general["MaximumHealth"] += Mathf.FloorToInt(level * 3);
|
||||
general["MaximumMana"] += Mathf.FloorToInt(level / 2);
|
||||
|
||||
Reference in New Issue
Block a user