Skip to content

Commit

Permalink
[improve] donut no aoe element radius increase
Browse files Browse the repository at this point in the history
  • Loading branch information
Garume committed Nov 28, 2024
1 parent d2c2d85 commit f25e648
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public override void OnVFXSpawn(uint target, string vfxPath)
_state = State.Split;
var radius = 18f;
if (_hasAoe)
{
switch (_firstIcicleImpactDirection)
{
case IcicleImpactDirection.North:
Expand All @@ -82,10 +81,8 @@ public override void OnVFXSpawn(uint target, string vfxPath)
ApplyElement("Bait", C.MoveDirectionWhenSouthEastIcicleImpactCircleHasAoe, radius);
break;
}
}

else
{
switch (_firstIcicleImpactDirection)
{
case IcicleImpactDirection.North:
Expand All @@ -101,7 +98,6 @@ public override void OnVFXSpawn(uint target, string vfxPath)
ApplyElement("Bait", C.MoveDirectionWhenSouthEastIcicleImpactCircleHasNoAoe, radius);
break;
}
}
}
else if (_aoeType == AoeType.Donut)
{
Expand All @@ -113,7 +109,8 @@ public override void OnVFXSpawn(uint target, string vfxPath)
switch (_firstIcicleImpactDirection)
{
case IcicleImpactDirection.North:
ApplyElement("Bait", C.MoveDirectionWhenNorthIcicleImpactDonutHasAoe, radius, elementRadius);
ApplyElement("Bait", C.MoveDirectionWhenNorthIcicleImpactDonutHasAoe, radius,
elementRadius);
break;
case IcicleImpactDirection.NorthEast:
ApplyElement("Bait", C.MoveDirectionWhenNorthEastIcicleImpactDonutHasAoe, radius,
Expand Down Expand Up @@ -156,19 +153,21 @@ public override void OnVFXSpawn(uint target, string vfxPath)

else
{
var radius = 1f;
var radius = 2f;
var elementRadius = 0.5f;
switch (_firstIcicleImpactDirection)
{
case IcicleImpactDirection.North:
ApplyElement("Bait", C.MoveDirectionWhenNorthIcicleImpactDonutHasNoAoe, radius, elementRadius);
ApplyElement("Bait", C.MoveDirectionWhenNorthIcicleImpactDonutHasNoAoe, radius,
elementRadius);
break;
case IcicleImpactDirection.NorthEast:
ApplyElement("Bait", C.MoveDirectionWhenNorthEastIcicleImpactDonutHasNoAoe, radius,
elementRadius);
break;
case IcicleImpactDirection.East:
ApplyElement("Bait", C.MoveDirectionWhenEastIcicleImpactDonutHasNoAoe, radius, elementRadius);
ApplyElement("Bait", C.MoveDirectionWhenEastIcicleImpactDonutHasNoAoe, radius,
elementRadius);
break;
case IcicleImpactDirection.SouthEast:
ApplyElement("Bait", C.MoveDirectionWhenSouthEastIcicleImpactDonutHasNoAoe, radius,
Expand Down Expand Up @@ -252,14 +251,14 @@ public override void OnSettingsDraw()
if (ImGuiEx.CollapsingHeader("Circle"))
{
ImGui.Indent();

ImGuiEx.Text("Circle Spread Settings");
ImGuiEx.HelpMarker(
"Adjust the spread positions based on the initial Icicle Impact locations.\nFor example, if the first Icicle Impacts appear in the east and west, move to the north. You need to determine where to spread in every case.");


ImGuiEx.Text("No AOE");

ImGuiEx.EnumCombo($"East-West##{nameof(C.MoveDirectionWhenEastIcicleImpactCircleHasNoAoe)}",
ref C.MoveDirectionWhenEastIcicleImpactCircleHasNoAoe);
ImGuiEx.EnumCombo(
Expand Down Expand Up @@ -406,8 +405,6 @@ private void ApplyElement(string elementName, Direction direction, float radius,
}
}




public override void OnActionEffectEvent(ActionEffectSet set)
{
Expand All @@ -426,7 +423,8 @@ public override void OnActionEffectEvent(ActionEffectSet set)
switch (_firstIcicleImpactDirection)
{
case IcicleImpactDirection.North:
ApplyElement("Bait", C.MoveDirectionWhenNorthIcicleImpactDonutHasAoe, radius, elementRadius);
ApplyElement("Bait", C.MoveDirectionWhenNorthIcicleImpactDonutHasAoe, radius,
elementRadius);
break;
case IcicleImpactDirection.NorthEast:
ApplyElement("Bait", C.MoveDirectionWhenNorthEastIcicleImpactDonutHasAoe, radius,
Expand Down

0 comments on commit f25e648

Please sign in to comment.