diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs index 33681d7a7f9fca053e5011094f60814236e00d1e..07c6fce9d0287355d3fd543a4697baa697fd2b79 100644 --- a/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs +++ b/MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs @@ -29,6 +29,18 @@ namespace BigSock { The character that activated the ability. */ public Character Actor { get; set; } + + /* + How long the ability was charged. + */ + public float ChargeTime { get; set; } + + /* + How much of the allowed charge was done in percent. + Ex.: if min is 1s, max is 3s, and the ability was charged for 2s, + then 0.5 since it was charged for half the time between min and max. + */ + public float ChargeTimePercent { get; set; } } } \ No newline at end of file diff --git a/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs index 9741d18714665f4fa1f049ae9c49a2a83b75c801..e0b29b978fd5cb183e707c181758440a488abcb8 100644 --- a/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs +++ b/MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs @@ -30,6 +30,18 @@ namespace BigSock { */ Character Actor { get; set; } + /* + How long the ability was charged. + */ + float ChargeTime { get; set; } + + /* + How much of the allowed charge was done in percent. + Ex.: if min is 1s, max is 3s, and the ability was charged for 2s, + then 0.5 since it was charged for half the time between min and max. + */ + float ChargeTimePercent { get; set; } + } } \ No newline at end of file