Skip to content

Commit

Permalink
Server Cleric cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheneq committed Nov 5, 2023
1 parent 8e67c4b commit 3049303
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion Assembly-CSharp/ClericAreaBuff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ public int GetPerTurnTechPointCost()
// public override void Run(List<AbilityTarget> targets, ActorData caster, ServerAbilityUtils.AbilityRunData additionalData)
// {
// m_syncComp.Networkm_turnsAreaBuffActive++; // m_turnsAreaBuffActive in rogues
// Log.Info($"ClericAreaBuff run: {m_syncComp.Networkm_turnsAreaBuffActive}");
// }

// custom
Expand Down
2 changes: 0 additions & 2 deletions Assembly-CSharp/ClericAreaBuffEffect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public override void OnTurnEnd()
if (m_syncComp != null)
{
m_syncComp.Networkm_turnsAreaBuffActive++;
Log.Info($"ClericAreaBuffEffect on turn end: {m_syncComp.Networkm_turnsAreaBuffActive}");
}
}

Expand Down Expand Up @@ -97,7 +96,6 @@ public override void GatherEffectResults(ref EffectResults effectResults, bool i
if (m_syncComp.m_turnsAreaBuffActive > 0)
{
// initial cast cost is handled by the ability itself
Log.Info($"ClericAreaBuff effect cost: {m_ability.GetPerTurnTechPointCost()}");
casterHitResults.AddTechPointLoss(m_ability.GetPerTurnTechPointCost());
}
if (m_ability.IncludeCaster())
Expand Down
4 changes: 0 additions & 4 deletions Assembly-CSharp/Passive_Cleric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public override void OnResolveStart(bool hasAbilities, bool hasMovement)

if (!ServerActionBuffer.Get().HasStoredAbilityRequestOfType(Owner, typeof(ClericAreaBuff)))
{
Log.Info($"ClericAreaBuff cancelled, removing");
RemoveAreaBuff(m_buffAbility.GetCooldownWhenBuffLapses());
}
}
Expand All @@ -42,7 +41,6 @@ public override void OnTurnStart()

if (!Owner.GetAbilityData().ValidateActionIsRequestableDisregardingQueuedActions(m_buffAbilityActionType))
{
Log.Info($"ClericAreaBuff depleted, removing");
// It doesn't makes sense to check requestability before Cleric got his per-turn tech point regen
RemoveAreaBuff(m_buffAbility.GetCooldownWhenBuffLapses());
}
Expand All @@ -57,7 +55,6 @@ public override void OnTurnEnd()
foreach (ActorData actorData in m_enemiesHitByBoneShatter)
{
float x = actorData.GetActorBehavior().GetMovementDeniedByActorThisTurn(Owner, true, false);
Log.Info($"CLERIC denied {x} movement for {actorData}");
movementDenied += x;
}
if (movementDenied > 0)
Expand Down Expand Up @@ -94,7 +91,6 @@ private void RemoveAreaBuff(int cooldown)
if (m_syncComp != null)
{
m_syncComp.Networkm_turnsAreaBuffActive = 0;
Log.Info($"ClericAreaBuff ended, reset to {m_syncComp.Networkm_turnsAreaBuffActive}");
}
}
#endif
Expand Down

0 comments on commit 3049303

Please sign in to comment.