更新
This commit is contained in:
@@ -60,6 +60,16 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public partial class CombatBuffSubmodule
|
||||
{
|
||||
public void CombatStart()
|
||||
{
|
||||
buffList.For(buff => buff.eventSubmodule?.onCombatStart?.Invoke());
|
||||
}
|
||||
|
||||
public void CombatEnd()
|
||||
{
|
||||
buffList.For(buff => buff.eventSubmodule?.onCombatEnd?.Invoke());
|
||||
}
|
||||
|
||||
public void RoundStart()
|
||||
{
|
||||
buffList.For(buff => buff.roundCountSubmodule?.Update());
|
||||
@@ -73,13 +83,13 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public void ActionStart()
|
||||
{
|
||||
Debug.Log($"{owner.data.displayName} is starting an action. Current action count this round: {owner.actionCountThisRound}");
|
||||
//Debug.Log($"{owner.data.displayName} is starting an action. Current action count this round: {owner.actionCountThisRound}");
|
||||
if (owner.actionCountThisRound == 0)
|
||||
{
|
||||
Debug.Log($"{owner.data.displayName} is starting their first action this round. Buff count of {buffList.Count} will update their round first action counts.");
|
||||
//Debug.Log($"{owner.data.displayName} is starting their first action this round. Buff count of {buffList.Count} will update their round first action counts.");
|
||||
buffList.For(buff =>
|
||||
{
|
||||
Debug.Log($"Updating round first action count for buff: {buff.contentSubmodule.displayName}");
|
||||
//Debug.Log($"Updating round first action count for buff: {buff.contentSubmodule.displayName}");
|
||||
buff.roundFirstActionCountSubmodule?.Update();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user