27 lines
983 B
Lua
27 lines
983 B
Lua
--require("Script.Global.BuffSystem.Config.BuffActionConfig")
|
|
--require("Script.Global.BuffSystem.Config.BuffAssetConfig")
|
|
--print("1111111111111111111111111111111111111111111111111111111111111111111111111")
|
|
local BuffAsset = {
|
|
Name = "Buff模板";
|
|
-- 是否一直存在,直到手动移除或玩家死亡才自动调用关闭
|
|
IsAlwaysExists = false;
|
|
-- 多次获得该Buff时所需要做的处理(延长时间或者叠加)
|
|
BuffRepeatedType = BuffAssetConfig.EBuffRepeatedType.TimeExpand;
|
|
-- 持续时间
|
|
ValidityTime = 10.;
|
|
-- 最大持续时间(意思是刷新时间后可保留的最大时间)
|
|
MaxValidityTime = 20;
|
|
-- 最大叠加层数
|
|
LayerMax = 1;
|
|
-- Buff激活到的BuffAction
|
|
Actions = {
|
|
{
|
|
ActionType = BuffActionConfig.EActionType.ContinuousDamage;
|
|
Params = {
|
|
-- 每秒受到的伤害
|
|
DamagePerSecond = 5;
|
|
}
|
|
},
|
|
};
|
|
}
|
|
return BuffAsset |